Error during launch
I am getting the following error if I launch lottanzb. I have followed the installation step.
Traceback (most recent call last):
File "/usr/bin/
sys.exit(
File "/usr/lib/
return get_distributio
File "/usr/lib/
return ep.load()
File "/usr/lib/
entry = __import_
File "/usr/lib/
from prefs import Prefs
File "/usr/lib/
from xml.etree.
ImportError: No module named etree.ElementTree
Do you have any idea what is going wrong here.
Thanks
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- LottaNZB Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Related bugs
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
Install Information
running install
running bdist_egg
running egg_info
writing lottanzb.
writing top-level names to lottanzb.
writing dependency_links to lottanzb.
writing entry points to lottanzb.
reading manifest file 'lottanzb.
writing manifest file 'lottanzb.
installing library code to build/bdist.
running install_lib
running build_py
creating build/bdist.
creating build/bdist.
copying build/lib/
copying build/lib/
copying build/lib/
copying build/lib/
copying build/lib/
copying build/lib/
copying build/lib/
copying build/lib/
copying build/lib/
creating build/bdist.
copying build/lib/
copying build/lib/
copying build/lib/
creating build/bdist.
creating build/bdist.
creating build/bdist.
copying build/lib/
copying build/lib/
creating build/bdist.
creating build/bdist.
copying build/lib/
copying build/lib/
creating build/bdist.
creating build/bdist.
copying build/lib/
copying build/lib/
byte-compiling build/bdist.
byte-compiling build/bdist.
byte-compiling build/bdist.
byte-compiling build/bdist.
byte-compiling build/bdist.
byte-compiling build/bdist.
byte-compiling build/bdist.
File "build/
confArg = ((" -c " + paths.clientDir
SyntaxError: invalid syntax
byte-compiling build/bdist.
File "build/
self.
SyntaxError: invalid syntax
byte-compiling build/bdist.
installing package data to build/bdist.
running install_data
creating build/bdist.
copying lottanzb.
copying lottanzb.
copying lottanzb.
copying lottanzb.
copying lottanzb.
copying lottanzb.
creating 'dist/lottanzb-
removing 'build/
Processing lottanzb-
removing '/usr/lib/
creating /usr/lib/
Extracting lottanzb-
File "/usr/lib/
confArg = ((" -c " + paths.clientDir
SyntaxError: invalid syntax
File "/usr/lib/
self.
SyntaxError: invalid syntax
lottanzb 0.1 is already the active version in easy-install.pth
Installing lottanzb script to /usr/bin
Installed /usr/lib/
Processing dependencies for lottanzb==0.1
Finished processing dependencies for lottanzb==0.1
Revision history for this message
|
#2 |
Hi Majestic,
the syntax errors that occured during building LottaNZB must be a result of the fact you're using Python 2.4. Our team uses Python 2.5 to develop the application and as I'm fairly new to Python programming I don't know exactly which language constructs were newly introduced in Python 2.5. [...] I just took a lock at the python documentation and as it seems, one-line conditional expressions [1] is a new feature in Python 2.5 Wasn't aware of that. Sorry. I guess LottaNZB should support Python 2.4, so I'll make these problematic statements Python 2.4-friendly tonight. You might consider installing Python 2.5 in the meantime and give it another try.
As for the launch failure: If you're a Ubuntu user, make sure the package python-elementtree is installed on your system (type "sudo apt-get install python-
Revision history for this message
|
#3 |
According to [1] the elementtree bug seems to be a Python 2.4 related problem as well. The way we import this module in LottaNZB only applies to Python 2.5. I guess it won't be hard to make it work under Python 2.4 though.
My advise: Install Python 2.5 for the time being if you can't wait until we release a Python 2.4-friendly version of LottaNZB. If I'm not completely wrong it should even be possible to have multiple versions of Python on one machine at the same time.
Revision history for this message
|
#4 |
Good news: Just added Python 2.4 compatibilty, nevertheless I recommend you to install Python 2.5.
Revision history for this message
|
#5 |
Hi Severin,
I updated the Lotta distibution and compiled it. No error during this. But do get errors when I start to load lottanzb. Am getting the following.
raymond@
INFO Starting LottaNZB 0.2-pre using Python 2.4.4.
INFO The LottaNZB configuration could not be found. Starting configuration assistant.
INFO Created the LottaNZB directory /home/raymond/
/usr/lib/
gtk.glade.
Segmentation fault (core dumped)
Does this mean that python2.4 is not fully supported.
Regards,
Majestic
Revision history for this message
|
#6 |
Hi Majestic,
first of all, we don't recommend to use the development version of LottaNZB as it still has some major bugs we need to fix before the next release. But if it's just for testing purposes like in your case, we're always glad to get feedback. ;-)
Launching LottaNZB with Python 2.4.5 works fine on my machine. The warning "GtkWarning: gtk_radio_
As for the segmentation fault: I keep randomly running into those and I haven't figured out yet why they appear. It must be a PyGTK related problem. Have you tried launching LottaNZB a second time? Maybe the segmentation fault disappears? :-/ You could also try running LottaNZB from the source directory (python lottanzb.py). I'm afraid I can't give you an "real" answer at this point.
Revision history for this message
|
#7 |
I just fixed the radio button GtkWarning... But I guess this doesn't solve your problem. ;-)
Revision history for this message
|
#8 |
Hi Severin,
Thank you for your quick replay. I am using python 2.4.4. The image I use is ubuntu 6.10 edgy.
The system reports that I have the latest version of python available for this image. Upgrading
to 7.04 doesn't work for me as that CPU I use isn’t supported.
For your info, the error shows when I start LottaNZB in terminal from the source dir. I tried restarting
LottaNZB but this will give the same error.
Thx,
Majestic
-----Oorspronkelijk bericht-----
Van: <email address hidden> [mailto:<email address hidden>] Namens Severin Heiniger
Verzonden: Saturday, March 22, 2008 9:43 AM
Aan: <email address hidden>
Onderwerp: Re: [Question #26775]: Error during launch
Your question #26775 on LottaNZB changed:
https:/
Status: Open => Needs information
Severin Heiniger requested for more information:
Hi Majestic,
first of all, we don't recommend to use the development version of
LottaNZB as it still has some major bugs we need to fix before the next
release. But if it's just for testing purposes like in your case, we're
always glad to get feedback. ;-)
Launching LottaNZB with Python 2.4.5 works fine on my machine. The
warning "GtkWarning: gtk_radio_
execution at all, it also appears with Python 2.5. It's not a Python
related problem.
As for the segmentation fault: I keep randomly running into those and I
haven't figured out yet why they appear. It must be a PyGTK related
problem. Have you tried launching LottaNZB a second time? Maybe the
segmentation fault disappears? :-/ You could also try running LottaNZB
from the source directory (python lottanzb.py). I'm afraid I can't give
you an "real" answer at this point.
--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https:/
You received this question notification because you are a direct
subscriber of the question.
Revision history for this message
|
#9 |
Hi Majestic,
thanks for the additional information. Segmentation faults aren't so easy to track down as no error information is displayed on the command line. I'm afraid I'm not experienced in things like that at all. One thing you could do is a backtrace, which might lead us to the source of the problem but I guess this doesn't solve the problem itself. aVirulence, who initially started the LottaNZB project, is Dutch and might be able to assist you better than I can. If you think this isn't worth the effort you could try other HellaNZB GUIs for the time being.
Regards,
Lantash
Revision history for this message
|
#10 |
Hi Severin,aVirulence,
Thank you for your answer. I would like to help where I can. I am not a expert in this either.
I do have some additional info for you I not sure if this tells anything. I upgraded the system to
Xubuntu 7.04. This is using python 2.5. I installed lottanzb source 0.1 and I am getting the same
Error.
Does this tell you something.
Regards,
Majestic
-----Oorspronkelijk bericht-----
Van: <email address hidden> [mailto:
<email address hidden>] Namens Severin Heiniger
Verzonden: Tuesday, March 25, 2008 7:57 PM
Aan: <email address hidden>
Onderwerp: RE: [Question #26775]: Error during launch
Your question #26775 on LottaNZB changed:
https:/
Status: Open => Answered
Severin Heiniger proposed the following answer:
Hi Majestic,
thanks for the additional information. Segmentation faults aren't so
easy to track down as no error information is displayed on the command
line. I'm afraid I'm not experienced in things like that at all. One
thing you could do is a backtrace, which might lead us to the source of
the problem but I guess this doesn't solve the problem itself.
aVirulence, who initially started the LottaNZB project, is Dutch and
might be able to assist you better than I can. If you think this isn't
worth the effort you could try other HellaNZB GUIs for the time being.
Regards,
Lantash
--
If this answers your question, please go to the following page to let us
know that it is solved:
https:/
If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https:/
You received this question notification because you are a direct
subscriber of the question.
Revision history for this message
|
#11 |
Majestic: it seems to be a PyGTK problem. Downgrading from 2.12.1 to 2.12.0 resolves the "gtk.glade.
Source: http://
Can you help with this problem?
Provide an answer of your own, or ask Majestic for more information if necessary.