variety doesn't start // crashes

Bug #1402370 reported by Timon Traub
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Variety
New
Undecided
Unassigned

Bug Description

Hi,

when I launch variety from the Dash (Ubuntu 14.04), nothing happens. When I launch it from the terminal, this is the log:

timon@Thinkpad-Linux:~$ /opt/extras.ubuntu.com/variety/bin/variety -v
INFO: 2014-12-14 13:14:22,326: perform_upgrade() 'Last run version was 0.4.21 or earlier, current version is 0.4.21'
INFO: 2014-12-14 13:14:22,328: process_command() 'Received command: [u'-v']'
INFO: 2014-12-14 13:14:22,343: load() 'Jumble loading'
INFO: 2014-12-14 13:14:22,343: _walk_modules() 'Jumble loading module in __init__ from /opt/extras.ubuntu.com/variety/share/variety/plugins/__init__.py'
INFO: 2014-12-14 13:14:22,344: _walk_modules() 'Jumble loading module in LocalFilesSource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/LocalFilesSource.py'
INFO: 2014-12-14 13:14:22,344: load() 'Jumble found plugin class: <class 'LocalFilesSource.LocalFilesSource'>: {'author': 'Peter Levi', 'name': 'Local text files', 'version': '0.1', 'description': u'Displays quotes, defined in local text files.\nPut your own txt files in: ~/.config/variety/pluginconfig/quotes/.\nThe file format is:\n\nquote -- author\n.\nsecond quote -- another author\n.\netc...\n\nExample: http://rvelthuis.de/zips/quotes.txt'}'
INFO: 2014-12-14 13:14:22,345: _walk_modules() 'Jumble loading module in QuotationsPageSource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/QuotationsPageSource.py'
INFO: 2014-12-14 13:14:22,356: load() 'Jumble found plugin class: <class 'QuotationsPageSource.QuotationsPageSource'>: {'author': 'Peter Levi', 'name': 'TheQuotationsPage.com', 'version': '0.1', 'description': u'Fetches quotes from TheQuotationsPage.com'}'
INFO: 2014-12-14 13:14:22,357: _walk_modules() 'Jumble loading module in __init__ from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/__init__.py'
INFO: 2014-12-14 13:14:22,358: _walk_modules() 'Jumble loading module in GoodreadsSource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/GoodreadsSource.py'
INFO: 2014-12-14 13:14:22,358: load() 'Jumble found plugin class: <class 'GoodreadsSource.GoodreadsSource'>: {'author': 'Peter Levi', 'name': 'Goodreads', 'version': '0.1', 'description': u'Fetches quotes from Goodreads.com'}'
INFO: 2014-12-14 13:14:22,359: _walk_modules() 'Jumble loading module in QuotesDaddySource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/QuotesDaddySource.py'
INFO: 2014-12-14 13:14:22,359: load() 'Jumble found plugin class: <class 'QuotesDaddySource.QuotesDaddySource'>: {'author': 'Peter Levi', 'name': 'QuotesDaddy', 'version': '0.1', 'description': u"Fetches quotes from QuotesDaddy's daily quotes RSS feed.\nDoes not support searching by tags or authors."}'
INFO: 2014-12-14 13:14:22,362: makedirs() 'Creating folder /media/timon/Storage/Pictures/Wallpapers'
ERROR: 2014-12-14 13:14:22,362: makedirs() 'Could not makedirs for /media/timon/Storage/Pictures/Wallpapers'
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/variety/variety/Util.py", line 184, in makedirs
    os.makedirs(path)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/media/timon/Storage'
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/variety/bin/variety", line 41, in <module>
    variety.main()
  File "/opt/extras.ubuntu.com/variety/variety/__init__.py", line 141, in main
    window.start(arguments)
  File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line 164, in start
    self.reload_config()
  File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line 354, in reload_config
    self.prepare_download_folder()
  File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line 343, in prepare_download_folder
    with open(dl_folder_file, "w") as f:
IOError: [Errno 2] No such file or directory: u'/media/timon/Storage/Pictures/Wallpapers/.variety_download_folder'

I think I know what the problem is: during Variety's first install a couple of days ago, I told it to save wallpapers to a HDD called Storage, then found in /media/timon/Storage. In the meantime, I decided to mount the HDD to /media/Storage. I tried uninstalling, sudo apt-get purging and reinstalling Variety, but it still remembers that first location and I don't know how to tell it not to. Any ideas?

Revision history for this message
Peter Levi (peterlevi) wrote :

The way to reset it is to delete the folder ~/.config/variety, then start it again. Or you may manually edit ~/.config/variety/variety.conf to change the folders but this is more work than resetting it completely.

Revision history for this message
Timon Traub (timon-traub) wrote :

YES! D'oh!

Thanks so much! It's working beautifully now!

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.