[MacPorts] #48357: Macports Python fails to import io

MacPorts noreply at macports.org
Tue Jul 14 09:08:29 PDT 2015


#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


More information about the macports-tickets mailing list