Missing ModelDB.xml

0 views
Skip to first unread message

Uri Cohen

unread,
Nov 23, 2011, 5:08:06 PM11/23/11
to neuro...@googlegroups.com
I've done a fresh install of neuronvision (on a Windows machine) and got the following error:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\neuronvisio\controls.py", line 160, in populate_treeview_model
    self.models =  Models()
  File "C:\Python27\lib\site-packages\neuronvisio\modeldb\ModelDB.py", line 267,  in __init__
    self._modelList = self._generate_models_list(os.path.join(path, 'ModelDB.xml'))
  File "C:\Python27\lib\site-packages\neuronvisio\modeldb\ModelDB.py", line 293, in _generate_models_list
    models=xml.etree.ElementTree.XML(open(data).read())
IOError: [Errno 2] No such file or directory: 'C:\\Python27\\lib\\site-packages\\neuronvisio\\modeldb\\ModelDB.xml'

Looking into the package file in pypi I see ModelDB.xml is indeed missing there. How is this file supposed to be added? I know you can do it either in the setup.py code or in MANIFEST.in .

I worked-around this by clicking Updater.py, which worked like a charm and created the missing file. :)
            Uri Cohen

Michele Mattioni

unread,
Nov 24, 2011, 11:45:43 AM11/24/11
to neuro...@googlegroups.com
Yes, well spotted.
I've changed the manifest and now ModelDb.xml is integrated with the package.

Unfortunately there is an error on pypi so I can't upload the package yet
https://sourceforge.net/tracker/index.php?func=detail&aid=3441685&group_id=66150&atid=513504

However it's is possible to get the latest version 0.7.3 from github
https://github.com/mattions/neuronvisio/tags

I'll do the official release ASAP PiPy goes back to normal.

Cheers,
Michele.

Reply all
Reply to author
Forward
0 new messages