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

centos7 buildout fails with error "ImportError: No module named six.moves" #71

Closed
cjsteel opened this issue Apr 20, 2017 · 1 comment
Closed

Comments

@cjsteel
Copy link

cjsteel commented Apr 20, 2017

On Centos7 the default virtualenv does not include the following three pip installable packages which are installed by default on other versions of Ubuntu and Centos when creating a new virtualenv:

  • six
  • appdirs
  • packaging

Running:

sudo -u plone_buildout /usr/local/plone-5.0/zeoserver/bin/pip freeze

shows these packages are missing on the default Centos7 installation.

output example:

wsgiref==0.1.2

Manual fix, log into the server and:

sudo -u plone_buildout /usr/local/plone-5.0/zeoserver/bin/pip install six
sudo -u plone_buildout /usr/local/plone-5.0/zeoserver/bin/pip install appdirs
sudo -u plone_buildout /usr/local/plone-5.0/zeoserver/bin/pip install packaging

check your work:

sudo -u plone_buildout /usr/local/plone-5.0/zeoserver/bin/pip freeze

Output example after fix (and successful playbook rerun):

appdirs==1.4.3
packaging==16.8
pyparsing==2.2.0
six==1.10.0
wsgiref==0.1.2
zc.buildout==2.9.3

Similar / same? issue: pypa/setuptools#942

@smcmahon
Copy link
Member

Sorry for not getting to this earlier. This does not cause a problem with the playbook, as one of the first things the plone server role does on RedHat family machines is update pip, virtualenv and setuptools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants