Roundup Tracker - Issues

Issue 1829020

classification
Installing roundup with easy_install
Type: Severity: normal
Components: Installation Versions: 1.4, 1.3
process
Status: closed fixed
:
: : ber, jerrykan, radioking, richard, satchit, schlatterbeck, techtonik, tobias-herp
Priority: low : patch

Created on 2007-11-09 15:04 by satchit, last changed 2011-07-08 15:29 by ber.

Files
File name Uploaded Description Edit Remove
fix-issue1829020-work-with-easy_install.patch satchit, 2010-11-12 22:10 Patch to fix issue with installing roundup as an egg
Messages
msg2491 Author: [hidden] (satchit) Date: 2007-11-09 15:04
Trying to installing Roundup with easy_install results in an error. The error occurs in the step that tries to install .mo files. The following are the relevant lines in the installation log output:

creating build/bdist.linux-i686/egg/share/locale
creating build/bdist.linux-i686/egg/share/locale/de
creating build/bdist.linux-i686/egg/share/locale/de/LC_MESSAGES
error: Setup script exited with error: can't copy
'build/share/locale/de/LC_MESSAGES/roundup.mo': doesn't exist or not a regular file

My setup is as follows:

OS:
Linux ubuntu 2.6.17-11-generic #2 SMP Thu Feb 1 19:52:28 UTC 2007 i686 GNU/Linux

