[MacPorts] #18005: subversion-python25bindings 1.5.5_0 Fatal Python error: Interpreter not initialized (version mismatch?)
#18005: subversion-python25bindings 1.5.5_0 Fatal Python error: Interpreter not initialized (version mismatch?) ----------------------------------------------------+----------------------- Reporter: jxraynor@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: python subversion bindings fatal error | Port: subversion-python25bindings ----------------------------------------------------+----------------------- When trying to use the subversion-python25bindings port, I get the following problem:
from svn import fs Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
I'm running this on OS X 10.5.6 with the python 2.5.4_0+darwin_9+macosx port. Cursory searches on the web indicate that the lib /opt/local/lib/libsvn_swig_py25-1.0.0.0.dylib is linking against Apple- provides libs when it shouldn't be. For example:
otool -L /opt/local/lib/libsvn_swig_py25-1.0.0.0.dylib |grep /System /System/Library/Frameworks/Python.framework/Versions/2.5/Python (compatibility version 2.5.0, current version 2.5.1) /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 34102.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 32.0.0)
-- Ticket URL: <http://trac.macports.org/ticket/18005> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18005: subversion-python25bindings 1.5.5_0 Fatal Python error: Interpreter not initialized (version mismatch?) ----------------------------------------------------+----------------------- Reporter: jxraynor@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: python subversion bindings fatal error | Port: subversion-python25bindings ----------------------------------------------------+----------------------- Changes (by blb@…): * owner: macports-tickets@… => dluke@… Old description:
When trying to use the subversion-python25bindings port, I get the following problem:
from svn import fs Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
I'm running this on OS X 10.5.6 with the python 2.5.4_0+darwin_9+macosx port. Cursory searches on the web indicate that the lib /opt/local/lib/libsvn_swig_py25-1.0.0.0.dylib is linking against Apple- provides libs when it shouldn't be. For example:
otool -L /opt/local/lib/libsvn_swig_py25-1.0.0.0.dylib |grep /System /System/Library/Frameworks/Python.framework/Versions/2.5/Python (compatibility version 2.5.0, current version 2.5.1) /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 34102.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 32.0.0)
New description: When trying to use the subversion-python25bindings port, I get the following problem: {{{
from svn import fs Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap }}}
I'm running this on OS X 10.5.6 with the python 2.5.4_0+darwin_9+macosx port. Cursory searches on the web indicate that the lib /opt/local/lib/libsvn_swig_py25-1.0.0.0.dylib is linking against Apple- provides libs when it shouldn't be. For example: {{{
otool -L /opt/local/lib/libsvn_swig_py25-1.0.0.0.dylib |grep /System /System/Library/Frameworks/Python.framework/Versions/2.5/Python (compatibility version 2.5.0, current version 2.5.1) /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 34102.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 32.0.0) }}}
-- Comment: Make sure you have the python_select port installed, and used it to select python25: {{{ sudo port install python_select sudo python_select python25 }}} -- Ticket URL: <http://trac.macports.org/ticket/18005#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18005: subversion-python25bindings 1.5.5_0 Fatal Python error: Interpreter not initialized (version mismatch?) ----------------------------------------------------+----------------------- Reporter: jxraynor@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: python subversion bindings fatal error | Port: subversion-python25bindings ----------------------------------------------------+----------------------- Comment(by jxraynor@…): I had already done that, but I tried it again with the same results: jxraynor> port installed |grep python python25 @2.5.4_0+darwin_9+macosx (active) python_select @0.2.1_0+darwin_9 (active) subversion-python25bindings @1.5.5_0 (active) jxraynor> sudo port install python_select Password: Skipping org.macports.activate (python_select +darwin_9) since this port is already active ---> Cleaning python_select jxraynor> sudo python_select python25 Selecting version "python25" for python jxraynor> python Python 2.5.4 (r254:67916, Jan 9 2009, 23:37:28) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information.
from svn import fs Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
-- Ticket URL: <http://trac.macports.org/ticket/18005#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18005: subversion-python25bindings 1.5.5_0 Fatal Python error: Interpreter not initialized (version mismatch?) ----------------------------------------------------+----------------------- Reporter: jxraynor@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: python subversion bindings fatal error | Port: subversion-python25bindings ----------------------------------------------------+----------------------- Comment(by jxraynor@…): {{{ I'm resubmitting the text I just submitted to get it formatted better. jxraynor> port installed |grep python python25 @2.5.4_0+darwin_9+macosx (active) python_select @0.2.1_0+darwin_9 (active) subversion-python25bindings @1.5.5_0 (active) jxraynor> sudo port install python_select Password: Skipping org.macports.activate (python_select +darwin_9) since this port is already active ---> Cleaning python_select jxraynor> sudo python_select python25 Selecting version "python25" for python jxraynor> python Python 2.5.4 (r254:67916, Jan 9 2009, 23:37:28) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information.
from svn import fs Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
}}} -- Ticket URL: <http://trac.macports.org/ticket/18005#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18005: subversion-python25bindings 1.5.5_0 Fatal Python error: Interpreter not initialized (version mismatch?) ----------------------------------------------------+----------------------- Reporter: jxraynor@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: python subversion bindings fatal error | Port: subversion-python25bindings ----------------------------------------------------+----------------------- Changes (by dluke@…): * owner: dluke@… => dluke@… Comment: This line: {{{ Skipping org.macports.activate (python_select +darwin_9) since this port is already active }}} indicates that the python bindings weren't rebuilt after python_select was run. After you've selected the macports python, do this: {{{ sudo port -f uninstall subversion-python25bindings sudo port --clean all subversion-python25bindings sudo port install subversion-python25bindings }} ... and let us know if it works for you then. -- Ticket URL: <http://trac.macports.org/ticket/18005#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18005: subversion-python25bindings 1.5.5_0 Fatal Python error: Interpreter not initialized (version mismatch?) ----------------------------------------------------+----------------------- Reporter: jxraynor@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: python subversion bindings fatal error | Port: subversion-python25bindings ----------------------------------------------------+----------------------- Comment(by jxraynor@…): {{{ Thanks. That fixed the problem, though I didn't need the '--' before the 'clean'. I should note that I used macports to install trac, so python and the svn bindings got installed automatically as dependencies and I never had a chance to run python_select before the svn bindings were built. Should something be added to the svn bindings port to check that some version of python was python_selected before it gets built? }}} -- Ticket URL: <http://trac.macports.org/ticket/18005#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18005: subversion-python25bindings 1.5.5_0 Fatal Python error: Interpreter not initialized (version mismatch?) ------------------------------------------+--------------------------------- Reporter: jxraynor@… | Owner: dluke@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: python subversion bindings fatal error Port: subversion-python25bindings | ------------------------------------------+--------------------------------- Changes (by dluke@…): * status: new => closed * resolution: => fixed Comment: Replying to [comment:5 jxraynor@…]:
Thanks. That fixed the problem, though I didn't need the '--' before the 'clean'.
Yeah, sorry that should have been clean --all (the --all is not usually necessary, but I add it in case people have archivemode on).
I should note that I used macports to install trac, so python and the svn bindings got installed automatically as dependencies and I never had a chance to run python_select before the svn bindings were built. Should something be added to the svn bindings port to check that some version of python was python_selected before it gets built?
Probably. The pythonbindings port(s) predate the way python_select works now, so they probably need to be updated somehow (and/or modified to use the macports python even if it's not the one python_select has selected). -- Ticket URL: <http://trac.macports.org/ticket/18005#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts