question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have trouble getting this to work :(

See original GitHub issue

I remember this working for me before, but now it just refuses to work.

I install all the libraries with:

python3 -m pip install -r requirements.txt

and it works except this warning:

 WARNING: The script f2py.exe is installed in 'C:\Users\Me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script pytube.exe is installed in 'C:\Users\Me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH.

and when I try to run the program:

python3 jumpcutter.py -h

It gives me this

Traceback (most recent call last):
  File "jumpcutter.py", line 9, in <module>
    from pytube import YouTube
  File "C:\Users\Me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pytube\__init__.py", line 16, in <module>
    from pytube.streams import Stream
  File "C:\Users\Me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pytube\streams.py", line 17, in <module>
    from pytube import extract
  File "C:\Users\Me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pytube\extract.py", line 7, in <module>
    from pytube.compat import quote
ImportError: cannot import name 'quote' from 'pytube.compat' (C:\Users\Me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pytube\compat.py)

Thanks in advance

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
Lamauncommented, Mar 14, 2020

Did you just type python as the second command or did you write python3 jumpcutte.py -h? python and python3 could be different versions. As you installed the requirements with python3 -m pip install -r requirements.txt they would not be installed for your python which is probably just version 2.7. You would probably get a similar ImportError

The next thing is: I just assumed, that the error tells you to add it to your PYTHONPATH but looking at it again it clearly says PATH variable. Maybe try:

C:\>set PATH=%PATH%;C:\Users\Me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts
C:\>python3 jumpcutter.py -h
1reaction
HaujetZhaocommented, Mar 17, 2020

Uhm so i got it to work… I just commented ou the line: #from pytube import YouTube

And it does fully work

on an unrelated note, I tried to use this program with a long video, and eventually, it gave me a memory error while it was saying [number] time-altered frames saved. any idea how to maybe split videos into smaller 15min chunks so it can prosses them? Are there any alternatives to this tool that allow for longer videos?

hahhh, I got the solution! run pip install pytube3 --upgrade I think the pytube is deprecated, only the pytube3 is in development. so the requirement.txt should update the pytube into pytube3

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Reasons You Have No Motivation To Work (And ... - Zippia
You're too busy. · You have a hard time getting started. · You have a hard time separating work from your personal life....
Read more >
12 Tips for When You're Having Trouble Finding a Job - Indeed
1. Wait before filling out an application · 2. Improve your resume · 3. Craft a compelling cover letter · 4. Update your...
Read more >
5 Mental Health Tricks When You're Struggling At Work - Forbes
Spend it taking care of yourself. Make yourself a meal that'll last you a few nights (reliving pressure for the following day.) Do...
Read more >
What to Do When You Can't Find a Job: 13 Tips | FlexJobs
Try a Temporary Job​​ If you've been job searching for a while and still haven't landed the perfect position, you may want to...
Read more >
8 Things Proactive People Do After Getting In Trouble At Work
1. Own your mistake and tell appropriate parties. It's important to own your mistake because it likely will affect your team. It might...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found