Python:
Python 2.4.4 (#1, Jan 25 2007, 17:49:28) 
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2

The error occurs with both Roundup version 1.4 as well as 1.3
msg2492 Author: [hidden] (richard) Date: 2008-02-07 01:06
This will only be "fixed" if a patch is submitted.
msg2493 Author: [hidden] (tobias-herp) Date: 2008-02-17 14:18
It might help to update Python to 2.5[.1]. I had problems with .po files in the (selfmade) locale directory of my tracker running a 64-bit SuSE linux and Python 2.4 until I updated Python; when a .po file was present, the tracker yielded an error on web access.
msg2494 Author: [hidden] (anonymous) Date: 2008-03-27 13:51
Logged In: NO 

Just to provide a more detailed and easily repeatable form of the error message for the record:

$ /opt/python25/python/bin/python /software/virtualenv/virtualenv.py --no-site-packages /path/to/roundup-sandbox
New python executable in ./bin/python
Installing setuptools............done.

/path/to/roundup-sandbox $ source bin/activate

(roundup-sandbox) $ easy_install roundup
Searching for roundup
Reading http://pypi.python.org/simple/roundup/
Reading http://roundup.sourceforge.net/
Reading http://sourceforge.net/project/showfiles.php?group_id=31577
Reading http://sourceforge.net/projects/roundup/
Best match: roundup 1.4.4
Downloading http://pypi.python.org/packages/source/r/roundup/roundup-1.4.4.tar.gz#md5=6a9f6fc272d833ef0179b00e63010a08
Processing roundup-1.4.4.tar.gz
Running roundup-1.4.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Q8Q2JV/roundup-1.4.4/egg-dist-tmp-cckDgq
warning: no previously-included files matching '.cvsignore' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files found matching 'BUILD.txt'
warning: no previously-included files found matching 'I18N_PROGRESS.txt'
warning: no previously-included files found matching 'TODO.txt'
warning: no previously-included files found matching 'doc/security.txt'
warning: no previously-included files found matching 'doc/templating.txt'
warning: no files found matching 'locale/*.mo'
error: Setup script exited with error: can't copy 'build/share/locale/hu/LC_MESSAGES/roundup.mo': doesn't exist or not a regular file
msg3938 Author: [hidden] (radioking) Date: 2009-12-21 16:43
Same Problem here:

I am running roundup 1.3.3 (python 2.5.2) on Linux lamp
2.6.24-26-generic and want to update to the most recent version. SQLite
is used as database here.

I read that I have to perform (all) multiple incremental updates from
1.3.3 up to 1.4.11.


easy_install should work with

##############################################
chris@server:/usr/lib/python2.5/site-packages/roundup# easy_install
"roundup==1.4.0"
Searching for roundup==1.4.0
Reading http://pypi.python.org/simple/roundup/
Reading http://sourceforge.net/projects/roundup/
Reading http://sourceforge.net/project/showfiles.php?group_id=31577
Reading http://roundup.sourceforge.net/
Reading http://www.roundup-tracker.org
Best match: roundup 1.4.0
Downloading
http://pypi.python.org/packages/source/r/roundup/roundup-1.4.0.tar.gz#md5=d0fdfd0a64a0f76d5274ae05b9cedaeb
Processing roundup-1.4.0.tar.gz
Running roundup-1.4.0/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-x745PD/roundup-1.4.0/egg-dist-tmp-_xFZgs
warning: no previously-included files matching '.cvsignore' found anywhere
in distribution
warning: no previously-included files matching '*.pyo' found anywhere in
distribution
warning: no previously-included files matching '.DS_Store' found anywhere
in distribution
warning: no previously-included files found matching 'BUILD.txt'
warning: no previously-included files found matching 'I18N_PROGRESS.txt'
warning: no previously-included files found matching 'TODO.txt'
warning: no previously-included files found matching 'doc/security.txt'
warning: no previously-included files found matching 'doc/templating.txt'
warning: no files found matching 'locale/*.mo'
error: Setup script exited with error: can't copy
'build/share/locale/en/LC_MESSAGES/roundup.mo': doesn't exist or not a
regular file
##############################################


What am I missing?
msg3939 Author: [hidden] (radioking) Date: 2009-12-21 18:27
Other machine, same problem:

##############################################
chris@server2:~$ sudo easy_install "roundup==1.4.0"
Searching for roundup==1.4.0
Reading http://pypi.python.org/simple/roundup/
Reading http://sourceforge.net/projects/roundup/
Reading http://sourceforge.net/project/showfiles.php?group_id=31577
Reading http://roundup.sourceforge.net/
Reading http://www.roundup-tracker.org
Best match: roundup 1.4.0
Downloading
http://pypi.python.org/packages/source/r/roundup/roundup-1.4.0.tar.gz#md5=d0fdfd0a64a0f76d5274ae05b9cedaeb
Processing roundup-1.4.0.tar.gz
Running roundup-1.4.0/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-6n0Itw/roundup-1.4.0/egg-dist-tmp-6iL5tZ
warning: no previously-included files matching '.cvsignore' found
anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in
distribution
warning: no previously-included files matching '.DS_Store' found
anywhere in distribution
warning: no previously-included files found matching 'BUILD.txt'
warning: no previously-included files found matching 'I18N_PROGRESS.txt'
warning: no previously-included files found matching 'TODO.txt'
warning: no previously-included files found matching 'doc/security.txt'
warning: no previously-included files found matching 'doc/templating.txt'
warning: no files found matching 'locale/*.mo'
error: Setup script exited with error: can't copy
'build/share/locale/en/LC_MESSAGES/roundup.mo': doesn't exist or not a
regular file
##############################################
msg3940 Author: [hidden] (radioking) Date: 2009-12-21 18:29
Trying to install most recent version gives additional errors:

##############################################
chris@server2:~$ sudo easy_install roundup
Searching for roundup
Reading http://pypi.python.org/simple/roundup/
Reading http://sourceforge.net/projects/roundup/
Reading http://sourceforge.net/project/showfiles.php?group_id=31577
Reading http://roundup.sourceforge.net/
Reading http://www.roundup-tracker.org
Best match: roundup 1.4.11
Downloading
http://pypi.python.org/packages/source/r/roundup/roundup-1.4.11.tar.gz#md5=4f04c27d2990d1b15e7b782eacbb36bf
Processing roundup-1.4.11.tar.gz
Running roundup-1.4.11/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-6Vp7tG/roundup-1.4.11/egg-dist-tmp-LlXXYf
warning: no files found matching '*.1' under directory 'doc'
warning: no files found matching '*.py' under directory 'detectors'
warning: no files found matching '*.*' under directory 'templates'
warning: no files found matching 'home*' under directory 'templates'
warning: no files found matching 'page*' under directory 'templates'
warning: no previously-included files matching '.svn' found anywhere in
distribution
warning: no previously-included files matching '.cvsignore' found
anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in
distribution
warning: no previously-included files matching '.DS_Store' found
anywhere in distribution
warning: no previously-included files found matching 'BUILD.txt'
warning: no previously-included files found matching 'I18N_PROGRESS.txt'
warning: no previously-included files found matching 'TODO.txt'
warning: no previously-included files found matching 'doc/security.txt'
warning: no previously-included files found matching 'doc/templating.txt'
warning: no files found matching 'locale/*.mo'
error: Setup script exited with error: can't copy
'build/share/locale/en/LC_MESSAGES/roundup.mo': doesn't exist or not a
regular file
##############################################
msg4205 Author: [hidden] (satchit) Date: 2010-11-12 22:10
I've attached a patch that should fix this issue and allow roundup as an
egg using easy_install, zc.buildout, etc.

1. The patch creates a subclass of
"distutils.command.install_lib.install_lib" command class and overrides
the default one through setup.py

2. Modification of "roundup.dist.command.build" wasn't necessary, but
was done to comply with DRY. I can submit a new patch to avoid this if
required.
msg4285 Author: [hidden] (techtonik) Date: 2011-04-15 05:29
Why *.po files should be regenerated during install step and not during 
build?
msg4286 Author: [hidden] (techtonik) Date: 2011-04-15 05:29
s/.po /.mo /
msg4327 Author: [hidden] (jerrykan) Date: 2011-07-08 03:15
I have tested this patch against rev4627 and confirm that it fixes the
described error.

There exists some other various warnings about asserts that might be
worth looking at/fixing at some stage, but that isn't really relevant to
this patch.
msg4329 Author: [hidden] (ber) Date: 2011-07-08 15:29
Johan,
thanks for testing the patch, it is committed now as
rev4628.

Satchit: Thanks for developing the patch in the first place!

Thanks to all others that contributed to the issue.
Bernhard
History
Date User Action Args
2011-07-08 15:29:27bersetstatus: open -> closed
assignee: richard ->
resolution: fixed
messages: + msg4329
2011-07-08 03:15:46jerrykansetnosy: + jerrykan
messages: + msg4327
2011-04-15 07:28:10bersetnosy: + schlatterbeck, ber
2011-04-15 05:29:38techtoniksetmessages: + msg4286
2011-04-15 05:29:05techtoniksetnosy: + techtonik
messages: + msg4285
2010-11-12 22:10:09satchitsetfiles: + fix-issue1829020-work-with-easy_install.patch
keywords: + patch
messages: + msg4205
2009-12-21 18:29:53radiokingsetversions: + 1.3
2009-12-21 18:29:32radiokingsetmessages: + msg3940
versions: + 1.4, - 1.3
2009-12-21 18:27:07radiokingsetmessages: + msg3939
2009-12-21 16:43:22radiokingsetnosy: + radioking
messages: + msg3938
versions: + 1.3
2007-11-09 15:04:52satchitcreate