← Back to team overview

lottanzb team mailing list archive

[Bug 490985] Re: Temporary bin/lottanzb.py file not removed when distutilsextra fails in build_i18n.run

 

** Description changed:

- This causes the problem described below when the user installs LottaNZB
- after that.
+ 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.
  
- This temporary file would be removed again by distutilsextra/auto.py using
- for f in exe_symlinks:
-             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.
+ 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 fails 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!.

** Changed in: lottanzb
     Assignee: LottaNZB Development Team (lottanzb) => (unassigned)

** Description changed:

  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 fails 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!.

** Description changed:

  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 fails and
+ 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!.

-- 
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 subscribed to LottaNZB.

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