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

Installation of javabridge on Windows (ValueError: numpy.ndarray size changed error) #10

Closed
ElpadoCan opened this issue Mar 4, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@ElpadoCan
Copy link
Collaborator

ElpadoCan commented Mar 4, 2022

Cell-ACDC on Windows automatically installs a pre-compiled version of javabridge when you first launch the module "0. Create data structure from microscopy file(s)...".

However, it doesn't seem to work on every Windows PC and you get the following error (see issue #9):

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

In this case, you need to install javabridge manually as follows:

  1. Download and install Microsoft C++ Build Tools from here. IMPORTANT: make sure to select Desktop development with C++ when installing the C++ Build Tools. See screenshot below
  2. Download and install Java Development Kit for Windows from here. Note: if you prefer to install Java directly from the Oracle website you can download it from here, but you will need to create an Oracle account
  3. If you do not have git you need to install it from here
  4. Open the Anaconda Prompt and activate the acdc environment
  5. Uninstall javabdridge with the command pip uninstall -y javabridge
  6. Install javabdridge with the command pip install git+https://github.com/SchmollerLab/python-javabridge-acdc

If you are still having issues, comment below, thanks!

Visual Studio Build Tools installation:

visual_studio_settings

@ElpadoCan ElpadoCan added the documentation Improvements or additions to documentation label Mar 4, 2022
@jordanyx
Copy link

jordanyx commented Mar 4, 2022

This solution worked for me, thank you!

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

No branches or pull requests

2 participants