[MacPorts] #48357: Macports Python fails to import io
#48357: Macports Python fails to import io ----------------------------------+-------------------------------- Reporter: JDTilley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: Python, Python27, io | Port: python27 ----------------------------------+-------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/48357> MacPorts <https://www.macports.org/> Ports system for OS X
#48357: Macports Python fails to import io -------------------------+---------------------------------- Reporter: JDTilley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Python, Python27, io Port: python27 | -------------------------+---------------------------------- Comment (by JDTilley@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/48357#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48357: Macports Python fails to import io -------------------------+-------------------------------- Reporter: JDTilley@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: worksforme | Keywords: Port: python27 | -------------------------+-------------------------------- Changes (by mf2k@…): * status: new => closed * keywords: Python, Python27, io => * resolution: => worksforme Comment: Glad you got it working. Next time don't forget to Cc the port maintainers ({{{port info --maintainers python27}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/48357#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts