-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
importing octant.csa #4
Comments
I just ran into the same problem. I know this is an old issue but I will write my workaround here for future reference. To fix it I had to download csa from sakov's github and install it. This generates a libcsa.so which I copied to: /path/to/my/python/installation/lib/python2.7/site-packages/octant/ as _csa.so For example in the terminal It seems to be working so far, I'll report back if I run into issues. Cheers, Gabriel |
Hi Gabriel, let me see if I can help you. I have some notes on how I installed it in svn checkout http://gridgen-c.googlecode.com/svn/gridgen gridgen cd nn/nn/ cd ../../csa/csa/ Na pasta csa terá um arquivo chamado csa.o, faça: cd ../../gridutils/gridutils/ cd ../../gridgen/ gedit makefile & Replace in the makefile with the settings below: Close and sabe e keep following the commands belowmake cd ../../../octant/ Modify in grid.py as showed below in the line ~898 (double check it) gedit grid.py &
'/home/mf/libsmodels/lib') save and close it. Afterwards, do one last modification: cd ../ now in the dir ~/octant/octant/ open the file csa.py and modify with the
'/home/mf/libsmodels/libs(substitute Save and close it, go back to the dir cd ../ Adding the paths on .bashrc Sorry for my mistakes in english, I hope that can help you set everything Cheers, Matheus
On Wed, May 4, 2016 at 5:13 PM, Gabriel García Medina <
|
The googlecode links listed above seem broken, but you can do a recent version of
|
Dear Dr. Hetland,
I am new octant user and I've just installed octant successfully. However, I have been facing a problem when importing octant.csa, it keeps me showing this error:
OSError Traceback (most recent call last)
in ()
----> 1 import octant.csa
/usr/local/lib/python2.7/dist-packages/octant/csa.py in ()
7 import octant
8
----> 9 class CSA(object):
10 '''cubic spline approximation for re-gridding 2D data sets
11
/usr/local/lib/python2.7/dist-packages/octant/csa.py in CSA()
59 '''
60
---> 61 _csa = np.ctypeslib.load_library('_csa', '/usr/local/lib/python2.7/dis-packages/octant')
62
63
/usr/lib/python2.7/dist-packages/numpy/ctypeslib.pyc in load_library(libname, loader_path)
134 raise
135 ## if no successful return in the libname_ext loop:
--> 136 raise OSError("no file with expected extension")
137
138 ctypes_load_library = deprecate(load_library, 'ctypes_load_library',
OSError: no file with expected extension
Even though, all libs have been installed in their default path (/usr/local/) and csa's path had been changed before I compiled octant. Would you have any idea what it's going on?
Cheers,
Matheus
The text was updated successfully, but these errors were encountered: