AttributeError: module 'importlib._bootstrap_external' has no attribute '_w_long'
See original GitHub issueChecklist
- I’m reporting a bug unrelated to a specific site
- I’ve verified that I’m running yt-dlp version 2022.04.08 (update instructions) or later (specify commit)
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Description
I install the last version using python3 -m pip install -U yt-dlp
.
I do a simple: yt-dlp BaW_jenozKc
And get this error:
AttributeError: module 'importlib._bootstrap_external' has no attribute '_w_long'
Verbose log
Traceback (most recent call last):
File "/usr/local/bin/yt-dlp", line 10, in <module>
from importlib.metadata import distribution
File "/Users/user/opt/anaconda3/lib/python3.7/importlib/__init__.py", line 51, in <module>
_w_long = _bootstrap_external._w_long
AttributeError: module 'importlib._bootstrap_external' has no attribute '_w_long'
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
module 'importlib._bootstrap' has no attribute '_w_long'
In my case, I have multiple Python (3.7, 3.6, 3.4) installed in my PC. The environment var $PATH and $PYTHONPATH is pointing to...
Read more >AttributeError: module 'importlib._bootstrap' has no ... - Medium
when you get above error during installation of packages using pip command try upgrading setuptools module. when I wanted to install psycopg2 faced...
Read more >AttributeError: module 'importlib._bootstrap' has no ... - GitHub
I get this error when trying to install with pip3 or pipenv. Full trace: ~ pip3 install --user dotenv Collecting dotenv Using cached ......
Read more >importlib — The implementation of import — Python 3.11.1 ...
The import system passes this attribute to __import__() and to finders in the same way as sys.path but just for the package. It...
Read more >module 'importlib-Bootstrap' has no attribute 'sourcefileloader'
Attribute error : module 'importlib-Bootstrap' has no attribute 'sourcefileloader'. There was a slip-up running a substance from someone else today: module ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s mostly the same, but there are some changes. See https://github.com/yt-dlp/yt-dlp#differences-in-default-behavior
Could be conflicting Python installations in $PATH environment variable. (https://stackoverflow.com/questions/46509441/module-importlib-bootstrap-has-no-attribute-w-long) If you call
python3 -m pip
then trypython3 -m yt_dlp <url>
.