Mantis - pysvn
Viewing Issue Advanced Details
4902 upgrade major always 2012-02-21 20:09 2014-03-24 00:49
joeymukherjee  
dam  
normal  
assigned  
open  
none    
none  
0004902: pysvn and/or pythonsvn not functional
In the Solaris 9 build, the pysvn and pythonsvn do not have core.py with them. This makes the SVN python libs useless. The command I am trying to get working is:

>>> from svn import core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/csw/lib/python/site-packages/svn/core.py", line 19, in <module>
  File "/opt/csw/lib/python/site-packages/libsvn/core.py", line 7, in <module>
ImportError: No module named _core
Issue History
2012-02-21 20:09 joeymukherjee New Issue
2012-02-21 20:23 joeymukherjee Note Added: 0009625
2012-02-21 21:16 dam Note Added: 0009626
2012-02-21 21:29 joeymukherjee Note Added: 0009627
2012-02-21 21:36 dam Note Added: 0009628
2012-02-21 21:39 joeymukherjee Note Added: 0009629
2012-02-22 16:35 dam Note Added: 0009635
2012-02-22 16:35 dam Status new => feedback
2012-02-22 16:36 dam Status feedback => assigned
2012-02-22 16:36 dam Assigned To => dam
2012-02-22 16:49 joeymukherjee Note Added: 0009636
2012-02-22 21:50 dam Note Added: 0009637
2012-02-22 22:19 joeymukherjee Note Added: 0009638
2012-02-22 22:52 dam Note Added: 0009639
2012-02-23 02:11 maciej Note Added: 0009640
2012-02-23 09:07 dam Note Added: 0009643
2012-02-26 20:12 maciej Note Added: 0009665
2012-03-04 18:17 maciej Note Added: 0009703
2012-03-04 21:55 dam Note Added: 0009704
2012-03-04 21:56 maciej Note Added: 0009705
2012-03-04 22:02 dam Note Added: 0009706
2012-03-04 22:24 maciej Note Added: 0009707
2014-03-24 00:49 maciej Note Added: 0010776

Notes
(0009625)
joeymukherjee   
2012-02-21 20:23   
Potentially, the file I really need is _core.so which (according to the search) is in pythonsvn. However, for the Solaris 9 version, it is not in there.
(0009626)
dam   
2012-02-21 21:16   
I think the subversion package has been reorganized where the Python bindings have been split out to "pythonsvn" on which "pysvn" should depend on instead of "subversion". Could you try installing that and see if it works? Then the dependency of pysvn can be adjusted and rereleased.

Best regards -- Dago
(0009627)
joeymukherjee   
2012-02-21 21:29   
Hello Dago! I do have pysvn installed, and it only has the _pysvn_2_6.so file with a __init__.py. It is still missing the other .so files.
(0009628)
dam   
2012-02-21 21:36   
I meant that you add "pythonsvn" (CSWpythonsvn ) which is a different package. It is part of subversion.
(0009629)
joeymukherjee   
2012-02-21 21:39   
For Solaris 9, the CSWpythonsvn has nothing but a stub. I have them all installed.
(0009635)
dam   
2012-02-22 16:35   
The Solaris 9 package seems to be broken. Please try one of these:
  http://mirror.opencsw.org/opencsw/allpkgs/pythonsvn-1.7.2%2cREV%3d2011.12.29-SunOS5.9-i386-CSW.pkg.gz [^]
  http://mirror.opencsw.org/opencsw/allpkgs/pythonsvn-1.7.2%2cREV%3d2011.12.29-SunOS5.9-sparc-CSW.pkg.gz [^]
If this works I can push them to unstable.
(0009636)
joeymukherjee   
2012-02-22 16:49   
I could only try the sparc one, and it didn't work! :( I noticed it only contained the swig library, and not the _core.so I see on my Linux systems.
(0009637)
dam   
2012-02-22 21:50   
When I take a look at the other versions of the package I see lots of probably broken packages of pythonsvn in allpkgs at
  http://mirror.opencsw.org/opencsw/allpkgs/ [^]

