Crash on first run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LottaNZB |
Fix Released
|
Medium
|
LottaNZB Development Team |
Bug Description
INFO Starting LottaNZB 0.2 using Python 2.5.2.
INFO The LottaNZB configuration could not be loaded. Starting configuration assistant.
INFO Created the LottaNZB directory /home/sparks/
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
Lotta()
File "/usr/lib/
self.assistant = firstrun.
File "/usr/lib/
self.
File "/usr/lib/
if Backend.
File "/usr/lib/
list = util.ProcessList()
File "/usr/lib/
process = Process(int(f))
File "/usr/lib/
self.parent_pid = int(parent_pid)
ValueError: invalid literal for int() with base 10: 'S'
After messing witht he code in util.py I found out it was expecting a number but was receiving the letter 'S'
I changed the following and it fixed it.
:283
Changed in lottanzb: | |
status: | New → Fix Released |
Changed in lottanzb: | |
milestone: | 0.2.1 → 0.3 |
Changed in lottanzb: | |
status: | Fix Committed → Fix Released |
Hi sparks,
thanks a lot for your bug report and for the patch. I just applied it to both the main branch and the modes-module branch, which I'm currently working on.
The ProcessList class is used to detect whether a certain python application is running or not, but it's far from perfect and it won't work in all usage scenarios, that's why I'm currently trying to get rid of it in most places of the application.