RE: dumpfile_delegate.py:23: DeprecationWarning: the md5 module is deprec

Richard Murray <[email protected]> Tue, 27 Jul 2010 09:02:49 +0100
Newsgroups gmane.comp.version-control.subversion.cvs2svn.devel
Message-ID <CE2C5C70AF459D40B73B00072DC2F74602953FD9@mallard.orchard-systems.co.uk>
Hi, 

I managed to get it working after installing openssl-1.0.0a. On the binary
distribution of Python 2.6 on sunfreeware there are several dependancies
listed such as:

libiconv-1.13.1,
libintl-3.4.0,
libgcc-3.4.6 or
gcc-3.4.6 or similar.

There is also a list of other possible dependancies that some other programs
might use including gdbm-1.8.3 and openssl-1.0.0a.  These appeared to be
optional so I hadn't initially installed openssl.

Yes, I was the person who updated the Mercurial mail list.  I had also put
the solution on the cvs2svn user mail list.  I'd forgotten I'd also raised it
on the dev list - so apologies if you've wasted any time looking into this.

Thanks for your help,
Richard.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Greg Ward
Sent: 27 July 2010 02:29
To: Richard Murray
Cc: [email protected]
Subject: Re: dumpfile_delegate.py:23: DeprecationWarning: the md5 module is
deprec

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=263282
2
> 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=2638568

To unsubscribe from this discussion, e-mail: [[email protected]].