ryansb/spacehub

Openshift setuptools/distribute problem.

Closed this issue · 2 comments

remote: Running MySQL-python-1.2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/egg-dist-tmp-sZ_tcu
remote: Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
remote: Extracting in /tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb
remote: Now working in /tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28
remote: Building a Distribute egg in /tmp/easy_install-EEZ4YE/MySQL-python-1.2.4
remote: Traceback (most recent call last):
remote:   File "setup.py", line 41, in <module>
remote:     exec(open(init_path).read(), d)
remote:   File "<string>", line 8, in <module>
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/setuptools/__init__.py", line 2, in <module>
remote:     from setuptools.extension import Extension, Library
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/setuptools/extension.py", line 5, in <module>
remote:     from setuptools.dist import _get_unpatched
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/setuptools/dist.py", line 6, in <module>
remote:     from setuptools.command.install import install
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/setuptools/command/__init__.py", line 8, in <module>
remote:     from setuptools.command import install_scripts
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/setuptools/command/install_scripts.py", line 3, in <module>
remote:     from pkg_resources import Distribution, PathMetadata, ensure_directory
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/pkg_resources.py", line 2835, in <module>
remote:     add_activation_listener(lambda dist: dist.activate())
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/pkg_resources.py", line 704, in subscribe
remote:     callback(dist)
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/pkg_resources.py", line 2835, in <lambda>
remote:     add_activation_listener(lambda dist: dist.activate())
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/pkg_resources.py", line 2259, in activate
remote:     self.insert_on(path)
remote:   File "/tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/temp/tmpQf1leb/distribute-0.6.28/pkg_resources.py", line 2360, in insert_on
remote:     "with distribute. Found one at %s" % str(self.location))
remote: ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /var/lib/openshift/51ba20065973ca207b0000a5/python/virtenv/lib/python2.7/site-packages/setuptools-0.7.2-py2.7.egg
remote: /tmp/easy_install-EEZ4YE/MySQL-python-1.2.4/distribute-0.6.28-py2.7.egg
remote: error: None
remote: An error occurred executing 'gear postreceive'
remote: 

Something about openshift's packaging is preventing installation of MySQL-python, which we depend on.

This has been fixed in a local branch on my machine. Now running into places where Openshift changed their environment variables.

Setting up my own openshift so I can test on faster boxen. Will report back in a couple hours.

Now resolved. Openshift changed the name of the OPENSHIFT_INTERNAL_IP variable which confused some of our "is the instance working" tests.