Issue at start

Create issue
Issue #28 resolved
Former user created an issue

user@vostro:~$ gsharkdown Traceback (most recent call last): File "", line 124, in <module> CONFIG['down_path'] = os.path.join(glib.get_user_special_dir(glib.USER_DIRECTORY_MUSIC), "Grooveshark") File "/usr/lib/python2.6/", line 67, in join elif path == '' or path.endswith('/'): AttributeError: 'NoneType' object has no attribute 'endswith'

Comments (11)

  1. cchristiansen

    Same problem can be replicated on Arch.

    The solution is to:

    sudo pacman -S xdg-user-dirs

    According to xdg-user-dirs is also in the debian repositories so I'm guessing for debian you just have to do:

    sudo apt-get install xdg-user-dirs

    Although I'm not sure since I don't use debian, I think this should solve it. From what I can tell, this problem arises when glib.get_user_special_dir(glib.USER_DIRECTORY_MUSIC) is null and it throws the error as mentioned above.

  2. cchristiansen
    if glib.get_user_special_dir(glib.USER_DIRECTORY_MUSIC) is None:
        print "You need to install xdg-user-dirs"

    Add something which looks like this for the meantime? (I'm not sure the code works... it's just getting the idea across.) Then at least it throws an error people can understand.

  3. Log in to comment