2014-01-18 3 views
10

は私がvirutalenvを使用してMySQLとジャンゴCMSをインストールしようとすると、私は次のエラーを取得していますマックOSXでMySQL/wのvirtualenvのでDjangoのCMSをインストールしようとしている:私は使用していますエラー時に

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 

コマンドインストール以下の通りです:

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 
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 

私は」 djangoの初心者(ちょうどチュートリアルを通過)と私はこの問題を解決するように見える何かを見つけることができません。誰にでもアイデアはありますか?

+0

を続行するために良いことがありますが、あなたが-r REQSをインストールピップ」を実行しようとしているときに、アクティブvirtualenvのです。TXT" ? –

+0

'source env/bin/activate'コマンドを実行したかどうかは、activateによってどういう意味ですか?もしそうなら、はい。 – fraxture

+0

上記のコマンドを実行した後、 'source〜/ .bash_profile'を実行した後で、virtualenvをアクティブにしてみました。同じエラー。これは私のmysqlインストールが見つからないことと関係がありますか? – fraxture

答えて

15

あなたの要件をmysql-python == 1.2.5に変更すると、CentOS 6.3サーバーで同じ問題が発生しました。

2

のmysql-pythonのために== 1.2.5も

9

のmysql-pythonのVをインストールピップとOS Xのマーベリックスに私のために働いた変更の要件。1.2.4は、バージョン0.6.28の配布に強い依存関係を持っています。それは正しいバージョンの配布を選んでいないかもしれません。

を実行し、この仮想ENVがアクティブになった後:

easy_install distribute==0.6.28 

、あなたが

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

は私のOS X 10.8.5で動作しません –

+0

これは私のために修正したものです。ありがとうございます。 – mikec