473,887 Members | 2,280 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Engelbrektsgata n 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 1490

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

Similar topics

20
5951
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 making comparisons. If you have a file, in Python you could do:
8
2072
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
2956
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 jfj@cluster:~/> valgrind python ==10517== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
81
4778
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, just because retarded backwards compatibility and because the python comunity and developers refuses to consider tools as being almost as important as the language itself. What does c# .net has that python doesnt ? (significant features) --...
2
1839
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 machines travel outside of our lan, the smtp server refuses to relay their messages. So, I thought it would be better if each machine had its own little mail sender this way, it could continue reporting no matter where it was located. These are all...
2
1721
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 from what little I have covered so far, however GAIM refuses to open until I have closed the extra window. I appreciate this is probably a simple point but I would be grateful for any advice people can offer on how I can make them both appear so...
6
3453
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 least for me anyway) ;) I have tried a few different sources, but I cannot get HTTP POST to successfully log in. I can login using FireFox at
4
2496
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 accessing pyqt. How can I solve this problem? Markus # installing zipimport hook
0
9799
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10877
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9593
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7143
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5810
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4239
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3245
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.