OpenSourceEcon / BootCamp2018

Repository of syllabi, lecture notes, Jupyter notebooks, code, and problem sets for OSM Lab Boot Camp 2018
81 stars 102 forks source link

error with attribute of TasmanianSparseGrid() #25

Open jfan3 opened 6 years ago

jfan3 commented 6 years ago

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

rebekahanne commented 6 years ago

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.

jfan3 commented 6 years ago

Thanks Rebekah! :)