carykh / jumpcutter

Automatically edits vidx. Explanation here: https://www.youtube.com/watch?v=DQ8orIurGxw
MIT License
3.07k stars 544 forks source link

Issue with opening Macintosh$ python jumpcutter.py -h python: can't open file 'jumpcutter.py': [Errno 2] No such file or directory #137

Open Sbende opened 4 years ago

Sbende commented 4 years ago

I can't open it! If I try it with Python Launcher, then it gives me this: cd '/Users/Macintosh/Downloads/jumpcutter-master/' && '/usr/bin/pythonw' '/Users/Macintosh/Downloads/jumpcutter-master/jumpcutter.py' && echo Exit status: $? && exit 1 Traceback (most recent call last): File "/Users/Macintosh/Downloads/jumpcutter-master/jumpcutter.py", line 2, in from PIL import Image ImportError: No module named PIL

Sbende commented 4 years ago

Can you guys help me?

Lamaun commented 4 years ago

Open a terminal in /Users/Macintosh/Downloads/jumpcutter-master and write pip install -r requirements.txt

Epicgamer2469 commented 4 years ago

Lamaun i tried what you said but this is what happened: /Users/cooluser/Downloads/jumpcutter-master pip install -r requirements.txt -bash: /Users/cooluser/Downloads/jumpcutter-master: is a directory This didn't do anything, when i tried to type the jumpcutter command i get the same error: python3 jumpcutter.py --input_file movie.mp4 can't open file 'jumpcutter.py': [Errno 2] No such file or directory If you know how to fix this, please help, thank you!

Lamaun commented 4 years ago

First run the commands in this order:

cd /Users/cooluser/Downloads/jumpcutter-master
pip install -r requirements.txt

Then make sure movie.mp4 is also in the jumpcutter-master folder. Your Python command was correct. You just need to be in the right folder when running it

Epicgamer2469 commented 4 years ago

Ok so I did what you said and it seemed to install all of the libraries fine, but when I tried to run the script this is what returned:

python3 jumpcutter.py --input_file movie.mp4
Traceback (most recent call last):
  File "jumpcutter.py", line 2, in <module>
    from PIL import Image
ModuleNotFoundError: No module named 'PIL'
Lamaun commented 4 years ago

oh try pip3 install -r requirements.txt instead

Epicgamer2469 commented 4 years ago

This happens:

Could not fetch URL https://pypi.org/simple/pillow/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pillow/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)'))) - skipping
  ERROR: Could not find a version that satisfies the requirement Pillow (from -r requirements.txt (line 1)) (from versions: none)

I've tried installing pillow by itself but that changed nothing.