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

You are using an unsupported version of Python #25

Open
RoninFromMoscow opened this issue Jan 8, 2024 · 3 comments
Open

You are using an unsupported version of Python #25

RoninFromMoscow opened this issue Jan 8, 2024 · 3 comments

Comments

@RoninFromMoscow
Copy link

RoninFromMoscow commented Jan 8, 2024

I got Ubuntu 18.04

requirements

sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp  # Make executable
sudo apt install ffmpeg

installation

mkdir test-project
cd test-project
git clone https://github.com/obra/Youtube2Webpage.git
cd Youtube2Webpage

first run

./yt-to-webpage.pl project-name "https://www.youtube.com/watch?v=jNQXAC9IVRw"

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/bin/yt-dlp/__main__.py", line 14, in <module>
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 5, in <module>
ImportError: You are using an unsupported version of Python. Only Python versions 3.8 and above are supported by yt-dlp
Can't open '<undef>' for reading: 'No such file or directory' at ./yt-to-webpage.pl line 21

in error versions 3.8 and above but I got python is 2.7* and python3 is 3.11, but which is used?

fixed python version

sudo apt install python3.8

updated ~/.bashrc

alias python='/usr/bin/python3.8'
alias python3='/usr/bin/python3.8'

then

source ~/.bashrc

and now

python --version
Python 3.8.0
python3 --version
Python 3.8.0

ok, again

./yt-to-webpage.pl project-name "https://www.youtube.com/watch?v=jNQXAC9IVRw"

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/bin/yt-dlp/__main__.py", line 14, in <module>
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 5, in <module>
ImportError: You are using an unsupported version of Python. Only Python versions 3.8 and above are supported by yt-dlp
Can't open '<undef>' for reading: 'No such file or directory' at ./yt-to-webpage.pl line 21

Please help me to understand how should it work?

@obra
Copy link
Owner

obra commented Jan 8, 2024 via email

@RoninFromMoscow
Copy link
Author

RoninFromMoscow commented Jan 8, 2024

ok, but what version of yt-dlp is used for Youtube2Webpage project to work correctly? .. and ffmpeg by the way?

@obra
Copy link
Owner

obra commented Jan 8, 2024

We don't have a specific requirements. Anything recentish should be fine

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