I installed pyscrabble as root with the following command:
python setup.py install
Then I wanted to start pyscrabble as normal user:
$ pyscrabble-main.py
Traceback (most recent call last):
File "/usr/bin/pyscrabble-main.py", line 12, in ?
l = manager.LocaleManager()
File "/usr/lib/python2.4/site-packages/pyscrabble/manager.py", line 418, in __init__
self.loadLocales()
File "/usr/lib/python2.4/site-packages/pyscrabble/manager.py", line 435, in loadLocales
self.setLocale()
File "/usr/lib/python2.4/site-packages/pyscrabble/manager.py", line 441, in setLocale
x = OptionManager()
File "/usr/lib/python2.4/site-packages/pyscrabble/manager.py", line 161, in __init__
self.loadOptions()
File "/usr/lib/python2.4/site-packages/pyscrabble/manager.py", line 170, in loadOptions
dist.ensure_config_dir( r["config"].path )
File "/usr/lib/python2.4/site-packages/pyscrabble/dist.py", line 86, in ensure_config_dir
os.makedirs(dir)
File "/usr/lib/python2.4/os.py", line 159, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/share/pyscrabble/config'
Looks like you are trying to store user config settings in a system directory. You should use the user home directory to store configuration settings...
Logged In: YES
user_id=1206550
Originator: NO
PyScrabble does in fact use the home directory for configuration, its just not being initialized properly. I'll fix this in the next release. Thanks for pointing it out.
As a workaround, create the directory manually:
$ mkdir -p ~/.config/pyscrabble
Kevin