Opened 9 years ago
Closed 9 years ago
#48357 closed defect (worksforme)
Macports Python fails to import io
Reported by: | ForTozs | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | ||
Port: | python27 |
Description
I recently did a fresh OS install on my computer. I reinstalled all my ports and found I was unable to import any libraries into python. All the errors referenced _io.so. I uninstalled all my Python packages and discovered that I can not import io into my Macports Python. I tried uninstalling and cleaning python27, but it did not fix the issue. Here is the output...
Python 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import io Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py", line 51, in <module> import _io ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyErr_ReplaceException Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
Does anyone know what the issue may be? I am using the latest update to Macports, OS X, and Xcode.
Change History (2)
comment:1 Changed 9 years ago by ForTozs
comment:2 Changed 9 years ago by mf2k (Frank Schima)
Keywords: | Python Python27 io removed |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Glad you got it working. Next time don't forget to Cc the port maintainers (port info --maintainers python27
), if any.
Note: See
TracTickets for help on using
tickets.
Well, it seems that a restart fixed it (or for some other reason unknown to me). I don't know what the deal was, but today when I opened Python I was able to import io.