Bug 973803
Summary: | can't install MySQL-python-1.2.4 to python-2.7 apps as a result of setuptools-0.7.2 conflict with distrubute package. | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Peter Ruan <pruan> |
Component: | Image | Assignee: | Michal Fojtik <mfojtik> |
Status: | CLOSED NOTABUG | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | dmcphers |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-22 19:36:52 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Peter Ruan
2013-06-12 19:11:46 UTC
The workaround is to specify a lower version of setuptools to be installed. You can do this by editing setup.py and add the following line to the install_requires array install_requires=['gevent', 'MySQL-python', 'pymongo', 'psycopg2', 'setuptools == 0.6c9' ], There are two more workarounds for the issue: 1. Install "MySQL-python=1.2.3" 2. ssh into the gear, activate virtualenv and do a easy_install -U distribute, add "MySQL-python" to setup.py and git push. If you add install_requires=['MySQL-python'] now without specifying a version, it gets installed without any errors. Also when I tried to hardcode 1.2.4 version into setup.py I get this result: remote: Building a Distribute egg in /tmp/easy_install-N8UQiH/MySQL-python-1.2.4 remote: /tmp/easy_install-N8UQiH/MySQL-python-1.2.4/distribute-0.6.28-py2.7.egg remote: In file included from /usr/include/mysql/my_config.h:14, remote: from _mysql.c:44: remote: /usr/include/mysql/my_config_x86_64.h:1082:1: warning: "HAVE_WCSCOLL" redefined remote: In file included from /opt/rh/python27/root/usr/include/python2.7/pyconfig.h:6, remote: from /opt/rh/python27/root/usr/include/python2.7/Python.h:8, remote: from _mysql.c:29: remote: /opt/rh/python27/root/usr/include/python2.7/pyconfig-64.h:908:1: warning: this is the location of the previous definition remote: zip_safe flag not set; analyzing archive contents... remote: Removing MySQL-python 1.2.3 from easy-install.pth file remote: Adding MySQL-python 1.2.4 to easy-install.pth file QA: Are you OK with closing this as NOTABUG? verified with the latest_devenv per suggestion from Michal. |