2014-03-25 7 views
7

Ich richtete eine virtualenv und dann versucht, MySQL-Python mit pip (after activating env) zu installieren. Mein requirements.txt ist wie folgt:Python virtualenv pip installieren MySQL-Python verursacht "RuntimeError: maximale Rekursion Tiefe überschritten"

MySQL-python==1.2.5 
argparse==1.2.1 
pymongo==2.6.3 
wsgiref==0.1.2 

Als ich pip install -r requirement.txt laufen. Ich erhalte eine Ausgabe letzte Zeile davon ist:

RuntimeError: maximum recursion depth exceeded 

Wie in einem Beitrag erwähnt, lief ich auch diesen Befehl mein Upgrade verteilen:

easy_install distribute==0.6.28 

Auch die nicht funktionierten. Meine Python-Version (in env) ist 2.7.6 und Maschine ist Ubuntu 14,04


UPDATE: Stapelüberwachung ist wie folgt:

Downloading/unpacking MySQL-python==1.2.5 (from -r requirements.txt (line 1)) 
    Running setup.py (path:/root/frrole_backend_raw_dump/env/build/MySQL-python/setup.py) egg_info for package MySQL-python 
    Traceback (most recent call last): 
     File "<string>", line 17, in <module> 
     File "/root/frrole_backend_raw_dump/env/build/MySQL-python/setup.py", line 21, in <module> 
     setuptools.setup(**metadata) 
     File "/usr/lib/python2.7/distutils/core.py", line 112, in setup 
     _setup_distribution = dist = klass(attrs) 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 225, in __init__ 
     File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__ 
     self.finalize_options() 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 257, in finalize_options 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2029, in require 
     self.name = name 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve 
     dist = best[req.key] = env.best_match(req, ws, installer) 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 825, in best_match 
     ``installer(requirement)``, unless `installer` is None, in which case 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 837, in obtain 
     def __iadd__(self, other): 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 272, in fetch_build_egg 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 225, in __init__ 
     File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__ 
     self.finalize_options() 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 257, in finalize_options 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2029, in require 
     self.name = name 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve 
     dist = best[req.key] = env.best_match(req, ws, installer) 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 825, in best_match 
     ``installer(requirement)``, unless `installer` is None, in which case 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 837, in obtain 
     def __iadd__(self, other): 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 272, in fetch_build_egg 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 225, in __init__ 
     File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__ 
     self.finalize_options() 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 257, in finalize_options 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2029, in require 
     self.name = name 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve 
     dist = best[req.key] = env.best_match(req, ws, installer) 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 825, in best_match 
     ``installer(requirement)``, unless `installer` is None, in which case 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 837, in obtain 
     def __iadd__(self, other): 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 272, in fetch_build_egg 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 225, in __init__ 
     File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__ 
     self.finalize_options() 
     File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 257, in finalize_options 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2029, in require 
     self.name = name 
     File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve 
     dist = best[req.key] = env.best_match(req, ws, installer) 
+0

Bitte buchen Sie die komplette Traceback. –

+0

Ich sehe das exakt gleiche Problem. @BurhanKhalid da es eine Endlosschleife ist, ist der Großteil des Tracebacks nur mehr von dem oben genannten. Ich lasse das OP die Frage bearbeiten, um das Ende hinzuzufügen. –

Antwort

4

diese zu bekommen!

Einige Anmerkungen von meinem Setup:

  • Ubuntu 13,10
    • Python-MySQLdb und libmysqlclient-dev über beide installiert sind apt-get

ich das auch sehen , was ich vermute, ist die Ursache:

x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-Qunused-arguments’ 
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-Qunused-arguments’ 

EDIT:

Sieht aus wie ich immer noch diesen (MySQL-Python 1.2.4) ohne einen variablen Satz CFLAGS oder CPPFLAGS Umgebung bekommen. 1.2.5 funktioniert für mich.

+0

lololol, Dachte, dass diese Flaggen vertraut erschienen :) Mein Problem war eine Änderung, die ich an meinem .bashrc gemäß [diesem Thread] gemacht habe (http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno- fusioned-madd-python-package-installations-fa) auf meinem Mac. Ich habe meine .bashrc von dieser Maschine kopiert. – pnovotnak

+0

+1 für "Dies scheint fest zu sein 1.2.5." – meshy

Verwandte Themen