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

ImportError: No module named xml.parsers.expat #6077

Closed
hillz1 opened this issue Jun 24, 2015 · 1 comment
Closed

ImportError: No module named xml.parsers.expat #6077

hillz1 opened this issue Jun 24, 2015 · 1 comment

Comments

@hillz1
Copy link

@hillz1 hillz1 commented Jun 24, 2015

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

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 25, 2015

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.

@jaimeMF jaimeMF closed this Jun 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.