py27-wxpython fails on Snow Leopard
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- macos, python
- Domain
- operating-systems, tooling
Research direction
Start with the MacPorts-Python installation instructions and reproduce sudo port install py27-wxpython, then test import wx with the Python commands shown on Snow Leopard. Compare the architectures of Python and wx/_core_.so; done means identifying a supported installation or updating the instructions to explain the working invocation.
Written by the indexing model from the issue text.
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 "<stdin>", line 1, in <module>
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 <module>
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 <module>
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'
- Dominant language
- No language data
- Stars
- 4
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from astrofrog/macports-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
astrofrog/macports-python#6 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
All issues in astrofrog/macports-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
type:content-error
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stephrobert/blog-roadmap#15 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/windows-rs#4979 ·
-
0.kind: bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100