lottanzb team mailing list archive
-
lottanzb team
-
Mailing list archive
-
Message #00149
[Bug 490985] Re: bin/lottanzb.py not removed when distutilsextra fails in build_i18n.run
I meant distutilsextra (the one we ship with LottaNZB) instead of
distutils that ships with Python.
** Summary changed:
- bin/lottanzb.py not removed when distutils fails in build_i18n.run
+ bin/lottanzb.py not removed when distutilsextra fails in build_i18n.run
** Description changed:
This causes the problem described below when the user installs LottaNZB
after that.
- This temporary file would be removed again by distutils/auto.py using
+ This temporary file would be removed again by distutilsextra/auto.py using
for f in exe_symlinks:
- os.unlink(f)
+ os.unlink(f)
It's probably possible to add a work-around to setup.py, but it would probably be a better idea to fix this upstream.
-
------------------
Hi, I'm pretty new to linux so if you can, please explain as simple as possible :)
I'm using Opensuse 11.2 x64.
Installed all dependencies, built it, and then when I run it I get this
output:
[code]
lottanzb
Traceback (most recent call last):
- File "/usr/local/bin/lottanzb", line 3, in <module>
- from lottanzb.core import App
- File "/usr/local/bin/lottanzb.py", line 3, in <module>
- from lottanzb.core import App
+ File "/usr/local/bin/lottanzb", line 3, in <module>
+ from lottanzb.core import App
+ File "/usr/local/bin/lottanzb.py", line 3, in <module>
+ from lottanzb.core import App
ImportError: No module named core
[/code]
Any idea what I'm doing wrong here?
Thanks in advance!.
** Summary changed:
- bin/lottanzb.py not removed when distutilsextra fails in build_i18n.run
+ Temporary bin/lottanzb.py file not removed when distutilsextra fails in build_i18n.run
** Also affects: python-distutils-extra
Importance: Undecided
Status: New
--
Temporary bin/lottanzb.py file not removed when distutilsextra fails in build_i18n.run
https://bugs.launchpad.net/bugs/490985
You received this bug notification because you are a member of LottaNZB
Development Team, which is a bug assignee.
Status in LottaNZB • Automated Usenet Client: Triaged
Status in Enhancements to Python's distutils: New
Bug description:
In auto.py, distutilsextra finds extensionless executable scripts which are Python files, and generates a temporary *.py alias, so that they get caught by intltool.
However, if the call to "build_i18n.build_i18n.run(self)" a few lines below fails for some reason, the temporary files will not be removed.
If the user then fixes the problem that caused build_i18n to fail and makes another attempt to install the application, the temporary files will also be installed.
It's probably possible to add a work-around to setup.py, but it would be a better idea to fix this upstream, with a nice "finally" block or something similar.
------------------
Hi, I'm pretty new to linux so if you can, please explain as simple as possible :)
I'm using Opensuse 11.2 x64.
Installed all dependencies, built it, and then when I run it I get this output:
[code]
lottanzb
Traceback (most recent call last):
File "/usr/local/bin/lottanzb", line 3, in <module>
from lottanzb.core import App
File "/usr/local/bin/lottanzb.py", line 3, in <module>
from lottanzb.core import App
ImportError: No module named core
[/code]
Any idea what I'm doing wrong here?
Thanks in advance!.
References