LottaNZB fails to launch on a fresh installation due to missing directory

Bug #425154 reported by Severin H
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LottaNZB
Fix Released
High
Severin H

Bug Description

Reported by Marcel de Vries:

"LottaNZB 0.5 fails to start. It can't find ~/.local/share/lottanzb. Creating the directories fixes it.

According to Synaptic I'm running LottaNZB 0.5-1. If I remove lottanzb from ~/.local/share/ it starts flawless. But if I remove either ~/.local or ~/.local/share it doesn't.

---
Traceback (most recent call last):
  File "/usr/bin/lottanzb", line 6, in <module>
    app = App()
  File "/var/lib/python-support/python2.6/lottanzb/util.py", line 59, in __call__
    mcs.__instance = GObjectMeta.__call__(mcs, *args, **kwargs)
  File "/var/lib/python-support/python2.6/lottanzb/core.py", line 113, in __init__
    self.setup_resources()
  File "/var/lib/python-support/python2.6/lottanzb/core.py", line 128, in setup_resources
    resources.create_user_dirs()
  File "/var/lib/python-support/python2.6/lottanzb/resources/__init__.py", line 62, in create_user_dirs
    mkdir(directory)
OSError: [Errno 2] No such file or directory: '/home/xxxxxxxx/.local/share/lottanzb'
---

As you can see it does output ~/.local/share/lottanzb and that is what I saw. But it's just ~/.local and ~/.local/share."

Severin H (severinh)
Changed in lottanzb:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Severin Heiniger (lantash)
milestone: none → 0.5.1
Revision history for this message
Severin H (severinh) wrote :

Just commited the fix to the 0.5 branch.

Changed in lottanzb:
status: Triaged → Fix Committed
Revision history for this message
Marcel de Vries (carresmd-deactivatedaccount) wrote :

Damn I'm too slow. I've made my very first patch ever. I'll post it anyway.

Revision history for this message
Marcel de Vries (carresmd-deactivatedaccount) wrote :

Oh. And thanks for fixing it! ;-)

Revision history for this message
Severin H (severinh) wrote :

Not many people take the time to look into the source code and provide patches. No matter if the fix has already been commited or not I'd still like to thank you. :-)

Please note that os.mkdirs doesn't exist. It's called os.makedirs. Damn inconsistency. Had to look it up too.

Revision history for this message
Marcel de Vries (carresmd-deactivatedaccount) wrote :

Ok, that's just stupid. My source DID say os.makedirs, I just made it os.mkdirs. Guess I'm not fully awake yet! Haha.

It was my pleasure. ;-)

Severin H (severinh)
Changed in lottanzb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.