本文介绍了尝试在Mac OSX上的virtualenv w / MySQL中安装Django CMS时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  RuntimeError:最大递归深度,我遇到以下错误,当我尝试使用virutalenv安装django CMS与MySQL超过

/Users/ethan/Sites/env/build/mysql-python/distribute-0.6.28-py2.7.egg

追溯(最近的呼叫最后) :

文件< string>,第17行,< module>

文件/Users/ethan/Sites/env/build/mysql-python/setup.py,第7行在< module>

use_setuptools()

文件distribute_setup.py,第145行,use_setuptools

返回_do_download(version,download_base,to_dir,download_delay)

文件distribute_setup.py,第125行,_do_download

_build_egg(egg,tarball,to_dir)

文件distribute_setup.py ,line 116,in _build_egg

raise IOError('Could not build the egg。')

IOError:无法构建蛋。

----------------------------------------
清理...
命令python setup.py egg_info失败,错误代码1在/ Users / ethan / Sites / env / build / mysql-python

我用于安装的命令如下:

  env / bin / pip install --download-cache =〜/ .pip-cache -r reqs.txt 

reqs.txt文件如下所示:

  django-cms == 2.4.1 
Django == 1.5.1
django-classy-tags == 0.4
南== 0.8.1
html5lib == 1.0b1
django-mptt == 0.5.2
django-sekizai == 0.7
six == 1.3.0
枕头== 2.0.0
django-filer == 0.9.4
cmsplugin-filer == 0.9.5
django-reversion == 1.7
mysql-python == 1.2.4


$ b $我是一个新手django(只是通过教程),我找不到任何搜索似乎解决这个问题的东西。任何人都有什么想法?

解决方案

将您的要求更改为mysql-python == 1.2.5,在CentOS 6.3服务器上也有同样的问题。 / p>

I am getting the following error when I try to install django CMS with MySQL using virutalenv:

RuntimeError: maximum recursion depth exceeded

/Users/ethan/Sites/env/build/mysql-python/distribute-0.6.28-py2.7.egg

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/Users/ethan/Sites/env/build/mysql-python/setup.py", line 7, in <module>

    use_setuptools()

  File "distribute_setup.py", line 145, in use_setuptools

    return _do_download(version, download_base, to_dir, download_delay)

  File "distribute_setup.py", line 125, in _do_download

    _build_egg(egg, tarball, to_dir)

  File "distribute_setup.py", line 116, in _build_egg

    raise IOError('Could not build the egg.')

IOError: Could not build the egg.

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/ethan/Sites/env/build/mysql-python

The command I am using for the install is the following:

env/bin/pip install --download-cache=~/.pip-cache -r reqs.txt

And the reqs.txt file looks like this:

django-cms==2.4.1
Django==1.5.1
django-classy-tags==0.4
South==0.8.1
html5lib==1.0b1
django-mptt==0.5.2
django-sekizai==0.7
six==1.3.0
Pillow==2.0.0
django-filer==0.9.4
cmsplugin-filer==0.9.5
django-reversion==1.7
mysql-python==1.2.4

I'm a novice to django (just going through the tutorial) and I cannot find anything in a search that seems to resolve this issue. Anyone have any ideas?

解决方案

Change your requirement to mysql-python==1.2.5, I had the same problem on a CentOS 6.3 server.

这篇关于尝试在Mac OSX上的virtualenv w / MySQL中安装Django CMS时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 11:20