Skip to content
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

undefined symbol: cblas_dasum #22

Open
boscotsang opened this issue Sep 22, 2015 · 18 comments
Open

undefined symbol: cblas_dasum #22

boscotsang opened this issue Sep 22, 2015 · 18 comments

Comments

@boscotsang
Copy link

After deployment the import error raised during runtime. The error report as follow:

ImportError: /app/.heroku/python/lib/python2.7/site-packages/sklearn/metrics/pairwise_fast.so: undefined symbol: cblas_dasum

@branliu0
Copy link
Owner

Can you provide more information about what versions of packages you're using?

There are known issues with installing sklearn on this buildpack with certain versions. I personally haven't had the time to look into sklearn in detail yet, since I don't use it very much.

@boscotsang
Copy link
Author

My requirements.txt is as follow

numpy==1.9.2
scipy==0.15.1
scikit-learn==0.15.2
simplejson>=3.8.0
Flask>=0.10
Jinja2>=2.8
Werkzeug>=0.9
gunicorn>=0.17.2

@mitchelljkotler
Copy link

I am seeing this issue as well

@branliu0
Copy link
Owner

Is it also for sklearn specifically? I'm afraid I haven't been able to investigate sklearn issues with this buildpack.

@mitchelljkotler
Copy link

Yes, for sklearn. Not having any luck getting sklearn going on heroku by
any means.
On Oct 24, 2015 5:30 PM, "Brandon Liu" [email protected] wrote:

Is it also for sklearn specifically? I'm afraid I haven't been able to
investigate sklearn issues with this buildpack.


Reply to this email directly or view it on GitHub
#22 (comment)
.

@mitchelljkotler
Copy link

Using this buildpack instead resolved the issue for me:
https://github.com/andrewychoi/heroku-buildpack-scipy

@WhiskySoda
Copy link

Still having this issue, tried the build pack... unfortunately, not much luck. sklearn==0.15.2

@72L
Copy link

72L commented Nov 4, 2015

I'm also having this issue. Switching to https://github.com/andrewychoi/heroku-buildpack-scipy did not work for me scikit-learn==0.16.1, scipy==0.15.1, numpy==1.9.2

@anitameh
Copy link

I'm also having the same issue, even after switching to andrewychoi's buildpack.

ImportError: /app/.heroku/python/lib/python2.7/site-packages/sklearn/metrics/pairwise_fast.so: undefined symbol: cblas_dasum

anybody manage to get this working?

@jdelman
Copy link

jdelman commented Nov 11, 2015

Also having this issue.

@mitchelljkotler and @thenovices - could you tell us which versions of sklearn, numpy, and scipy that you're using?

@branliu0
Copy link
Owner

Sorry guys -- I don't use sklearn at all, but I can try to look into this. I'm pretty sure we would have to make a new precompiled binary for sklearn as well. I don't have that much time right now to work on that -- but hopefully will get to it at some point

@jdelman
Copy link

jdelman commented Nov 11, 2015

Running using Choi's buildpack with the following versions:

numpy==1.9.1
scipy==0.14.0
scikit-learn==0.15.2

@mitchelljkotler
Copy link

Also with Choi's buildpack:
numpy==1.9.1
scipy==0.14.0
scikit-learn==0.16.1

On Wed, Nov 11, 2015 at 1:36 PM, Josh Delman [email protected]
wrote:

Running using Choi's buildpack
https://github.com/andrewychoi/heroku-buildpack-scipy with the
following versions:

numpy==1.9.1
scipy==0.14.0
scikit-learn==0.15.2


Reply to this email directly or view it on GitHub
#22 (comment)
.

@anitameh
Copy link

sweet got this working with choi's buildpack too! thanks!!

@seyonv
Copy link

seyonv commented Jan 11, 2016

I'm having the same problem. (Using Choi's build pack and versions specified by mitchelljkotler

Getting the following error
"ImportError: liblapack.so.3: cannot open shared object file: No such file or directory"

@troyshu
Copy link

troyshu commented Mar 15, 2016

@seyonv @mitchelljkotler's version numbers just worked for me. Make sure numpy, scipy, and scikit-learn are the very first things in your requirements.txt; also, I'm on Python 2.7.

troyshu added a commit to troyshu/instant-ipython-data-analysis that referenced this issue Mar 22, 2016
@alexcombessie
Copy link

Same issue here. I solved it with Choi's build pack and the following versions on my requirements.txt:

numpy==1.9.1
scipy==0.14.0
scikit-learn==0.16.1

Be careful to reset all your buildpacks beforehand to do a clean install. You can do heroku buildpacks:clear

Just to be sure, I also pip uninstalled everything with pip freeze | xargs pip uninstall -y.

@FreshDonut
Copy link

Following all the tips. I feel like I'm getting closer. I do require pandas to read from a csv file though. I seem to be getting the following error on app load ImportError: C extension: liblapack.so.3: cannot open shared object file: No such file or directory not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first. Is this bc it can't find the file from S3 or something to do with pandas? Any thoughts guys?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests