Hi,
I have installed IMP with the minimal requirements that I think that it needs and everything seems to compile without problems. However when I try to import the python modules I get some nasty import errors.
Any help greatly appreciated.
>>> import IMP.core >>> import IMP.atom Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/fenwick/opt/lib64/python2.5/site-packages/IMP/atom/__init__.py", line 28, in <module> import _IMP_atom ImportError: /home/fenwick/opt/lib64/python2.5/site-packages/_IMP_atom.so: undefined symbol: _ZN3IMP4atom14CHARMMTopology32CHARMMSegmentTopologyDataWrapperD1Ev >>> import IMP.saxs Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/fenwick/opt/lib64/python2.5/site-packages/IMP/saxs/__init__.py", line 163, in <module> import IMP.atom File "/home/fenwick/opt/lib64/python2.5/site-packages/IMP/atom/__init__.py", line 28, in <module> import _IMP_atom ImportError: /home/fenwick/opt/lib64/python2.5/site-packages/_IMP_atom.so: undefined symbol: _ZN3IMP4atom14CHARMMTopology32CHARMMSegmentTopologyDataWrapperD1Ev
Here is the end of teh build process that appears to have worked.
scons: done building targets.
Enabled dependencies: Boost.FileSystem, Boost.ProgramOptions Disabled dependencies: OpenMM, Bullet, CGAL, ANN, OpenCV, NetCDF, modeller, FFTW3, GSL
Enabled modules: em, kernel, domino, misc, statistics, container, display, saxs, system, core, algebra, restrainer, benchmark, atom, example Disabled modules: openmm, cgal, bullet, multifit, gsl, modeller, em2d
Enabled applications: foxs, ligand_score, saxs_tools, em_tools
Enabled systems: Groel, example_system
R. Bryn Fenwick robert.fenwick@irbbarcelona.org Post-doctoral fellow Chemistry and Molecular Pharmacology Programme Institute for Research in Biomedicine (IRB Barcelona) Parc Científic de Barcelona Baldiri Reixac 10, 08028 Barcelona, SPAIN Tel. (+34) 9340 20460
By modifying the config.py file to include a long list of include directories imp fails to build:
Install file: "kernel/include/constants.h" as "build/include/IMP/constants.h" g++ -o build/src/kernel_wrap.os -c -Wno-deprecated -Woverloaded-virtual -fPIC -DIMP_SWIG_WRAPPER -Ibuild/include -I/home/fenwick/opt/include -I/home/fenwick/opt/include/boost -I/home/fenwick/opt/include/CGAL -I/home/fenwick/opt/include/Python2.5 -I/home/fenwick/opt/include/python2.5 build/src/kernel_wrap.cpp build/src/kernel_wrap.cpp: In function 'int SWIG_CanCastAsInteger(double*, double, double)': build/src/kernel_wrap.cpp:3728: error: 'DBL_EPSILON' was not declared in this scope scons: *** [build/src/kernel_wrap.os] Error 1 scons: building terminated because of errors.
On 20 Jan 2011, at 12:18, Robert Fenwick wrote:
> > Hi, > > I have installed IMP with the minimal requirements that I think that it needs and everything seems to compile without problems. However when I try to import the python modules I get some nasty import errors. > > Any help greatly appreciated. > > >>> import IMP.core > >>> import IMP.atom > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/home/fenwick/opt/lib64/python2.5/site-packages/IMP/atom/__init__.py", line 28, in <module> > import _IMP_atom > ImportError: /home/fenwick/opt/lib64/python2.5/site-packages/_IMP_atom.so: undefined symbol: _ZN3IMP4atom14CHARMMTopology32CHARMMSegmentTopologyDataWrapperD1Ev > >>> import IMP.saxs > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/home/fenwick/opt/lib64/python2.5/site-packages/IMP/saxs/__init__.py", line 163, in <module> > import IMP.atom > File "/home/fenwick/opt/lib64/python2.5/site-packages/IMP/atom/__init__.py", line 28, in <module> > import _IMP_atom > ImportError: /home/fenwick/opt/lib64/python2.5/site-packages/_IMP_atom.so: undefined symbol: _ZN3IMP4atom14CHARMMTopology32CHARMMSegmentTopologyDataWrapperD1Ev > > > Here is the end of teh build process that appears to have worked. > > scons: done building targets. > > > Enabled dependencies: Boost.FileSystem, Boost.ProgramOptions > Disabled dependencies: OpenMM, Bullet, CGAL, ANN, OpenCV, NetCDF, modeller, FFTW3, GSL > > Enabled modules: em, kernel, domino, misc, statistics, container, display, saxs, system, core, algebra, restrainer, benchmark, atom, example > Disabled modules: openmm, cgal, bullet, multifit, gsl, modeller, em2d > > Enabled applications: foxs, ligand_score, saxs_tools, em_tools > > Enabled systems: Groel, example_system > > > R. Bryn Fenwick > robert.fenwick@irbbarcelona.org > Post-doctoral fellow > Chemistry and Molecular Pharmacology Programme > Institute for Research in Biomedicine (IRB Barcelona) > Parc Científic de Barcelona > Baldiri Reixac 10, 08028 Barcelona, SPAIN > Tel. (+34) 9340 20460 > > >
R. Bryn Fenwick robert.fenwick@irbbarcelona.org Post-doctoral fellow Chemistry and Molecular Pharmacology Programme Institute for Research in Biomedicine (IRB Barcelona) Parc Científic de Barcelona Baldiri Reixac 10, 08028 Barcelona, SPAIN Tel. (+34) 9340 20460
I haven't seen that error before.
What platform are you building on? eg linux or mac, what distribution/os version, swig version?
On Jan 20, 2011, at 3:30 AM, Robert Fenwick wrote:
> > By modifying the config.py file to include a long list of include directories imp fails to build: > > Install file: "kernel/include/constants.h" as "build/include/IMP/constants.h" > g++ -o build/src/kernel_wrap.os -c -Wno-deprecated -Woverloaded-virtual -fPIC -DIMP_SWIG_WRAPPER -Ibuild/include -I/home/fenwick/opt/include -I/home/fenwick/opt/include/boost -I/home/fenwick/opt/include/CGAL -I/home/fenwick/opt/include/Python2.5 -I/home/fenwick/opt/include/python2.5 build/src/kernel_wrap.cpp > build/src/kernel_wrap.cpp: In function 'int SWIG_CanCastAsInteger(double*, double, double)': > build/src/kernel_wrap.cpp:3728: error: 'DBL_EPSILON' was not declared in this scope > scons: *** [build/src/kernel_wrap.os] Error 1 > scons: building terminated because of errors. > > > On 20 Jan 2011, at 12:18, Robert Fenwick wrote: > >> >> Hi, >> >> I have installed IMP with the minimal requirements that I think that it needs and everything seems to compile without problems. However when I try to import the python modules I get some nasty import errors. >> >> Any help greatly appreciated. >> >> >>> import IMP.core >> >>> import IMP.atom >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "/home/fenwick/opt/lib64/python2.5/site-packages/IMP/atom/__init__.py", line 28, in <module> >> import _IMP_atom >> ImportError: /home/fenwick/opt/lib64/python2.5/site-packages/_IMP_atom.so: undefined symbol: _ZN3IMP4atom14CHARMMTopology32CHARMMSegmentTopologyDataWrapperD1Ev >> >>> import IMP.saxs >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "/home/fenwick/opt/lib64/python2.5/site-packages/IMP/saxs/__init__.py", line 163, in <module> >> import IMP.atom >> File "/home/fenwick/opt/lib64/python2.5/site-packages/IMP/atom/__init__.py", line 28, in <module> >> import _IMP_atom >> ImportError: /home/fenwick/opt/lib64/python2.5/site-packages/_IMP_atom.so: undefined symbol: _ZN3IMP4atom14CHARMMTopology32CHARMMSegmentTopologyDataWrapperD1Ev >> >> >> Here is the end of teh build process that appears to have worked. >> >> scons: done building targets. >> >> >> Enabled dependencies: Boost.FileSystem, Boost.ProgramOptions >> Disabled dependencies: OpenMM, Bullet, CGAL, ANN, OpenCV, NetCDF, modeller, FFTW3, GSL >> >> Enabled modules: em, kernel, domino, misc, statistics, container, display, saxs, system, core, algebra, restrainer, benchmark, atom, example >> Disabled modules: openmm, cgal, bullet, multifit, gsl, modeller, em2d >> >> Enabled applications: foxs, ligand_score, saxs_tools, em_tools >> >> Enabled systems: Groel, example_system >> >> >> R. Bryn Fenwick >> robert.fenwick@irbbarcelona.org >> Post-doctoral fellow >> Chemistry and Molecular Pharmacology Programme >> Institute for Research in Biomedicine (IRB Barcelona) >> Parc Científic de Barcelona >> Baldiri Reixac 10, 08028 Barcelona, SPAIN >> Tel. (+34) 9340 20460 >> >> >> > > R. Bryn Fenwick > robert.fenwick@irbbarcelona.org > Post-doctoral fellow > Chemistry and Molecular Pharmacology Programme > Institute for Research in Biomedicine (IRB Barcelona) > Parc Científic de Barcelona > Baldiri Reixac 10, 08028 Barcelona, SPAIN > Tel. (+34) 9340 20460 > > > > _______________________________________________ > IMP-users mailing list > IMP-users@salilab.org > https://salilab.org/mailman/listinfo/imp-users
On 1/20/11 3:18 AM, Robert Fenwick wrote: > I have installed IMP with the minimal requirements that I think that it > needs and everything seems to compile without problems. However when I > try to import the python modules I get some nasty import errors.
You don't say what version of IMP you're running, so I'm going to guess you checked out the latest version from SVN. Sometimes this is broken, since it's in constant development (see the nightly build results at http://salilab.org/imp/nightly/tests.html to see what's broken - for example, today the IMP.em2d module is broken). A few days ago the IMP.atom module was broken in exactly the way you describe, so the simplest solution would just be to update your SVN checkout and try again. Alternatively, if you want something that will work and don't need the very latest features, use the stable build or the 1.0 release.
Ben
participants (3)
-
Ben Webb
-
Daniel Russel
-
Robert Fenwick