astrofrog / astrofrog/macports-python

py27-wxpython fails on Snow Leopard

Offen
#4 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
4
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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'

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit den MacPorts-Python-Installationsanweisungen und führe `sudo port install py27-wxpython` aus. Teste anschließend `import wx` mit den auf Snow Leopard gezeigten Python-Befehlen. Vergleiche die Architekturen von Python und `wx/_core_.so`; abgeschlossen ist die Aufgabe, wenn eine unterstützte Installation identifiziert oder die Anweisungen aktualisiert wurden, um die funktionierende Invocation zu erklären.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
macos, python
Bereich
operating-systems, tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.