Closed NikolasP98 closed 5 years ago
My code works fine if I run quickstart.py on its own.
Copy the instapy folder in the same folder of Telegram-InstaPy-Scheduling. https://github.com/timgrossmann/InstaPy/tree/master/instapy
Copied and pasted the contents of the instapy folder into the Telegram-InstaPy-Scheduling folder as instructed. I tried running telegram-instapy.py and got the following error message:
C:\Users\nikol\Documents\GitHub\InstaPy\Telegram-InstaPy-Scheduling>python telegram-instapy.py
Traceback (most recent call last):
File "telegram-instapy.py", line 9, in <module>
from instapy import InstaPy
File "C:\Users\nikol\Documents\GitHub\InstaPy\Telegram-InstaPy-Scheduling\instapy.py", line 22, in <module>
from .comment_util import comment_image
ImportError: attempted relative import with no known parent package
I'm not sure about this. Instapy script can't find other import file for example: comment_util.py Can you send your folder tree?
(all files within C:\Users\nikol\Documents\GitHub)
Cloned python-telegram-bot within the GitHub folder, ran pip install python-telegram-bot --upgrade (followed other installation steps as indicated by the repo instructions)
Cloned the Telegram-InstaPy-Scheduling repo inside my InstaPy folder and followed installation steps (got the token from bot_father and the Chat Id, filled my usrname and pswd, etc etc.), tried running python telegram-instapy.py and got the following error on my command prompt
Running python 3.7 (I don't believe it's a version compatibility error)
The following code is my telegram-instapy.py code: