BhallaLab / moose

MOOSE simulator.
http://moose.ncbs.res.in
GNU General Public License v3.0
25 stars 19 forks source link

rainbow2.pkl is not found on second run of moosegui #148

Closed subhacom closed 9 years ago

subhacom commented 9 years ago

On the first launch, moosegui launches itself. But on the second run, it fails with following.

 File "mgui.py", line 66, in <module>
    from objectedit import ObjectEditDockWidget
  File "/home/dilawar/Work/NCBS/moose_svn/packaging/moose_3.0.0/gui/objectedit.py", line 73, in <module>
    from plugins.kkitUtil import getColor
  File "/home/dilawar/Work/NCBS/moose_svn/packaging/moose_3.0.0/gui/plugins/kkitUtil.py", line 9, in <module>
    colormap_file = open(os.path.join(config.settings[config.KEY_COLORMAP_DIR], 'rainbow2.pkl'),'rb')
IOError: [Errno 2] No such file or directory: 'rainbow2.pkl'
```~

Removing ~/.moose fixes the issue. I am suspecting the copying of files to ~/.moose is not perfect. This will create issues with moose-gui package.

Reported by: dilawar
subhacom commented 9 years ago

The .moose folder is not needed. Its an old artifact and harsha asked subha to remove it, if I remember correctly. Ideally this folder should not be created in any new moose installation. If that is happening we should correct it, i.e. it shouldn't be created and referred to from within moose code.

Original comment by: *anonymous

subhacom commented 9 years ago

Apart from this subhasis had cleaned up 'first time run from settings initialization' which he had commited to trunk, I have commited config.py to moose_3.0.0 folder also. '.moose' folder in home directory is not created unlike earlier

Original comment by: hrani

subhacom commented 9 years ago

Original comment by: hrani