astrofrog / astrofrog/macports-python
py27-wxpython fails on Snow Leopard
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 4
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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'
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với hướng dẫn cài đặt MacPorts-Python và thực hiện `sudo port install py27-wxpython`, sau đó kiểm tra `import wx` bằng các lệnh Python được nêu trên Snow Leopard. So sánh các kiến trúc của Python và `wx/_core_.so`; công việc được xem là hoàn tất khi xác định được một cài đặt được hỗ trợ hoặc cập nhật hướng dẫn để giải thích cách gọi hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- macos, python
- Lĩnh vực
- operating-systems, tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 38/100