RE: cvs2svn: coredump
[email protected] Wed, 11 Jul 2012 14:45:49 +0200
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <81D46E56C508E94894228606E79614105F791A5678@S01B10HP.exchange.ubs.ch> |
I did unpack a tarball of cvs2svn. Running ./run-tests.py still gives an error.
Sorry I do not understand which file/direcory is missing. Any idea?
(svbowil.flur.zuerich.ch:t131117) $ ./run-tests.py -v
CMD: svnadmin create svn-test-work/local_tmp/repos --bdb-txn-nosync
Traceback (most recent call last):
File "./run-tests.py", line 3907, in <module>
run_tests(test_list)
File "/export/home/t131117/cvs2svn-2.3.0/svntest/main.py", line 1554, in run_tests
svntest.actions.setup_pristine_repository()
File "/export/home/t131117/cvs2svn-2.3.0/svntest/actions.py", line 53, in setup_pristine_repository
main.create_repos(main.pristine_dir)
File "/export/home/t131117/cvs2svn-2.3.0/svntest/main.py", line 725, in create_repos
path, *opts)
File "/export/home/t131117/cvs2svn-2.3.0/svntest/main.py", line 366, in run_command
None, *varargs)
File "/export/home/t131117/cvs2svn-2.3.0/svntest/main.py", line 517, in run_command_stdin
*varargs)
File "/export/home/t131117/cvs2svn-2.3.0/svntest/main.py", line 487, in spawn_process
infile, outfile, errfile, kid = open_pipe([command] + list(varargs))
File "/export/home/t131117/cvs2svn-2.3.0/svntest/main.py", line 428, in open_pipe
close_fds=not windows)
File "/usr/local/lib/python2.6/subprocess.py", line 595, in __init__
errread, errwrite)
File "/usr/local/lib/python2.6/subprocess.py", line 1092, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
With kind regards,
Brigitte
-----Original Message-----
From: Michael Haggerty [mailto:[email protected]]
Sent: Dienstag, 10. Juli 2012 17:18
To: Widmer, Brigitte
Cc: [email protected]
Subject: Re: cvs2svn: coredump
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/
UBS reserves the right to retain all messages. Messages are protected and accessed only in legally justified cases.
Deutsch/Francais/Italiano: http://www.ubs.com/1/e/index/legalinfo2/privacy.html.
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2983494
To unsubscribe from this discussion, e-mail: [[email protected]].