You are not logged in.

#1 2017-03-28 13:07:43

Prezioso
Member
Registered: 2011-01-17
Posts: 83

Python3.6 - no module six

I've just installed qutebrowser, but now everytime I try to run qutebrowser it fails with this error:

Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 48, in <module>
    import six
ModuleNotFoundError: No module named 'six'

When I installed qutebrowser, pacman notified me about a conflict in some python files. I've then backed does file up by moving them to another location and then the installation was successfull without any errors or warnings.
I've tried to move the files back, but still same error.

Offline

#2 2017-03-28 13:13:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Python3.6 - no module six

This does not look like a qutebrowser issue, just youtube-dl and/or it's dependencies.

Can you run youtube-dl directly?  I suspect you get the same error.

What files conflicted?  Which ones did you move?  What's the output of `python -Qkk python-six` `pacman -Qkk python-six`?

EDIT: oops!


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-03-28 13:23:10

Prezioso
Member
Registered: 2011-01-17
Posts: 83

Re: Python3.6 - no module six

#2 : You are correct, the samething is with youtube-dl.
The 'python -Qkk python-six" outputs this:

Unknown option: -Q
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

python -c "import six" outputs this:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'six'

which according to this : http://askubuntu.com/questions/588390/h … -in-python means that it does not exist on the system. I know this was from ubuntu, but I took a walk on the wild
side and believe its the same with arch linux.

Offline

#4 2017-03-28 13:38:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Python3.6 - no module six

Sorry, I meant pacman -Qkk not python.  Freudian typing slip.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2017-03-28 13:45:52

Prezioso
Member
Registered: 2011-01-17
Posts: 83

Re: Python3.6 - no module six

warning: python-six: /usr/lib/python3.6/site-packages/six.py (No such file or directory)
warning: python-six: /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.opt-1.pyc (No such file or directory)
warning: python-six: /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.pyc (No such file or directory)
warning: python-six: /usr/lib/python3.6/site-packages/six-1.10.0-py3.6.egg-info (No such file or directory)
warning: python-six: /usr/lib/python3.6/site-packages/six-1.10.0-py3.6.egg-info/PKG-INFO (No such file or directory)
warning: python-six: /usr/lib/python3.6/site-packages/six-1.10.0-py3.6.egg-info/SOURCES.txt (No such file or directory)
warning: python-six: /usr/lib/python3.6/site-packages/six-1.10.0-py3.6.egg-info/dependency_links.txt (No such file or directory)
warning: python-six: /usr/lib/python3.6/site-packages/six-1.10.0-py3.6.egg-info/top_level.txt (No such file or directory)
python-six: 17 total files, 8 altered files

Offline

#6 2017-03-28 13:47:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Python3.6 - no module six

There's the problem.  It seems you removed your python-six files.  Reinstall python-six.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2017-03-28 13:57:10

Prezioso
Member
Registered: 2011-01-17
Posts: 83

Re: Python3.6 - no module six

Great! I was only focusing on python reinstall. But a couple of other modules/packages and everything works again.

Thanks!

Offline

Board footer

Powered by FluxBB