SVN access with pysvn under Cygwin (Installation problems)

A

Andy Dingley

I'm building Python tools to wrap up access to our Subversion / SVN
source control system. It's to run on my desktop (Cygwin under Windows
XP) and then later under Redhat.

Trying to install the pysvn module I'm running into problems getting
it to work under Cygwin. Works fine from a Windows command prompt,
with both the svn_cmd.py example and my own Python code. Under Cygwin
though I just get import failures. pysvn/__init__.py seems to be
invoked happily enough, but then fails when it tries to import
_pysvn_2_5.pyd

$ python svn_cmd.py
Traceback (most recent call last):
File "svn_cmd.py", line 10, in <module>
import pysvn
File "/usr/lib/python2.5/pysvn/__init__.py", line 104, in <module>
import _pysvn_2_5
ImportError: No module named _pysvn_2_5

Is there some trick to getting .pyd to work under Cygwin? I've tried
the obvious twiddling with environment variables (and regedit), but
I'm just guessing blindly.

Thanks for any assistance.
 
J

Jason Tishler

Andy,

Trying to install the pysvn module I'm running into problems getting
it to work under Cygwin. Works fine from a Windows command prompt,
with both the svn_cmd.py example and my own Python code. Under Cygwin
though I just get import failures. pysvn/__init__.py seems to be
invoked happily enough, but then fails when it tries to import
_pysvn_2_5.pyd

$ python svn_cmd.py
Traceback (most recent call last):
File "svn_cmd.py", line 10, in <module>
import pysvn
File "/usr/lib/python2.5/pysvn/__init__.py", line 104, in <module>
import _pysvn_2_5
ImportError: No module named _pysvn_2_5

Is there some trick to getting .pyd to work under Cygwin?

You need to build (and install) pysvn under Cygwin. The pre-built
Windows version will not work under Cygwin.

Jason
 
A

Andy Dingley

You need to build (and install) pysvn under Cygwin.  The pre-built
Windows version will not work under Cygwin.

Thanks. Presumably this same problem would affect anything that uses
a .pyd under Cygwin?
 
J

Jason Tishler

Andy,

Thanks. Presumably this same problem would affect anything that uses a
.pyd under Cygwin?

Yes, Python shared extension modules are specific to the Python used to
build them. This is the situation even though Windows Python and Cygwin
Python both run on the same operating system.

BTW, this is why I added shared extension module support to Cygwin
Python almost 8 years ago.

Jason
 

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,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top