Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you please specify library versions in the requirement files #104

Closed
SuperKogito opened this issue Feb 29, 2020 · 5 comments
Closed

Comments

@SuperKogito
Copy link

The requirement files do not specify the versions of each library which is making it hard for me (and I assume for others) to run the code.

@ljj7975
Copy link
Member

ljj7975 commented Feb 29, 2020

it seems to me that the requirement.txt file already contains versions for each package.
What is the issue you are facing?

@SuperKogito
Copy link
Author

I was referring to the keyword_spotting_data_generator requirements file.
I am having the following problem with pytube.

Traceback (most recent call last):
  File "keyword_data_generator.py", line 11, in <module>
    import pytube.YouTube as PyTube
  File "/home/kogito/anaconda3/envs/py37/lib/python3.7/site-packages/pytube/__init__.py", line 16, in <module>
    from pytube.streams import Stream
  File "/home/kogito/anaconda3/envs/py37/lib/python3.7/site-packages/pytube/streams.py", line 17, in <module>
    from pytube import extract
  File "/home/kogito/anaconda3/envs/py37/lib/python3.7/site-packages/pytube/extract.py", line 7, in <module>
    from pytube.compat import quote
ImportError: cannot import name 'quote' from 'pytube.compat' (/home/kogito/anaconda3/envs/py37/lib/python3.7/site-packages/pytube/compat.py)

@ljj7975
Copy link
Member

ljj7975 commented Feb 29, 2020

This is what I have, I will add the versions to the requirement.txt soon

librosa                                0.6.2
pytube                                 9.5.2
requests                               2.21.0
inflect                                2.1.0
pocketsphinx                           0.1.15
google-api-python-client               1.7.11
pydub                                  0.23.1

Couple things to note:

@ljj7975
Copy link
Member

ljj7975 commented Feb 29, 2020

Please let me know if the above versions work

@SuperKogito
Copy link
Author

I was using pytube==9.6.0 but downgrading to pytube==9.5.6 solved it for me. Thank you! 👍 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants