zuramai / Auto-Post-Instagram-Photo

Tool for auto upload instagram photo with interval in seconds
6 stars 6 forks source link

FileNotFoundError solved #4

Open mike123404 opened 1 year ago

mike123404 commented 1 year ago

$ python run.py
Traceback (most recent call last): File "/home/kali/Auto-Post-Instagram-Photo/run.py", line 11, in subprocess.call("php upload.php") File "/usr/lib/python3.11/subprocess.py", line 389, in call with Popen(*popenargs, **kwargs) as p: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'php upload.php

mike123404 commented 1 year ago

i solved that problem with changing line 11 to: subprocess.call(["php", "/home/kali/Auto-Post-Instagram-Photo/upload.php"])