Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Failure when installing indexer for the second time #2

Closed
scesbron opened this issue Jul 24, 2013 · 4 comments
Closed

Failure when installing indexer for the second time #2

scesbron opened this issue Jul 24, 2013 · 4 comments

Comments

@scesbron
Copy link

I managed to install this module with the command

fab -H user@ip install_indexer

but if I issue this command another time I have an error

IOError: invalid Python installation: unable to open /usr/cozy-indexer/cozy-data-indexer/virtualenv/lib/python2.7/config/Makefile (No such file or directory)

But the file exists

Here is the complete stack trace

sudo: pip install --use-mirrors -r /usr/local/cozy-indexer/cozy-data-indexer/requirements/common.txt
out: sudo password:
out: Traceback (most recent call last):
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/bin/pip", line 9, in <module>
out:     load_entry_point('pip==1.4', 'console_scripts', 'pip')()
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/local/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
out:     return get_distribution(dist).load_entry_point(group, name)
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/local/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
out:     return ep.load()
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/local/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
out:     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>
out:     from pip.vcs import git, mercurial, subversion, bazaar  # noqa
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/local/lib/python2.7/site-packages/pip/vcs/subversion.py", line 4, in <module>
out:     from pip.index import Link
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/local/lib/python2.7/site-packages/pip/index.py", line 32, in <module>
out:     from pip.wheel import Wheel, wheel_ext, wheel_setuptools_support, setuptools_requirement
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/local/lib/python2.7/site-packages/pip/wheel.py", line 18, in <module>
out:     from pip import pep425tags
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/local/lib/python2.7/site-packages/pip/pep425tags.py", line 98, in <module>
out:     supported_tags = get_supported()
out:   File "/usr/local/cozy-indexer/cozy-data-indexer/virtualenv/local/lib/python2.7/site-packages/pip/pep425tags.py", line 61, in get_supported
out:     soabi = sysconfig.get_config_var('SOABI')
out:   File "/usr/lib/python2.7/sysconfig.py", line 577, in get_config_var
out:     return get_config_vars().get(name)
out:   File "/usr/lib/python2.7/sysconfig.py", line 476, in get_config_vars
out:     _init_posix(_CONFIG_VARS)
out:   File "/usr/lib/python2.7/sysconfig.py", line 344, in _init_posix
out:     raise IOError(msg)
out: IOError: invalid Python installation: unable to open /usr/cozy-indexer/cozy-data-indexer/virtualenv/lib/python2.7/config/Makefile (No such file or directory)
out:
@frankrousseau
Copy link
Contributor

In fact it looks like the bug comes from pip, the python package manager : pypa/pip#1074

@frankrousseau
Copy link
Contributor

We should try to find a way to downgrade the version of pip until they publish a new release with the fix included.

@zeskunk
Copy link

zeskunk commented Oct 30, 2013

Hello Team,

I'm facing this issue too when trying to install cozycloud.
Did you find a way to fix it ?
Thanks a lot

@frankrousseau
Copy link
Contributor

Hi zeskunk,

Remove/Comment the indexer step from the install file. The indexer is not mandatory to run Cozy (it is used only by not application for the moment).
Here is the line to comment: https://github.com/mycozycloud/cozy-setup/blob/master/fabfile.py#L82

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

No branches or pull requests

4 participants