Re: dumpfile_delegate.py:23: DeprecationWarning: the md5 module is deprec
Greg Ward <[email protected]> Mon, 26 Jul 2010 21:28:56 -0400
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jul 19, 2010 at 4:47 AM, Richard Murray <[email protected]> wrote: > I can’t get cvs2svn (version 2.3.0) working due to Python errors. I’m > running on Solaris 10, with version 2.3.0 of cvs2svn. I’ve installed Python > 2.6 , gdbm-1.8.3, md5 and all other required libraries using packaged > binaries from sunfreeware. > > Does cvs2svn work on Python 2.6? It seems to be using a deprecated > libarary. Is there any work-around for this? NOTE: (I’ve also raised this > on the users mail list here > http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2632822 > but haven’t had any response. Since the post on the users mailing list I’ve > uninstalled Python 2.4.4 and re-installed Python 2.6. The deprecation warning is *just a warning*. You can ignore it, but the cvs2svn developers can't. (Not forever, at least. ;-) > $ cvs2svn -s /uwm/svn/repositories /home/orchard/uwm-cvs-copy/cvsroot/gui [...] > Traceback (most recent call last): > File "/usr/local/bin/cvs2svn", line 66, in <module> > from cvs2svn_lib.main import svn_main > File "/usr/local/lib/python2.6/site-packages/cvs2svn_lib/main.py", line > 30, in <module> > from cvs2svn_lib.svn_run_options import SVNRunOptions > File > "/usr/local/lib/python2.6/site-packages/cvs2svn_lib/svn_run_options.py", > line 40, in <module> > from cvs2svn_lib.svn_output_option import DumpfileOutputOption > File > "/usr/local/lib/python2.6/site-packages/cvs2svn_lib/svn_output_option.py", > line 49, in <module> > from cvs2svn_lib.dumpfile_delegate import DumpfileDelegate > File > "/usr/local/lib/python2.6/site-packages/cvs2svn_lib/dumpfile_delegate.py", > line 23, in <module> > from md5 import new as md5 > File "/usr/local/lib/python2.6/md5.py", line 10, in <module> > from hashlib import md5 > File "/usr/local/lib/python2.6/hashlib.py", line 136, in <module> > md5 = __get_builtin_constructor('md5') > File "/usr/local/lib/python2.6/hashlib.py", line 63, in > __get_builtin_constructor > import _md5 > ImportError: No module named _md5 That's the real problem. The Python build from sunfreeware.com is broken. Someone posted a similar problem on the mercurial users mailing list a week or two ago, and it turned out that installing OpenSSL fixed it. (If I remember correctly.) You really should complain to whoever builds Python for sunfreeware! They need to get their dependencies right. Greg ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=2638412 To unsubscribe from this discussion, e-mail: [[email protected]].