#18005 closed defect (fixed)
subversion-python25bindings 1.5.5_0 Fatal Python error: Interpreter not initialized (version mismatch?)
Reported by: | jxraynor@… | Owned by: | danielluke (Daniel J. Luke) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | python subversion bindings fatal error | Cc: | |
Port: | subversion-python25bindings |
Description (last modified by blb@…)
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)
Change History (7)
comment:1 Changed 16 years ago by blb@…
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to dluke@… |
comment:2 Changed 16 years ago 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
comment:3 Changed 16 years ago 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
comment:4 Changed 16 years ago by danielluke (Daniel J. Luke)
Owner: | changed from dluke@… to dluke@… |
---|
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.
comment:5 follow-up: 6 Changed 16 years ago 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?
comment:6 Changed 16 years ago by danielluke (Daniel J. Luke)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to 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).
Make sure you have the python_select port installed, and used it to select python25: