Issue #127: Missing six module
Reported by: | Paul Rentschler |
State: | resolved |
Created on: | 2015-04-22 15:39 |
Updated on: | 2015-04-23 23:55 |
Description
Following the release version in a virtualenv instructions, I did the
pip install kallithea
followed by
paster make-config Kallithea my.ini
which resulted in the traceback:
Traceback (most recent call last): File "/opt/kallithea/venv/bin/paster", line 9, in <module> load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')() File "/opt/kallithea/venv/local/lib/python2.7/site-packages/paste/script/command.py", line 103, in run command = commands[command_name].load() File "/opt/kallithea/venv/local/lib/python2.7/site-packages/pkg_resources.py", line 2048, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/opt/kallithea/venv/local/lib/python2.7/site-packages/paste/script/appinstall.py", line 17, in <module> import paste.script.templates File "/opt/kallithea/venv/local/lib/python2.7/site-packages/paste/script/templates.py", line 9, in <module> from paste.util.template import paste_script_template_renderer File "/opt/kallithea/venv/local/lib/python2.7/site-packages/paste/util/template.py", line 34, in <module> import six ImportError: No module named six
Running:
pip install six
Solved the problem.
Attachments
Comments
Comment by Mads Kiilerich, on 2015-04-22 16:20
:-(
That must be a an undeclared dependency in paste. But I also use PasteScript 1.7.5 and don't see any problem. Perhaps something else happened to have installed it but no longer does.
Please, can you report it to PasteScript? Then we will have to figure out if we should add a workaround ...
Comment by Paul Rentschler, on 2015-04-22 18:13
Reported to PasteScript.
Comment by Marc Abramowitz, on 2015-04-23 20:46
I don't think it's from PasteScript since 1.7.5 was released 2011-11-07.
I think it's from Paste==2.0. @haypo pushed that new version (with Python 3 compatibility! Yay!) on 2015-04-21 and probably forgot to add a dependency on six
to setup.py
. Issue already logged at https://bitbucket.org/ianb/paste/issue/3/importerror-no-module-named-six-in-20-py27#comment-None
Comment by Victor Stinner, on 2015-04-23 21:15
Could you please try the development branch of Paste? I moved the six dependency from extras_require to install_requires.
Comment by Marc Abramowitz, on 2015-04-23 21:28
Yep, I just did:
$ .tox/py27-pytest/bin/pip install 'hg+ssh://hg@bitbucket.org/ianb/paste' ... $ tox -e py27 ... py27: commands succeeded congratulations :)
Problem fixed. Please push out a new version to PyPI with that fix! Thank you!
Comment by Victor Stinner, on 2015-04-23 21:59
Problem fixed. Please push out a new version to PyPI with that fix! Thank you!
Cool. I just released Paste 2.0.1. More Python 3 tests pass.
Oh. I don't see how to close the issue!?
Comment by Victor Stinner, on 2015-04-23 22:00
Oh. I don't see how to close the issue!?
Hu. I didn't notice that the issue was reported on kallithea bug tracker, sorry :-) I expected an issue on the Paste project :-)
Comment by Paul Rentschler, on 2015-04-23 23:55
It's now fixed in Paste 2.0.1 by @haypo. Thanks everyone.