Hi IMP users,
I have a fully functional script that works with IMP 1.0 libraries. When I
run the same script in IMP 2.0.1 in the same computer, it throws this error:
Traceback (most recent call last):
File "exocyst_prt_March2013_app1.py", line 10, in <module>
rep = restrainer.add_representation('input/repr_rdm_app1.xml')
File "/home/ibai/imp2/lib/IMP/restrainer/__init__.py", line 464, in
add_representation
return _main.Main.add_representation(self, fname)
File "/home/ibai/imp2/lib/IMP/restrainer/_main.py", line 17, in
add_representation
self.representation = XMLRepresentation(fname).run()
File "/home/ibai/imp2/lib/IMP/restrainer/_xml_parser.py", line 94, in run
r = self._handle_node(node)
File "/home/ibai/imp2/lib/IMP/restrainer/_xml_parser.py", line 102, in
_handle_node
return handler(node)
File "/home/ibai/imp2/lib/IMP/restrainer/_xml_parser.py", line 198, in
_handle_protein
r = self._handle_node(child)
File "/home/ibai/imp2/lib/IMP/restrainer/_xml_parser.py", line 102, in
_handle_node
return handler(node)
File "/home/ibai/imp2/lib/IMP/restrainer/_xml_parser.py", line 220, in
_handle_chain
result = _RepChain(attrs)
File "/home/ibai/imp2/lib/IMP/restrainer/_representation.py", line 204,
in __init__
self.topology_file = attributes.get('topology_filename',
IMP.atom.get_data_path('top_heav.lib'))
File "/home/ibai/imp2/lib/IMP/atom/__init__.py", line 10284, in
get_data_path
return _IMP_atom.get_data_path(*args)
_IMP_base.IOException: Unable to find data file top_heav.lib in
[/usr/local/share/IMP]. IMP is not installed or set up correctly.
And the missing data file is here:
/$ sudo find -name "top_heav.lib"
./home/damien/impJune/share/imp/atom/top_heav.lib
./home/ibai/imp2/data/atom/top_heav.lib
./usr/share/imp/atom/top_heav.lib
./usr/lib/modeller9.10/modlib/top_heav.lib
I don't think the code is wrong. Is the installation of imp 2.0.1 wrong? I
have just installed in another laptop a fresh new IMP 2.0.1 and neither
works the code. I have not read any changes about the representation module
and I know the xml file is well because it works in the same computer with
the IMP 1.0.
Thanks in advance,
ibai