Tkd-Alex / Telegram-InstaPy-Scheduling

A Telegram bot for scheduling InstaPy
152 stars 38 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'settings.json' #17

Open mgconejero opened 5 years ago

mgconejero commented 5 years ago

Try installing the updated repo and I still have the same problem when running the main.py file.

"PS C:\Users\xxxx> & python c:/Users/xxxx/Desktop/InstaPy-master/instapy/Telegram-InstaPy-Scheduling-master/main.py Traceback (most recent call last): File "c:/Users/xxxx/Desktop/InstaPy-master/instapy/Telegram-InstaPy-Scheduling-master/main.py", line 21, in with open('settings.json') as f: FileNotFoundError: [Errno 2] No such file or directory: 'settings.json' "

Clearly, I am doing something wrong but it is not clear to me what. The 'settings.json' is in the same folder as the main.py ...

Could you expand the steps to follow? Maybe put some generic template?

My knowledge of python is very basic, what I know, I learned it in Instapy ... So I do not rule out being wrong in some step.

LordAch commented 5 years ago

same here..

Tkd-Alex commented 5 years ago

Send me the screenshot of the folder where Telegram-InstaPy-Scheduling-master is located. Have you followed all step in readme?

tE3m commented 5 years ago

I have created a pull request for this issue. Works fine with my fix from what I tested. https://github.com/Tkd-Alex/Telegram-InstaPy-Scheduling/pull/30#issue-241758250

tE3m commented 5 years ago

While it is not merged, try first cd-ing into the folder and then running main.py.