1

ビルドアウトにより、Z MYSQL Databae 接続用に ZMYSQLDA をインストールしています。

ここに私の最初の定義があります:

parts=
     .....
     zmysqlda


[zmysqlda]
recipe = cns.recipe.zmysqlda
target = ${productdistros:location}

問題ないようです。インスタンスをビルドし、サイトが機能します。

詳細については、MySQLdb をインポートできるように、既に exe ファイルを使用して MySQL_python をインストールしています。

卵に Products.ZMySQLDA を導入すると、MYSQL-python を取得しようとします。すでにインストールされているため、理由はわかりません。

倒産ログは

Unused options for buildout: 'eggs' 'download-directory'.
Updating productdistros.
Installing instance.
Getting distribution for 'MySQL-python==1.2.3'.
install_dir C:\Program Files\Plone 404/buildout-cache/eggs\tmparsmo9
error: The system cannot find the file specified
An error occured when trying to install MySQL-python 1.2.3. Look above this mess
age for any errors that were output by easy_install.
While:
  Installing instance.
  Getting distribution for 'MySQL-python==1.2.3'.
Error: Couldn't install: MySQL-python 1.2.3
*************** PICKED VERSIONS ****************
[versions]
collective.saconnect = 1.3
pas.plugins.sqlalchemy = 0.2
products.ploneboard = 2.2
products.ploneboardsubscription = 0.2
products.zmysqlda = 3.1.1
sqlalchemy = 0.6.6

#Required by:
#collective.saconnect 1.3
plone.app.z3cform = 0.5.3

#Required by:
#collective.saconnect 1.3
rwproperty = 1.0

#Required by:
#pas.plugins.sqlalchemy 0.2
z3c.saconfig = 0.12

#Required by:
#pas.plugins.sqlalchemy 0.2
zope.sqlalchemy = 0.6.1
4

1 に答える 1

2

既にインストールされているものがビルドアウトの PYTHONPATH にないため、mysql-python をインストールしようとしています。

[zmysqlda] セクションの「target=」オプションを削除することから始めます。最近は、'productdistros' を指してはいけません。buildout が'target'で zmysqlda の依存関係を見つけられない可能性があります。それでも解決しない場合は、-vvオプションを指定してビルドアウトを再実行し、結果をここに投稿してください。

ただし、とにかく sqlalchemy を使用している限り、それとうまく連携する SQLAlchemyDA を使用してみませんか? 次に、 Products.SQLAlchemyDA (および MySql db アダプター - とにかく sqlalchemy 用に持っていると思われます) を卵リストに追加するだけで、 [zmysqlda] 部分に対応するものは何も必要ありません。

于 2011-04-06T12:52:11.740 に答える