I'm getting the following error when I try to import regex
.
Traceback (most recent call last):
File "app.py", line 3, in <module>
import regex
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/regex.py", line 391, in <module>
import _regex_core
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/_regex_core.py", line 21, in <module>
import _regex
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/_regex.so, 2): no suitable image found. Did find:
/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/_regex.so: mach-o, but wrong architecture
I've install python33 via macports and then installed the latest version of regex (by Matthew Barnett) via sudo python setup.py install.
I'm using Mac Os X Leopard (8.5). My processor is a Core 2 Duo which is 64 bit. How can I fix this error?
When I run lipo -info
I get:
Non-fat file: /opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/_regex.so is architecture: i386
When I run lipo -info /opt/local/bin/python
Non-fat file: /opt/local/bin/python is architecture: ppc7400
Why is python ppc7400?