astrofrog / astrofrog/macports-python

py27-wxpython fails on Snow Leopard

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
4
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

After following the instructions at http://astrofrog.github.com/macports-python/ then I installed wxpython with:

sudo port install py27-wxpython

This command succeeded but did not result in an importable `wx` package:

```
mac% pythonw
Python 2.7.2 (default, Mar 5 2012, 17:39:56)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "", line 1, in
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in
from wx._core import *
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in
import _core_
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so, 2): no suitable image found. Did find:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: mach-o, but wrong architecture
```

I think this is the same as this thread:

http://mail.python.org/pipermail/baypiggies/2011-January/007356.html

I'm currently trying the suggested fix:

```
$ port upgrade --force --enforce-variants \
py27-wxpython python27 +universal
```

The above fix did not change the error.

What works is

$ arch -i386 /opt/local/bin/python2.7 -c 'import wx'

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

MacPorts-Python のインストール手順から始めて `sudo port install py27-wxpython` を実行し、その後、Snow Leopard で示されている Python コマンドを使って `import wx` をテストします。Python と `wx/_core_.so` のアーキテクチャを比較します。対応しているインストール方法を特定するか、動作する呼び出し方法を説明するよう手順を更新すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
macos, python
領域
operating-systems, tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。