douban / code

[DEPRECATED]Douban CODE

Home Page:http://douban-code.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maximum Recursion Depth Exceeded When Install MySql-python==1.2.4 on ubuntu 12.04

SkyLothar opened this issue · comments

解决方案:
在激活virtualenv之后安装requirements之前,手动安装distribute==0.6.28。
easy_install distribute==0.6.28

@SkyLothar 多谢,我更新一下依赖

如果可以的话,是否可以将MySQL-python版本升级至1.2.5,1.2.4存在的问题具体可以这个帖子 Error when trying to install Django CMS in virtualenv w/ MySQL on Mac OSX,下面是我安装时的出错信息,即使easy_install distribute==0.6.28也报类似的调用层数太多错误:

File "/tmp/code/venv/lib/python2.7/re.py", line 151, in sub

    return _compile(pattern, flags).sub(repl, string, count)

RuntimeError: maximum recursion depth exceeded

/tmp/code/venv/build/MySQL-python/distribute-0.6.28-py2.7.egg

Traceback (most recent call last):

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

  File "/tmp/code/venv/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.

----------------------------------------

你可以看看#14

sqlstore 不兼容1.2.5

多谢,按照你说的这个提到的第一种方法解决了,第二种方法好像没成功。

现在的环境直接使用清风老师的这个版本. 已经解决了