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

Library error when importing scipy.optimize in embedpy #55

Closed
mcg1969 opened this issue Jul 17, 2018 · 2 comments · Fixed by #58
Closed

Library error when importing scipy.optimize in embedpy #55

mcg1969 opened this issue Jul 17, 2018 · 2 comments · Fixed by #58

Comments

@mcg1969
Copy link

mcg1969 commented Jul 17, 2018

cc: @ilanschnell

I'm working on the embedPy recipe right now, and it was my desire to have conda build run the tests. I've run into the following problem. I have an environment with the current build of kdb and embedpy. When running the curve_fit test I'm getting a library loading error; see below. I'm continuing to investigate, but if the embedPy authors have seen this before, let me know.

From the command line:

conda create -n kx -c kx kdb embedpy scipy
conda activate kx
q

From the q prompt:

\l p.q
cf:.p.import[`scipy.optimize;`:curve_fit;<]

The error:

'import: dlopen(/Users/mgrant/miniconda3/envs/kx/lib/python3.6/site-packages/scipy/optimize/minpack2.cpython-36m-darwin.so, 2): Symbol not found: _main
  Referenced from: /Users/mgrant/miniconda3/envs/kx/lib/python3.6/site-packages/scipy/optimize/minpack2.cpython-36m-darwin.so
  Expected in: flat namespace
 in /Users/mgrant/miniconda3/envs/kx/lib/python3.6/site-packages/scipy/optimize/minpack2.cpython-36m-darwin.so
  [1]  /Users/mgrant/miniconda3/envs/kx/q/p.q:36: .p.wfunc:{[f;x]r:wrap f x 0;$[count x:1_x;.[;x];]r}
@mcg1969
Copy link
Author

mcg1969 commented Jul 17, 2018

Incidentally, the curve_fit tests are the only ones failing for me.

@mcg1969
Copy link
Author

mcg1969 commented Jul 17, 2018

Oh, and I should add that importing scipy.optimize.curve_fit within Python itself works just fine.

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

Successfully merging a pull request may close this issue.

1 participant