Telegram-InstaPy-Scheduling icon indicating copy to clipboard operation
Telegram-InstaPy-Scheduling copied to clipboard

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

Open mgconejero opened this issue 6 years ago • 4 comments

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.

mgconejero avatar Dec 06 '18 20:12 mgconejero

same here..

LordAch avatar Dec 12 '18 23:12 LordAch

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

Tkd-Alex avatar Dec 13 '18 08:12 Tkd-Alex

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 avatar Jan 02 '19 14:01 tE3m

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

tE3m avatar Jan 02 '19 19:01 tE3m