[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problems with python 2.5 bindings on Windows

From: Dominik Guder <osc_at_guder.org>
Date: Mon, 4 Aug 2008 04:23:38 -0700 (PDT)

Miha Vitorovic wrote:
>
>
>>>> import svn.repos
> Traceback (most recent call last):
> File "<interactive input>", line 1, in <module>
> File "C:\Program Files\Python25\lib\site-packages\svn\repos.py", line
> 19, in <module>
> from libsvn.repos import *
> File "C:\Program Files\Python25\lib\site-packages\libsvn\repos.py", line
> 5, in <module>
> import _repos
> ImportError: No module named _repos
>
> I even tried to add C:\Program Files\Python25\Lib\site-packages\libsvn to
> PythonPath (some things that I read on the Internet seemed to hint this
> might solve the problems), but still no luck.
>
> All I'm trying to do is get the ViewVC to work.
>
> Can someone with more Python experience please help?
>
> Thanks in advance and best regards,
>
>

Hi,

starting from 2.5 (I think) python don't load *.dlls by default they must be
renamed to *.pyd.
I use following solution:
- Open a command shell
- Goto your libsvn dir (C:\Program Files\Python25\Lib\site-packages\libsvn)
- rename *.dll to *.pyd: for %i in (*.dll) do copy %i %~dpni.pyd

IMHO this should be taken into account by the python 2.5 build script.

hth

Dominik

-- 
View this message in context: http://www.nabble.com/Problems-with-python-2.5-bindings-on-Windows-tp18807167p18809452.html
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-04 13:24:00 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.