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

Forthcoming issues with python 3.8.2 #81

Closed
nickjcroucher opened this issue May 7, 2020 · 5 comments
Closed

Forthcoming issues with python 3.8.2 #81

nickjcroucher opened this issue May 7, 2020 · 5 comments
Labels
bug Something isn't working package Packaging of code

Comments

@nickjcroucher
Copy link
Collaborator

I tried:
conda create --name pp -c bioconda python=3.8.2 poppunk

This results in problems:

ImportError: dlopen(/Users/nicholascroucher/miniconda3/envs/pp/lib/python3.8/site-packages/scipy/spatial/qhull.cpython-38-darwin.so, 2): Library not loaded: @rpath/libopenblas.dylib
  Referenced from: /Users/nicholascroucher/miniconda3/envs/pp/lib/python3.8/site-packages/scipy/spatial/qhull.cpython-38-darwin.so
  Reason: image not found

Tried to fix with an update of openblas:

conda install openblas==0.3.9
...
  hdf5                           1.10.5-nompi_h0cbb7df_1103 --> 1.10.5-nompi_h3e39495_1104
  libblas                                 3.8.0-11_openblas --> 3.8.0-16_openblas
  libcblas                                3.8.0-11_openblas --> 3.8.0-16_openblas
  libgfortran                                       3.0.1-0 --> 4.0.0-2
  liblapack                               3.8.0-11_openblas --> 3.8.0-16_openblas
  libopenblas                              0.3.6-hd44dcd8_6 --> 0.3.9-h3d69b6c_0
  openblas                                 0.3.6-hd44dcd8_6 --> 0.3.9-h2f2564b_0
  scipy               pkgs/main::scipy-1.4.1-py38hebbc057_0 --> conda-forge::scipy-1.4.1-py38h38b60c6_3

This generally fixes things, except for a conflict with the specification of pp-sketchlib. So might need a somewhat coordinated update of the conda recipes?

@johnlees
Copy link
Member

johnlees commented May 7, 2020

I think this is only a problem on OS X (and is due to sketchlib rather than PopPUNK).

I ran into a lot of issues with gfortran this week which caused the same v3 vs v4 conflict you have above. It's built with v4 and gets correct dependencies on their build machine, but when you install it locally it's forced to v3 by hdf5. I also saw the openblas issue at some point.

I think I will try statically linking gfortran on OS X when I next update the recipe and see if that solves everything. If not, I will link all the libraries statically.

@nickjcroucher
Copy link
Collaborator Author

What a pain - with the openblas update, I can run with mash, didn't realise it was hdf5 causing the problem. I think the main openblas/numpy/gfortran issues seem to be resolved for OSX (maybe that's optimistic)?

@johnlees
Copy link
Member

johnlees commented May 7, 2020

I'm just running on Linux for now.

You might find that if you try and run with sketchlib you'll get a similar library not found message for gfortran. You can install gfortran==4 to a new environment and set:

export DYLD_FALLBACK_LIBRARY_PATH=/Users/jlees/miniconda3/envs/gfortran/lib

before running.

Obviously a big pain, and I will try and sort it out in the next version

@johnlees johnlees added bug Something isn't working package Packaging of code labels May 7, 2020
@johnlees
Copy link
Member

johnlees commented May 9, 2020

It may just be that this is the preferred dependency: https://github.com/conda-forge/gfortran_impl_osx-64-feedstock

@johnlees
Copy link
Member

johnlees commented Jul 3, 2020

Fixed in pp-sketchlib v1.4.0

@johnlees johnlees closed this as completed Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package Packaging of code
Projects
None yet
Development

No branches or pull requests

2 participants