BootCamp2018 icon indicating copy to clipboard operation
BootCamp2018 copied to clipboard

error with attribute of TasmanianSparseGrid()

Open jfan3 opened this issue 6 years ago • 2 comments

Has anyone run into the following error by any chance? Thanks!

File "OSM_example.py", line 52, in grid = TasmanianSG.TasmanianSparseGrid() File "/home/jfan3/Desktop/OSM2018/day1_SparseGrid/SparseGridCode/analytical_examples/TASMANIAN_Python/TasmanianSG.py", line 107, in init self.pLibTSG = cdll.LoadLibrary("../../TasmanianSparseGrids/libtasmaniansparsegrid.so") File "/software/python-2.7-2015q2-el6-x86_64/lib/python2.7/ctypes/init.py", line 443, in LoadLibrary return self._dlltype(name) File "/software/python-2.7-2015q2-el6-x86_64/lib/python2.7/ctypes/init.py", line 365, in init self._handle = _dlopen(self._name, mode) OSError: /lib64/libm.so.6: version `GLIBC_2.15' not found (required by ../../TasmanianSparseGrids/libtasmaniansparsegrid.so) Exception AttributeError: "TasmanianSparseGrid instance has no attribute 'pLibTSG'" in <bound method TasmanianSparseGrid.del of <TasmanianSG.TasmanianSparseGrid instance at 0x7f56ac8cc170>> ignored

jfan3 avatar Jul 15 '18 19:07 jfan3

It looks like you're trying to run this .py file from your local machine. Just to double check -- did you install Tasmanian on your laptop? During class we ran an install script for Tasmanian on Midway so our code would compile there, but you might not have done so on your laptop.

rebekahanne avatar Jul 16 '18 03:07 rebekahanne

Thanks Rebekah! :)

jfan3 avatar Jul 16 '18 12:07 jfan3