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

Error when installing CellProfiler and its plugins from source on Apple M1 chip #176

Open
ML33M opened this issue Jan 12, 2023 · 2 comments

Comments

@ML33M
Copy link

ML33M commented Jan 12, 2023

Hi, I have tried to install plugins following the Beginner-level instructions and it did not work.
Then i tried to installing CellProfiler and its plugins from source following the https://github.com/CellProfiler/CellProfiler-plugins/blob/master/Instructions/Install_environment_instructions_mac.md

When I run the conda create env:

conda env create -f CellProfiler_plugins_mac.yml

I get

ResolvePackageNotFound: 
   - python-javabridge
   - mysqlclient=1.4.6

I tried to ask

pip install python-javabridge  

but I get a very long error message sectioned below:

  Building wheel for python-javabridge (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [50 lines of output]
      running bdist_wheel
  .....

I read a section says

"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
      #warning "Using deprecated NumPy API, disable it with " \
       ^
       _javabridge.c:612:10: fatal error: 'jni.h' file not found
      #include "jni.h"
                ^~~~~~~
      1 warning and 1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for python-javabridge

I did install mysqlclient alright

pip install mysqlclient===1.4.6 
@ML33M
Copy link
Author

ML33M commented Jan 12, 2023

I checked I have installed numpy and the jni.h file is in my java "include" folder.

@callum-jpg
Copy link
Contributor

Since this is related to installing CellProfiler specifically, would it be possible for you to try the CellProfiler installation instructions that are on the main cellprofiler repo? The instructions can be found here: https://github.com/CellProfiler/CellProfiler/wiki/Installation-of-CellProfiler-4-from-source-on-MacOS-M1

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

2 participants