-
Notifications
You must be signed in to change notification settings - Fork 40
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
ImportError: undefined symbol: cblas_daxpy #220
Comments
There could be several reasons, depending on the operating system you are using and other factors. Which OS are you working on? Which steps did you follow to install HORTON, i.e. which commands did you use on the command line, including options given to In essence, the problem is that the file |
I have Linux Mint 64 |
Oops. Linux Mint is similar to Ubuntu, so the Ubuntu instructions should work reasonably well, not sure which Ubuntu version though. The file to be edited is |
But now cext isn't even recognized. Anyway, LM uses the Ubuntu core, so there should be no problem, but one never knows... |
@Fhechene Could you try to install it again and post the first few messages that pop up when you install it? It should look something like the following
|
I did create a LinuxMint-18-x86_64 cfg file. Copied the ubuntu 16.04 86_64 file and changed the name. |
@Fhechene I'm not too sure about Mint Linux, but atlas normally has its own include directory (especially if it doesn't ship with the OS). Could you double check that you have the header files for atlas somewhere? It should be somewhere like |
Managed to install again HORTON. Turns out the cfg file had a cfg.cfg file. I guess I should be more careful. Any way, I checked the atlas headers folder. It's filled with .h files, so that should be all right. Added it to the blas section in the cfg file. Now again, I arrived to Edit: I found a CBLAS installation folder, which I downloaded a few years ago. Tried to install it. Installed HORTON again. Returned to |
Could you double check that when you install HORTON, the configuration points to the appropriate directories: If this fails, you can always use some other blas package (Atlas seems to give a lot of headache to non-Fedora users), for example, OpenBlas. You need to find OpenBlas, e.g. If that also fails, you can use conda to install horton. First, download and install conda for Python2.7 (https://conda.io/docs/get-started.html). Create an environment for horton and install it, |
I had to recruit my computing engineer cousin. We managed to pinpont the error to having two versions of numpy installed: one from anaconda and the other from pip. Now, I have the following error |
Trying to install the different packages made my Linux distro to not start. Had to format my notebook. I've downloaded again the horton-2.0.1.tar.gz file. I've found that there is no /tools/qa/install_libxc-2.2.2.sh file. I couldn't find libint.sh either, so I downloaded the horton-master. Let's see what happens. |
When you are installing things, you should only give If you suspect that you have the same module installed multiple times and you don't know which you are using, enter python interpreter, @matt-chan @tovrstra There isn't install_libxc or install_libint in the link provided in the horton 2.0.1 documentation (https://github.com/theochem/horton/releases/download/2.0.1/horton-2.0.1.tar.gz). It is also missing the To download and install libint,
To download and install libxc,
|
@Fhechene It seems that there are some files missing in the https://github.com/theochem/horton/releases/download/2.0.1/horton-2.0.1.tar.gz, so for now just work off of horton master (https://github.com/theochem/horton/archive/master.zip). |
I managed to find an old horton-2.0.1 tar.gz, which has all of the above files (.h's, dependencies.json, libxc and libint install files) and didn't give me warnings about c++. Now, I'm back to step one: ImportError: No module named cext Edit: I tried to use the master folder, but it gave lot's of .h missing files and warning: command line option ‘stuffs’ is valid for C/ObjC but not for C++ warnings, which the file I've just found doesn't give me. |
This problem import error problem happened to centOS before because the new version of Atlas(3.10.1) on CentOS does not contain libcblas.so.3 while the old one(3.8.4) does. I also met this problem when I tried to install HORTON on my raspberry pi(Raspbian). I replaced atlas with openblas and the problem solved since I couldn't find the old version. To double check, @Fhechene could you run |
@tczorro |
@Fhechene Could you please do |
|
@Fhechene Ah OK, you have installed openblas already. libcblas.so.3 is there. That's is good. Could you change the |
Done. No luck. |
@Fhechene If it works, could you run the nosetests, just make sure anything function properly. |
`Failure: ImportError (/home/federico/.local/lib/python2.7/site-packages/horton/gbasis/cext.so: undefined symbol: cblas_daxpy) ... ERROR ======================================================================
|
@Fhechene Hmm, not sure why this keep happening. David and I will try to solve it. |
With build_ext -i I get } I installed libopenblas-dev, and nothing |
Execute /tools/qa/install_libxc-2.2.2.sh and /tools/qa/install_libint-2.0.3.sh |
Input: ./tools/qa/install_libxc-2.2.2.sh Input: ./tools/qa/install_libint-2.0.3.sh After building and installing again, I still get undefined symbol: cblas_daxpy |
@Fhechene change config file libraries=openblas and run |
MACHINE=Linux-LinuxMint-18.1-x86_64 |
@Fhechene Could you please change |
@tczorro I changed it and still get the same error. |
I'm going to close this issue because the problem is user configuration of dynamic link libraries, not a specific problem in HORTON. Some of the problems mentioned above have been solved in the development branch and are being backported to 2.0.1. See #232 |
Hi!
I've managed to install HORTON, but I have an issue.
When I try to import it to python I get the following error
ImportError: /usr/local/lib/python2.7/dist-packages/horton/gbasis/cext.so:
undefined symbol: cblas_daxpy
Any idea why could this be?
The text was updated successfully, but these errors were encountered: