SVN access with pysvn under Cygwin (Installation problems)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy Dingley

    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.
  • Jason Tishler

    #2
    Re: SVN access with pysvn under Cygwin (Installation problems)

    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

    Comment

    • Andy Dingley

      #3
      Re: SVN access with pysvn under Cygwin (Installation problems)

      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?

      Comment

      • Jason Tishler

        #4
        Re: SVN access with pysvn under Cygwin (Installation problems)

        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

        Comment

        Working...