Python refuses to import SVN

T

Tomas

Dear group.
I have some big problems getting python to work with svn.
Python SVN and SWIG is compiled from source.
I have been testing Python 2.5.1 and 2.4.4 together with SWIG 1.3.25 and
1.3.33 and SVN 1.4.5 and 1.4.6

All combinations creates the same problem:

[root@OldStream libsvn]# python
Python 2.4.4 (#1, Feb 25 2008, 08:46:36)
[GCC 3.4.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/svn-python/svn/core.py", line 19, in ?
from libsvn.core import *
File "/usr/local/lib/svn-python/libsvn/core.py", line 5, in ?
import _core
ImportError: File not foundSegmentation fault
[root@OldStream libsvn]#

I just can't figure out what the heck is wrong.
Can someone please help me with this.
I did a gdb session on the same, but to be honest, the output tells me
nothing.

"/usr/local/lib/svn-python" is in in svn.pth in "site-packages"
Also tried to move libsvn and svn to "site-packages" without any luck

contents of "libsvn"
[root@OldStream libsvn]# ls -al
total 7636
drwxr-xr-x 2 root root 4096 Feb 26 19:29 .
drwxr-xr-x 4 root root 4096 Feb 26 19:29 ..
-rw-r--r-- 1 root root 700 Feb 26 19:29 __init__.py
-rw-r--r-- 1 root root 124 Feb 26 19:29 __init__.pyc
-rw-r--r-- 1 root root 640100 Feb 26 19:28 _client.a
-rwxr-xr-x 1 root root 1381 Feb 26 19:28 _client.la
-rwxr-xr-x 1 root root 483355 Feb 26 19:28 _client.so
-rw-r--r-- 1 root root 753614 Feb 26 19:28 _core.a
-rwxr-xr-x 1 root root 1367 Feb 26 19:28 _core.la
-rwxr-xr-x 1 root root 564054 Feb 26 19:28 _core.so
-rw-r--r-- 1 root root 276172 Feb 26 19:29 _delta.a
-rwxr-xr-x 1 root root 1374 Feb 26 19:29 _delta.la
-rwxr-xr-x 1 root root 214896 Feb 26 19:29 _delta.so
-rw-r--r-- 1 root root 372296 Feb 26 19:29 _fs.a
-rwxr-xr-x 1 root root 1353 Feb 26 19:29 _fs.la
-rwxr-xr-x 1 root root 284834 Feb 26 19:29 _fs.so
-rw-r--r-- 1 root root 508620 Feb 26 19:29 _ra.a
-rwxr-xr-x 1 root root 1353 Feb 26 19:29 _ra.la
-rwxr-xr-x 1 root root 385058 Feb 26 19:29 _ra.so
-rw-r--r-- 1 root root 489820 Feb 26 19:29 _repos.a
-rwxr-xr-x 1 root root 1374 Feb 26 19:29 _repos.la
-rwxr-xr-x 1 root root 369334 Feb 26 19:29 _repos.so
-rw-r--r-- 1 root root 790324 Feb 26 19:29 _wc.a
-rwxr-xr-x 1 root root 1353 Feb 26 19:29 _wc.la
-rwxr-xr-x 1 root root 580953 Feb 26 19:29 _wc.so
-rw-r--r-- 1 root root 55399 Feb 26 19:29 client.py
-rw-r--r-- 1 root root 59178 Feb 26 19:29 client.pyc
-rw-r--r-- 1 root root 151964 Feb 26 19:29 core.py
-rw-r--r-- 1 root root 159874 Feb 26 19:29 core.pyc
-rw-r--r-- 1 root root 26235 Feb 26 19:29 delta.py
-rw-r--r-- 1 root root 28256 Feb 26 19:29 delta.pyc
-rw-r--r-- 1 root root 38222 Feb 26 19:29 fs.py
-rw-r--r-- 1 root root 45727 Feb 26 19:29 fs.pyc
-rw-r--r-- 1 root root 43835 Feb 26 19:29 ra.py
-rw-r--r-- 1 root root 47632 Feb 26 19:29 ra.pyc
-rw-r--r-- 1 root root 43248 Feb 26 19:29 repos.py
-rw-r--r-- 1 root root 47508 Feb 26 19:29 repos.pyc
-rw-r--r-- 1 root root 83300 Feb 26 19:29 wc.py
-rw-r--r-- 1 root root 89225 Feb 26 19:29 wc.pyc

contents of svn

[root@OldStream svn]# ls -al
total 92
drwxr-xr-x 2 root root 4096 Feb 26 19:29 .
drwxr-xr-x 4 root root 4096 Feb 26 19:29 ..
-rw-r--r-- 1 root root 760 Feb 26 19:29 __init__.py
-rw-r--r-- 1 root root 226 Feb 26 19:29 __init__.pyc
-rw-r--r-- 1 root root 861 Feb 26 19:29 client.py
-rw-r--r-- 1 root root 317 Feb 26 19:29 client.pyc
-rw-r--r-- 1 root root 7193 Feb 26 19:29 core.py
-rw-r--r-- 1 root root 6348 Feb 26 19:29 core.pyc
-rw-r--r-- 1 root root 2018 Feb 26 19:29 delta.py
-rw-r--r-- 1 root root 2552 Feb 26 19:29 delta.pyc
-rw-r--r-- 1 root root 3924 Feb 26 19:29 fs.py
-rw-r--r-- 1 root root 3353 Feb 26 19:29 fs.pyc
-rw-r--r-- 1 root root 841 Feb 26 19:29 ra.py
-rw-r--r-- 1 root root 301 Feb 26 19:29 ra.pyc
-rw-r--r-- 1 root root 9580 Feb 26 19:29 repos.py
-rw-r--r-- 1 root root 6797 Feb 26 19:29 repos.pyc
-rw-r--r-- 1 root root 841 Feb 26 19:29 wc.py
-rw-r--r-- 1 root root 301 Feb 26 19:29 wc.pyc

System is "generic linux 2.6" on ARM5tejl


With best regards

Tomas Larsson
TL Engineering & Consultants
Engelbrektsgatan 121
SE 506 39 Borås
Sweden

+46 739 932 673

http://www.tlec.se


Verus Amicus Est Tamquam Alter Idem
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top