Re: cvs2svn: coredump

Michael Haggerty <[email protected]> Tue, 10 Jul 2012 17:18:17 +0200
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
On 07/10/2012 01:25 PM, [email protected] wrote:
> you are right! Running python ... import anydbm ...
> ===> produces the same core dump as cvs2svn

This probably means that your Python installation and/or database 
library is broken or incomplete.  See below.

> Unfortunately I can't run the run-tests as you indicated
> (svbowil.flur.zuerich.ch:cvs) $ pwd
> /usr/local/lib/python2.6/site-packages/cvs2svn_rcsparse
> (svbowil.flur.zuerich.ch:xroot#) ./run-tests.py
> ksh: ./run-tests.py: cannot execute
> (svbowil.flur.zuerich.ch:xroot#) ls -alF
> total 144
> drwxr-xr-x   2 bin      bin          512 Jul  9 12:58 ./
> drwxr-xr-x   4 bin      bin          512 Jul  9 12:45 ../
> -rw-r--r--   1 bin      bin          704 Jul 17  2011 __init__.py
> -rw-r--r--   1 root     dba          668 Jul  9 12:58 __init__.pyc
> -rw-r--r--   1 bin      bin         8220 Jul 17  2011 common.py
> -rw-r--r--   1 root     dba        10417 Jul  9 12:58 common.pyc
> -rw-r--r--   1 bin      bin         3273 Jul 17  2011 debug.py
> -rw-r--r--   1 bin      bin         5963 Jul 17  2011 debug.pyc
> -rw-r--r--   1 bin      bin         4608 Jul 17  2011 default.py
> -rw-r--r--   1 root     dba         3508 Jul  9 12:58 default.pyc
> -rw-r--r--   1 bin      bin         2246 Jul 17  2011 parse_rcs_file.py
> -rw-r--r--   1 bin      bin         2559 Jul 17  2011 parse_rcs_file.pyc
> -rw-r--r--   1 bin      bin         2216 Jul 17  2011 run-tests.py
> -rw-r--r--   1 bin      bin         1483 Jul 17  2011 run-tests.pyc
> -rw-r--r--   1 bin      bin        10488 Jul 17  2011 texttools.py
> -rw-r--r--   1 root     dba         6775 Jul  9 12:58 texttools.pyc
>
> running "perl run-tests.py" does just return the prompt without any output
> ===> would be happy to run these tests

This is not the run-tests.py script that I meant.  There is another 
script with the same name at the top level of the cvs2svn source 
distribution.  It may be that the script wasn't installed on your 
system; if so, simply unpack a tarball of cvs2svn or check cvs2svn out 
of its Subversion repository and run it from the resulting directory.

But most of the tests will fail if your database module is not installed 
correctly.

> running cvs2svn with the --use-cvs option works for a small amount of data
> I have to do further testing
>
> running cvs2svn with the --use-rcs option seems not to be installed
> (svbowil.flur.zuerich.ch:cvs) $ cvs2svn --use-rcs ...
> ERROR: error executing co: [Errno 2] No such file or directory
> Please check that co is installed and in your PATH
> (it is a part of the RCS software).

The --use-rcs option only works if RCS is installed your system.  The 
"co" command is part of RCS.

> Can you please explain me the secrets of the database modules.
> Which SW brings them in the system?
> How can they be configured and tested?

This is quite system-dependent.  The database modules are usually 
distributed as part of Python, but they require external libraries as 
well.  You might be able to find some helpful information relevant to 
your OS in the mailing list archives.

The code that helps Python's anydbm module choose which of the available 
databases to use is at the top of cvs2svn_lib/database.py.  Bottom line: 
install bsddb3 or bsddb or gdbm correctly and things should work.  If 
you want to choose a default dbm different than anydbm's default, then 
modify the code in cvs2svn_lib/database.py.

Or use the --use-cvs option, in which case no dbm module is needed.

Michael

-- 
Michael Haggerty
[email protected]
http://softwareswirl.blogspot.com/

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

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