ImportError: numpy.core.multiarray failed to import

cellprofiler

#1

I have a plugin that works fine on my Windows 10 computer (running CellProfiler 2.2), but when a collaborator tried to use it they get an error message “ImportError: numpy.core.multiarray failed to import”, also on Windows 10.

The plugin contains the following imports:
import _adaptiveThreshold as at
import time
import numpy as np
import array
import math

import cellprofiler.cpmodule as cpm
import cellprofiler.settings as cps
import cellprofiler.cpimage as cpi

and
_adaptiveThreshold is written in C and uses the following includes:
#include <stdlib.h>
#include <math.h>
#include <Python.h>
#include <numpy/arrayobject.h>

Is there anything that needs to be installed on their computer or something that I need to include in the build?


#2

Are you running from source or compiled? How about them?

If you want to email me the plugin (or a link to where I can download it) I’ll see if I can verify and troubleshoot on my own machine.