RE: Python 2.4 ERROR: cvs2svn uses the anydbm package Python 2.6 ImportError: No module named _md5

Richard Murray <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <CE2C5C70AF459D40B73B00072DC2F746028DEA05@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

The cvs2svn installation requirements state that a database library such as
gdbm is required, so I had installed this but not the openssl library.  The
error message certainly didn't give me any clues.

Seems to be working now.  Would it be possible to update the cvs2svn
requirements to state that openssl is required?  Perhaps that's not stricly
true but it seems to have given me whatever missing libraries I needed.

Thanks for your help, 

Richard.

________________________________

Richard Murray
Java Developer & Integration Specialist
Orchard Information Systems Limited
-----Original Message-----
From: Michael Haggerty [mailto:[email protected]] 
Sent: 19 July 2010 12:10
To: Richard Murray
Cc: [email protected]
Subject: Re: Python 2.4 ERROR: cvs2svn uses the anydbm package Python 2.6
ImportError: No module named _md5

Richard Murray wrote:
> I can't get cvs2svn working due to Python errors.  I'm running on
> Solaris 10, with version 2.3.0 of cvs2svn.  I've installed Python,
> anydbm and all other required libraries using packaged binaries.
> 
> When I run with Python 2.4.4 I get an error about the anydbm package
> (I've installed gdbm but still get the error). 
> 
> I have seen other posts reporting similar errors with responses that the
> Python environment isn't setup correctly, but I haven't seen any
> information on how to correct the issue in Python.  I don't know Python
> at all so any advice or suggestions would be appreciated.

The "gdbm" and "md5" libraries that cvs2svn needs are the *Python
modules*, not just the libraries and/or executables.  You probably need
to install something like "python-gdbm" or "python-md5" (though I don't
know the naming scheme used by sunfreeware).

The warning that the md5 library is deprecated should only appear if
there was an error importing the non-deprecated "hashlib".  So it would
be preferable for you to install Python's hashlib.  When this is set up
correctly, you should be able to type

    python -c 'from hashlib import md5'

and not see any error messages.

When you figure this out, it would be great if you would send an email
to the list explaining the procedure so that your successors can benefit
from your work.

Michael

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2635195

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.