By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,571 Members | 963 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,571 IT Pros & Developers. It's quick & easy.

SVN access with pysvn under Cygwin (Installation problems)

P: n/a
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.
Jul 30 '08 #1
Share this Question
Share on Google+
3 Replies

P: n/a
Andy,

On Wed, Jul 30, 2008 at 07:46:32AM -0700, Andy Dingley wrote:
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

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Jul 30 '08 #2

P: n/a
On 30 Jul, 20:30, Jason Tishler <ja...@tishler.netwrote:
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?
Jul 31 '08 #3

P: n/a
Andy,

On Thu, Jul 31, 2008 at 03:10:26AM -0700, Andy Dingley wrote:
On 30 Jul, 20:30, Jason Tishler <ja...@tishler.netwrote:
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?
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

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Jul 31 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.