473,386 Members | 1,736 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,386 software developers and data experts.

SVN access with pysvn under Cygwin (Installation problems)

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
3 3067
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andreou Giannis | last post by:
Allthough it is possible to build modules in Python2.3.3 and distutils with cygwin, by running: setup.py build --compiler=cygwin (after i created the libpython23.a) running: setup.py install...
2
by: gry | last post by:
Under cygwin, the python executable is installed as python2.4.exe with a symbolic link to python.exe. This is fine as long as one is operating only withing the cygwin world. But I execute...
2
by: Stephane Roy | last post by:
Hi, Did someone installed and used successfully drPython on Cygwin? The installation requires wxpython. I tried many different alternatives (source, binary, etc) but so far the best I get is...
0
by: Norm Wong | last post by:
If anyone is interested in using db2uext2 with Cygwin gcc compiler on Windows, I've modified the IBM provided sample with the attached file. There are two main modifications. The mkdir command...
9
by: mike | last post by:
Hi all, What do you people do (if anything) to help with automated access-plan checking of static-SQL on DB2 LUW v8.2.2 ? Sometimes after we rebind, DB2 will choose a "bad" plan in certain...
4
by: reachsamdurai | last post by:
Hello, Can you please let me know the procedure to reach db2 command prompt from a cygwin window (hence without using Start-> Run -> db2cmd method). I'm planning to write shell scripts which...
3
jlm699
by: jlm699 | last post by:
Hi all, I'm using pysvn in an application to sync-up with a repository, however some of the files in the repository are a little large, and it takes a while to checkout from the repository. Solely...
0
by: dot | last post by:
I spent a few headache filled days trying to use GMP on windows (XP pro) I finally got it to work and since I found little help on the Web I thought someone might find what i did useful. ...
3
by: chapagainanish | last post by:
Hi!! I'm having installation problem for installing numpy and scipy in Cygwin for Python, and am obstruct in madway for project, i followed scipy.org guidelines but there's few error thrown as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.