-rw-rw-r-- 1 web web 685526 May 28 2010 pythonsvn-1.6.11,REV=2010.05.26-SunOS5.9-sparc-CSW.pkg.gz
-rw-rw-r-- 1 web web 589066 May 28 2010 pythonsvn-1.6.11,REV=2010.05.27-SunOS5.9-i386-CSW.pkg.gz
-rw-rw-r-- 1 web web 586471 Sep 27 2010 pythonsvn-1.6.12,REV=2010.09.23-SunOS5.9-i386-CSW.pkg.gz
-rw-rw-r-- 1 web web 682222 Sep 27 2010 pythonsvn-1.6.12,REV=2010.09.23-SunOS5.9-sparc-CSW.pkg.gz
-rw-rw-r-- 1 web web 683703 Oct 31 2010 pythonsvn-1.6.13,REV=2010.10.23-SunOS5.9-sparc-CSW.pkg.gz
-rw-rw-r-- 1 web web 585318 Oct 31 2010 pythonsvn-1.6.13,REV=2010.10.27-SunOS5.9-i386-CSW.pkg.gz
-rw-rw-r-- 1 web web 588371 Jan 19 2011 pythonsvn-1.6.15,REV=2011.01.16-SunOS5.9-i386-CSW.pkg.gz
-rw-rw-r-- 1 web web 683367 Jan 19 2011 pythonsvn-1.6.15,REV=2011.01.16-SunOS5.9-sparc-CSW.pkg.gz
-rw-rw-r-- 1 web web 580445 Dec 14 2009 pythonsvn-1.6.6,REV=2009.11.14-SunOS5.8-i386-CSW.pkg.gz
-rw-rw-r-- 1 web web 677652 Dec 14 2009 pythonsvn-1.6.6,REV=2009.11.14-SunOS5.8-sparc-CSW.pkg.gz
-rw-rw-r-- 3 web web 582735 Apr 19 2010 pythonsvn-1.6.9,REV=2010.03.07-SunOS5.8-i386-CSW.pkg.gz
-rw-rw-r-- 3 web web 680066 Apr 19 2010 pythonsvn-1.6.9,REV=2010.03.07-SunOS5.8-sparc-CSW.pkg.gz
-rw-r--r-- 1 web web 846 Oct 15 17:11 pythonsvn-1.7.0,REV=2011.10.15-SunOS5.9-i386-CSW.pkg.gz
-rw-r--r-- 1 web web 848 Oct 15 17:12 pythonsvn-1.7.0,REV=2011.10.15-SunOS5.9-sparc-CSW.pkg.gz
-rw-r--r-- 1 web web 831 Sep 11 14:52 pythonsvn-1.7.0_rc2,REV=2011.09.11-SunOS5.9-i386-CSW.pkg.gz
-rw-r--r-- 1 web web 834 Sep 11 14:53 pythonsvn-1.7.0_rc2,REV=2011.09.11-SunOS5.9-sparc-CSW.pkg.gz
-rw-r--r-- 1 web web 831 Sep 19 06:14 pythonsvn-1.7.0_rc3,REV=2011.09.19-SunOS5.9-i386-CSW.pkg.gz
-rw-r--r-- 1 web web 836 Sep 19 06:15 pythonsvn-1.7.0_rc3,REV=2011.09.19-SunOS5.9-sparc-CSW.pkg.gz
-rw-r--r-- 1 web web 855 Oct 9 12:47 pythonsvn-1.7.0_rc4,REV=2011.10.09-SunOS5.9-i386-CSW.pkg.gz
-rw-r--r-- 1 web web 858 Oct 9 12:47 pythonsvn-1.7.0_rc4,REV=2011.10.09-SunOS5.9-sparc-CSW.pkg.gz
-rw-r--r-- 3 web web 845 Oct 23 17:58 pythonsvn-1.7.1,REV=2011.10.23-SunOS5.9-i386-CSW.pkg.gz
-rw-r--r-- 3 web web 850 Oct 23 17:58 pythonsvn-1.7.1,REV=2011.10.23-SunOS5.9-sparc-CSW.pkg.gz
-rw-r--r-- 1 web web 27837 Dec 17 18:00 pythonsvn-1.7.2,REV=2011.12.04-SunOS5.9-i386-CSW.pkg.gz
-rw-r--r-- 1 web web 37155 Dec 17 18:00 pythonsvn-1.7.2,REV=2011.12.04-SunOS5.9-sparc-CSW.pkg.gz
-rw-r--r-- 1 web web 27852 Dec 18 12:43 pythonsvn-1.7.2,REV=2011.12.18-SunOS5.9-i386-CSW.pkg.gz
-rw-r--r-- 1 web web 37159 Dec 18 12:44 pythonsvn-1.7.2,REV=2011.12.18-SunOS5.9-sparc-CSW.pkg.gz
-rw-r--r-- 1 web web 32922 Dec 29 09:50 pythonsvn-1.7.2,REV=2011.12.28-SunOS5.9-i386-CSW.pkg.gz
-rw-r--r-- 1 web web 41945 Dec 29 09:50 pythonsvn-1.7.2,REV=2011.12.28-SunOS5.9-sparc-CSW.pkg.gz
-rw-r--r-- 1 web web 32914 Dec 29 23:15 pythonsvn-1.7.2,REV=2011.12.29-SunOS5.9-i386-CSW.pkg.gz
-rw-r--r-- 1 web web 41947 Dec 29 23:15 pythonsvn-1.7.2,REV=2011.12.29-SunOS5.9-sparc-CSW.pkg.gz
-rw-r--r-- 1 web web 33003 Dec 31 11:33 pythonsvn-1.7.2,REV=2011.12.31-SunOS5.10-i386-CSW.pkg.gz
-rw-r--r-- 1 web web 42264 Dec 31 11:34 pythonsvn-1.7.2,REV=2011.12.31-SunOS5.10-sparc-CSW.pkg.gz
-rw-r--r-- 3 web web 838874 Jan 2 21:43 pythonsvn-1.7.2,REV=2012.01.02-SunOS5.10-i386-CSW.pkg.gz
-rw-r--r-- 3 web web 949043 Jan 2 21:43 pythonsvn-1.7.2,REV=2012.01.02-SunOS5.10-sparc-CSW.pkg.gz

