Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
ImportError: No module named xml.parsers.expat #6077
Comments
|
That python is missing xml support, you'll have to rebuild it or install one with the support enabled. And don't run youtube-dl as root user, it's only needed in some setups for updating. |
I'm using youtube-dl on my openwrt router when I run the command it says ImportError: No module named xml.parsers.expat
root@AngelBeats:/mnt/usb# youtube-dl -v
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/bin/youtube-dl/main.py", line 16, in
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 16, in
File "/usr/bin/youtube-dl/youtube_dl/options.py", line 8, in
File "/usr/bin/youtube-dl/youtube_dl/downloader/init.py", line 3, in
File "/usr/bin/youtube-dl/youtube_dl/downloader/common.py", line 8, in
File "/usr/bin/youtube-dl/youtube_dl/compat.py", line 132, in
ImportError: No module named xml.parsers.expat