astrofrog / astrofrog/macports-python
py27-wxpython fails on Snow Leopard
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 4
- Forks
- 1
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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'
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par les instructions d’installation de MacPorts-Python et exécutez `sudo port install py27-wxpython`, puis testez `import wx` avec les commandes Python indiquées sur Snow Leopard. Comparez les architectures de Python et de `wx/_core_.so` ; le travail est terminé lorsqu’une installation prise en charge est identifiée ou que les instructions sont mises à jour pour expliquer l’invocation fonctionnelle.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- macos, python
- Domaine
- operating-systems, tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 38/100