The last functioning one for Solaris 9 seems to be
  pythonsvn-1.6.15,REV=2011.01.16-SunOS5.9-sparc-CSW.pkg.gz

Could you also try this one?
(0009638)
joeymukherjee   
2012-02-22 22:19   
Hey that worked! I still can't get trac to work, but it's a different error now. Thanks for this!
(0009639)
dam   
2012-02-22 22:52   
Do you really need Solaris 9? Solaris 10 has a much better coverage at the moment, especially because of the new glib2 only begin available on Solaris 10.
(0009640)
maciej   
2012-02-23 02:11   
I'm thinking that Solaris 9 is a red herring, it doesn't matter, 9 or 11 or 10.

You'll see the problem when you look at the list of files in the package:
http://buildfarm.opencsw.org/pkgdb/srv4/f55304036900433c9aded3c2a35c0a67/ [^]

The files that are supposed to be in:

/opt/csw/lib/python/site-packages/svn

are in:

/opt/csw/lib/svn/python/site-packages/svn

...and the Python interpreter won't find them. The problem is with the way the module is packaged.

You can temporarily work around that by setting PYTHONPATH to /opt/csw/lib/svn/pythohn/site-packages, or making symlinks to /opt/csw/lib/python/site-packages.

Looking at the build recipe, there's one line that causes the problem:

https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/subversion/trunk/Makefile [^]

SVNLIB = $(prefix)/lib/svn

All paths, including Python, are relative to this one, and that's why Python files end up under /opt/csw/lib/svn instead of /opt/csw/lib.
(0009643)
dam   
2012-02-23 09:07   
The problem is more that subversion 1.7 is only available for Solaris 10 at the moment due to the glib issue. This results in a mix of partly incompatible libs for Trac on Solaris 9 which I assume is responsible for Trac not working (Trac was always a bit complicated to do right).

Regarding the path: would you mind talking to Rupert fixing the path?

Best regards -- Dago
(0009665)
maciej   
2012-02-26 20:12   
I looked at the Debian package, and the build recipe is really complex, applying a lot of customization. Not sure what to make of it, is it because of insufficient communication between Subversion developers and Debian packagers? I wouldn't like our build recipe to be as complex.

I looked at our recipe and I don't have a quick fix for it right now, although it could be as simple as changing one installation directory.

What I'm not sure about is why we change libdir to /opt/csw/lib/svn. Why make it so general?
(0009703)
maciej   
2012-03-04 18:17   
Ref: http://lists.opencsw.org/pipermail/maintainers/2012-March/016163.html [^]
(0009704)
dam   
2012-03-04 21:55   
Is it sufficient to just relocate the python files? Then we could use relocation during merge avoiding the complexity to fully dive into the build system, but just fit the install location to our needs?
(0009705)
maciej   
2012-03-04 21:56   
It could be sufficient, it's certainly worth a try.
(0009706)
dam   
2012-03-04 22:02   
Coud you please try and move the files manually for now? I'll happily add the relocations to the Makefile then.
(0009707)
maciej   
2012-03-04 22:24   
Just checked that to work around it, it's enough to make two symlinks:

sudo ln -s ../../svn/python/site-packages/svn /opt/csw/lib/python/site-packages/svn
sudo ln -s ../../svn/python/site-packages/libsvn /opt/csw/lib/python/site-packages/libsvn

This is after package installation. I suppose that something similar could be made in the package, until we find a better solution.
(0010776)
maciej   
2014-03-24 00:49   
There is no point in waiting for this bug to be fixed. If you want it fixed, you (yes, you the reader) need to fix it yourself. If you're not already a package maintainer at OpenCSW, you can look at the 35 minute long tutorial[1] to get started - then you can offer your patch to package maintainers. You can find OpenCSW people on the users mailing list[2] and on the #opencsw channel on IRC on Freenode[3].

[1] Packaging tutorial http://youtu.be/JWKCbPJSaxw [^]
[2] OpenCSW users mailing list https://lists.opencsw.org/mailman/listinfo/users [^]
[3] #opencsw on Freenode http://www.opencsw.org/support/irc-channel/ [^]