start.py を直接実行すると、次のようになります。
Symbol not found: _OCIAttrGet
Referenced from: /Library/Python/2.7/site-packages/cx_Oracle.so
グーグルで調べたところ、Oracleクライアントのアーチの問題が原因であることがわかりました。次のようにスクリプトを実行すると、動作します。
arch -i386 python2.7 start.py
PyCharmの無料版が利用可能になりました(JetBrainsに感謝します)。プロジェクトをインポートしましたが、「実行構成」を設定して、ターミナルから実行する方法でスクリプトを起動するにはどうすればよいですか。
私は試した:
Run -> Edit Configuration -> Python Interpreter but it is already populated with the known python paths
Run -> Edit Configuration -> Interpreter Options but throws an error saying unknown file "arch"
回避策はありますか?