473,320 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Python refuses to import SVN

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.
>>from svn import core
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 found
>>from svn import core
Segmentation 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

Feb 26 '08 #1
0 1468

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Hung Jung Lu | last post by:
Hi, I know people have talked about it before, but I am still really confused from reading the old messages. When I talk about code blocks, I am not talking about Lisp/Ruby/Perl, so I am not...
8
by: Luca T. | last post by:
Ok... Now... I made this simple program as a test: import popen2 r,w,e = popen2.popen3('su -c ls') for line in e.readlines(): print 'E: ' + line for line in r.readlines(): print 'R: ' + line
1
by: Jerald | last post by:
Running python 2.3.4 on valgrind (a tool like purify which checks the use of uninitialized memory, etc), gives a lot of errors. See below. jfj@cluster:~/> python -V Python 2.3.4...
81
by: julio | last post by:
Sorry but there is no another way, c# .net and mono are going to rip python, not because python is a bad lenguage, but because is to darn old and it refuses to innovate things, to fix wrong things,...
2
by: Brad Tilley | last post by:
Anyone know of a small Python script that acts as a slimmed down smtp server (just sends from the local machine)? I currently use a smtp server for sending email reports from machines, but as...
2
by: rodmc | last post by:
I am totally new to Python and WxPython and need to write an application which can open up an external windows from a plug-in within GAIM (using pyGAIM). I have managed to hack some code together...
6
by: test | last post by:
Hi everyone, I'm creating a desktop Python application that requires web-based authentication for accessing additional application features. HTTP GET is really simple. HTTP POST is not (at...
4
by: Markus Dahlbokum | last post by:
Hello, I'm trying to link python statically with qt and pyqt. I've tried this in several ways but never succeeded. At the moment the final make runs without errors but I get import errors when...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.