Lottanzb 0.4.95 hangs on startup due to missing plugins directory

Bug #418859 reported by Frank Zwart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LottaNZB
Fix Released
High
Severin H

Bug Description

Package: http://edge.launchpad.net/lottanzb/0.5/0.4.95/+download/lottanzb_0.4.95-1_all.deb
Platform: Ubunty Jaunty Jackalope

I upgraded from lottanzb 0.4.1 to 0.4.95, and ran into a problem. Lottanzb wouldn't start up, because the directory /home/<user>/.local/lottanzb/plugins did not exist. Lottanzb hangs, displaying the error (on console startup)

Traceback (most recent call last):
  File "/usr/bin/lottanzb", line 7, in <module>
    app.run()
  File "/var/lib/python-support/python2.6/lottanzb/core.py", line 355, in run
    sys.exit(self.main(sys.argv))
  File "/var/lib/python-support/python2.6/lottanzb/core.py", line 324, in main
    self.launch()
  File "/var/lib/python-support/python2.6/lottanzb/core.py", line 188, in launch
    self.plugin_manager = PluginManager(self, self.config.plugins)
  File "/var/lib/python-support/python2.6/lottanzb/plugins/__init__.py", line 544, in __init__
    self._find_plugins()
  File "/var/lib/python-support/python2.6/lottanzb/plugins/__init__.py", line 550, in _find_plugins
    for name in listdir(path):
OSError: [Errno 2] No such file or directory: '/home/<user>/.local/share/lottanzb/plugins'

Easily worked around by manually creating the plugins directory.

Frank Zwart (fzwart)
description: updated
Revision history for this message
Severin H (severinh) wrote :

Hi Frank Zwart,

thanks alot for reporting this issue! I just commited a fix, which will be part of the final version of LottaNZB 0.5. In fact, it might even be a good idea to release a second beta version since many users are likely to have this problem.

Changed in lottanzb:
status: New → Won't Fix
status: Won't Fix → Fix Committed
importance: Undecided → High
assignee: nobody → Severin Heiniger (lantash)
milestone: none → 0.5
Revision history for this message
Severin H (severinh) wrote :

Just uploaded a new beta version which includes the fix. Thanks again for reporting.

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

In LottaNZB 5.0 it fails to start. It can't find ~/.local/share/lottanzb. Creating the directories fixes it as well.

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

Hi Marcel de Vries,

are you sure that this happened with the final version of LottaNZB 0.5 released tonight? I'm quite sure I fixed the bug. If you're really using LottaNZB 0.5 (not 0.4.9x), could you please remove the "lottanzb" directory in ~/.local/share again, run "lottanzb" in a terminal and copy the error messages to this bug report?

Regards,
Severin

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

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/carresmd/.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.

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

If it's important. This is on a fresh jaunty install which probably doesn't contain ~/.local after installation. If not than maybe "cp -ax" dropped empty directories when I change my /home partition.

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

Thanks for providing me with additional information. I didn't know that the ~/.local/ and ~/.local/share directories don't exist after a fresh installation of Ubuntu. The directory will be created soon after the installation I guess, since there are many programs that write to this directory and even the trash is located there.

Fixing this bug is trivial. Since the crash only happens on a truly fresh installation and can be easily worked around, there's no need for an emergency release I guess. But it should definitely be part of LottaNZB 0.5.1.

I'll file a new bug report. Thanks again for your help.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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