Thanks so much, @DStirling ! I am having trouble finding the RunCellPose plugin anywhere on my system so that I can move it to my plugins directory specified in the CP preferences. I sucessefully updated CellProfiler to 4.2.1 and ran pip install cellpose. I am working in Ubuntu 16.04 LTS, and Python 3.8.12. Any help would be much appreciated!!

Hi @DStirling

First off thanks for everything you are doing for the community.

I have downloaded the entire plugins folder from the github link above and set that folders as my plugins directory on CellProfiler.

I can see multiple new plugins have appeared, but alas RunCellPose is not one of them.

Any idea how i can fix this?

I would advise against adding the entire folder as each plugin has different dependencies.

Chances are something went wrong when loading the plugin. If you run from the command line do you see any error messages in the console?

Hi David,

Thanks for getting back to me, you’re right, I can clearly see that the program cant find cellpose.

(base) alexrimmer@Alexs-MacBook-Pro ~ % pythonw -m cellprofiler
11:19:04: Debug: Adding duplicate image handler for 'Windows bitmap file'
11:19:04: Debug: Adding duplicate animation handler for '1' type
11:19:04: Debug: Adding duplicate animation handler for '2' type
MySQL could not be loaded.
Traceback (most recent call last):
  File "/Users/alexrimmer/CellProfiler/cellprofiler/modules/exporttodatabase.py", line 154, in <module>
    import MySQLdb
  File "/Users/alexrimmer/opt/anaconda3/lib/python3.9/site-packages/MySQLdb/__init__.py", line 18, in <module>
    from . import _mysql
ImportError: dlopen(/Users/alexrimmer/opt/anaconda3/lib/python3.9/site-packages/MySQLdb/_mysql.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_mysql_affected_rows'
Could not load runcellpose
Traceback (most recent call last):
  File "/Users/alexrimmer/core/cellprofiler_core/utilities/core/modules/__init__.py", line 71, in add_module
    m = __import__(mod, globals(), locals(), ["__all__"], 0)
  File "/Users/alexrimmer/Desktop/Cellpose/runcellpose.py", line 3, in <module>
    from cellpose import models
ModuleNotFoundError: No module named 'cellpose'
could not load these modules: runcellpose
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:19:05.169 python[13089:364615] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:19:05.170 python[13089:364615] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:19:05.170 python[13089:364615] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:19:05.170 python[13089:364615] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:19:05.170 python[13089:364615] nil host used in call to allowsAnyHTTPSCertificateForHost:

If I move runcellpose.py to a new folder and set that to my default plugin folder i get a similar message:

(base) alexrimmer@Alexs-MacBook-Pro ~ % pythonw -m cellprofiler
11:16:43: Debug: Adding duplicate image handler for 'Windows bitmap file'
11:16:43: Debug: Adding duplicate animation handler for '1' type
11:16:43: Debug: Adding duplicate animation handler for '2' type
MySQL could not be loaded.
Traceback (most recent call last):
  File "/Users/alexrimmer/CellProfiler/cellprofiler/modules/exporttodatabase.py", line 154, in <module>
    import MySQLdb
  File "/Users/alexrimmer/opt/anaconda3/lib/python3.9/site-packages/MySQLdb/__init__.py", line 18, in <module>
    from . import _mysql
ImportError: dlopen(/Users/alexrimmer/opt/anaconda3/lib/python3.9/site-packages/MySQLdb/_mysql.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_mysql_affected_rows'
Could not load runcellpose
Traceback (most recent call last):
  File "/Users/alexrimmer/core/cellprofiler_core/utilities/core/modules/__init__.py", line 71, in add_module
    m = __import__(mod, globals(), locals(), ["__all__"], 0)
  File "/Users/alexrimmer/Desktop/Cellpose/runcellpose.py", line 3, in <module>
    from cellpose import models
ModuleNotFoundError: No module named 'cellpose'
could not load these modules: runcellpose
2022-02-10 11:16:44.765 python[13059:363252] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:16:44.765 python[13059:363252] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:16:44.767 python[13059:363252] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:16:44.767 python[13059:363252] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:16:44.767 python[13059:363252] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:16:44.767 python[13059:363252] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:16:44.767 python[13059:363252] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:16:44.767 python[13059:363252] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:16:44.767 python[13059:363252] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:16:44.767 python[13059:363252] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:16:44.768 python[13059:363252] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:16:44.768 python[13059:363252] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:16:44.768 python[13059:363252] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:16:44.768 python[13059:363252] nil host used in call to allowsAnyHTTPSCertificateForHost:
2022-02-10 11:16:44.768 python[13059:363252] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-02-10 11:16:44.768 python[13059:363252] nil host used in call to allowsAnyHTTPSCertificateForHost:
Exiting the pipeline validation thread

Any idea what I should be doing differently?

Thanks!

Seems to be installed?

(base) alexrimmer@Alexs-MacBook-Pro ~ % pythonw -m pip freeze
absl-py==1.0.0
alabaster @ file:///home/ktietz/src/ci/alabaster_1611921544520/work
anaconda-client @ file:///opt/concourse/worker/volumes/live/866d4dd0-ff5b-4d0b-718d-0267a3b10e06/volume/anaconda-client_1635342573767/work
anaconda-navigator==2.1.1
anaconda-project @ file:///tmp/build/80754af9/anaconda-project_1626085644852/work
anyio @ file:///opt/concourse/worker/volumes/live/96440bbe-d2f1-4a9e-5edf-600248ff38bd/volume/anyio_1617783321037/work/dist
appdirs==1.4.4
applaunchservices @ file:///Users/ktietz/demo/mc3/conda-bld/applaunchservices_1630511705208/work
appnope @ file:///opt/concourse/worker/volumes/live/6ca6f098-d773-4461-5c91-a24a17435bda/volume/appnope_1606859448531/work
appscript @ file:///opt/concourse/worker/volumes/live/00049ed6-6263-4a6e-72b9-9d990f6e2f07/volume/appscript_1611427000595/work
argh==0.26.2
argon2-cffi @ file:///opt/concourse/worker/volumes/live/38e8fb2b-1295-4bdf-4adf-b20acbe4d91b/volume/argon2-cffi_1607022498041/work
arrow @ file:///opt/concourse/worker/volumes/live/1c202787-83f7-4b70-6d98-b40769f597f4/volume/arrow_1617737667847/work
asn1crypto @ file:///tmp/build/80754af9/asn1crypto_1596577642040/work
astroid @ file:///opt/concourse/worker/volumes/live/5aff3c6b-d8ac-4e74-4846-0f446794397d/volume/astroid_1628063157520/work
astropy @ file:///opt/concourse/worker/volumes/live/dac790a5-ee97-4520-5b55-f2cc50d275e6/volume/astropy_1629829220593/work
astunparse==1.6.3
async-generator @ file:///home/ktietz/src/ci/async_generator_1611927993394/work
atomicwrites==1.4.0
attrs @ file:///tmp/build/80754af9/attrs_1620827162558/work
autopep8 @ file:///tmp/build/80754af9/autopep8_1620866417880/work
Babel @ file:///tmp/build/80754af9/babel_1620871417480/work
backcall @ file:///home/ktietz/src/ci/backcall_1611930011877/work
backports.functools-lru-cache @ file:///tmp/build/80754af9/backports.functools_lru_cache_1618170165463/work
backports.shutil-get-terminal-size @ file:///tmp/build/80754af9/backports.shutil_get_terminal_size_1608222128777/work
backports.tempfile @ file:///home/linux1/recipes/ci/backports.tempfile_1610991236607/work
backports.weakref==1.0.post1
beautifulsoup4 @ file:///tmp/build/80754af9/beautifulsoup4_1631874778482/work
binaryornot @ file:///tmp/build/80754af9/binaryornot_1617751525010/work
bitarray @ file:///opt/concourse/worker/volumes/live/8f2b2fa2-f7cd-4343-4d8f-3cc38b632e33/volume/bitarray_1629132852828/work
bkcharts==0.2
black==19.10b0
bleach @ file:///tmp/build/80754af9/bleach_1628110601003/work
bokeh @ file:///opt/concourse/worker/volumes/live/278130e0-6bd5-4375-72c8-87158eba9408/volume/bokeh_1635324480391/work
boto==2.49.0
boto3==1.20.47
botocore==1.23.47
Bottleneck @ file:///opt/concourse/worker/volumes/live/ac8c8ef3-2ed0-42e9-6ec0-5bb05ad938f6/volume/bottleneck_1607575111469/work
brotlipy==0.7.0
cached-property @ file:///tmp/build/80754af9/cached-property_1600785575025/work
cachetools==5.0.0
cellh5==1.3.0
cellpose==1.0.0
-e git+https://github.com/CellProfiler/CellProfiler.git@6dee40ca804806731e2c3d0a16dd1675a4b7687a#egg=CellProfiler
-e git+https://github.com/CellProfiler/core.git@7eb9630f2bac957c626c69f030823f59bd79ae4f#egg=cellprofiler_core
centrosome==1.2.0
certifi==2021.10.8
cffi @ file:///opt/concourse/worker/volumes/live/976f8942-f51d-4f0e-7352-2a10f0820d0e/volume/cffi_1625814703974/work
chardet @ file:///opt/concourse/worker/volumes/live/7e1102c4-8702-40f2-63d6-f260ce5f85e4/volume/chardet_1607706831384/work
charset-normalizer @ file:///tmp/build/80754af9/charset-normalizer_1630003229654/work
click==8.0.3
cloudpickle @ file:///tmp/build/80754af9/cloudpickle_1632508026186/work
clyent==1.2.2
colorama @ file:///tmp/build/80754af9/colorama_1607707115595/work
conda==4.11.0
conda-build==3.21.5
conda-content-trust @ file:///tmp/build/80754af9/conda-content-trust_1617045594566/work
conda-pack @ file:///tmp/build/80754af9/conda-pack_1611163042455/work
conda-package-handling @ file:///opt/concourse/worker/volumes/live/8fb3e065-760b-4a9d-4cd9-aca7fc8baf53/volume/conda-package-handling_1618262145611/work
conda-repo-cli @ file:///tmp/build/80754af9/conda-repo-cli_1620168426516/work
conda-token @ file:///tmp/build/80754af9/conda-token_1620076980546/work
conda-verify==3.4.2
contextlib2 @ file:///Users/ktietz/demo/mc3/conda-bld/contextlib2_1630668244042/work
cookiecutter @ file:///tmp/build/80754af9/cookiecutter_1617748928239/work
cryptography @ file:///opt/concourse/worker/volumes/live/3143e751-d0f4-457e-7dc5-b7eaa48a56a8/volume/cryptography_1633520383659/work
cycler==0.10.0
Cython @ file:///opt/concourse/worker/volumes/live/090b3344-25bd-4e30-5dde-5f77abae4b7a/volume/cython_1636035875931/work
cytoolz==0.11.0
daal4py==2021.3.0
dask==2021.10.0
debugpy @ file:///opt/concourse/worker/volumes/live/1a15daf1-2a67-4a51-6aa1-c3bca01f7577/volume/debugpy_1629222706040/work
decorator @ file:///tmp/build/80754af9/decorator_1632776554403/work
defusedxml @ file:///tmp/build/80754af9/defusedxml_1615228127516/work
deprecation==2.1.0
diff-match-patch @ file:///Users/ktietz/demo/mc3/conda-bld/diff-match-patch_1630511840874/work
distributed @ file:///opt/concourse/worker/volumes/live/34c9adba-e95e-473d-7a32-ecdf958a8844/volume/distributed_1635968220957/work
docopt==0.6.2
docutils==0.15.2
entrypoints==0.3
et-xmlfile==1.1.0
fastcache @ file:///opt/concourse/worker/volumes/live/8356601f-d9bc-4d13-4017-1a58ebea6849/volume/fastcache_1607571270986/work
fastremap==1.12.2
filelock @ file:///tmp/build/80754af9/filelock_1635402558181/work
flake8 @ file:///tmp/build/80754af9/flake8_1620776156532/work
Flask @ file:///home/ktietz/src/ci/flask_1611932660458/work
flatbuffers==2.0
fonttools==4.25.0
fsspec @ file:///tmp/build/80754af9/fsspec_1632413898837/work
future @ file:///opt/concourse/worker/volumes/live/f456638c-86a7-4060-7f5f-d499a051219b/volume/future_1607571337593/work
gast==0.5.3
gevent @ file:///opt/concourse/worker/volumes/live/014e1366-b455-480b-61a8-9a69e4909791/volume/gevent_1628273687151/work
glob2 @ file:///home/linux1/recipes/ci/glob2_1610991677669/work
gmpy2==2.0.8
google-auth==2.6.0
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
greenlet @ file:///opt/concourse/worker/volumes/live/b27b4e9e-4697-4d57-403b-f82d36a391ca/volume/greenlet_1628888146890/work
grpcio==1.43.0
h5py @ file:///opt/concourse/worker/volumes/live/e7503571-c7b1-45ac-4bb7-37b5178cb0df/volume/h5py_1622088436205/work
HeapDict @ file:///Users/ktietz/demo/mc3/conda-bld/heapdict_1630598515714/work
hmmlearn==0.2.6
html5lib @ file:///Users/ktietz/demo/mc3/conda-bld/html5lib_1629144453894/work
idna @ file:///tmp/build/80754af9/idna_1622654382723/work
imagecodecs @ file:///opt/concourse/worker/volumes/live/ab9fe69e-f7d4-471a-6199-cb95a745fb88/volume/imagecodecs_1635529117386/work
imageio @ file:///tmp/build/80754af9/imageio_1617700267927/work
imagesize @ file:///Users/ktietz/demo/mc3/conda-bld/imagesize_1628863108022/work
imglyb==2.0.0
importlib-metadata @ file:///opt/concourse/worker/volumes/live/b1c84e32-1519-4554-50d3-980dc7c220d9/volume/importlib-metadata_1631916711680/work
inflect==5.4.0
inflection==0.5.1
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
intervaltree @ file:///Users/ktietz/demo/mc3/conda-bld/intervaltree_1630511889664/work
ipykernel @ file:///opt/concourse/worker/volumes/live/6f6caad4-5c02-4b4a-5243-1eece346c27b/volume/ipykernel_1633545433252/work/dist/ipykernel-6.4.1-py3-none-any.whl
ipython @ file:///opt/concourse/worker/volumes/live/c0526798-0817-46b3-68c1-bb9ffefe344a/volume/ipython_1635944197798/work
ipython-genutils @ file:///tmp/build/80754af9/ipython_genutils_1606773439826/work
ipywidgets @ file:///tmp/build/80754af9/ipywidgets_1634143127070/work
isort @ file:///tmp/build/80754af9/isort_1628603791788/work
itsdangerous @ file:///tmp/build/80754af9/itsdangerous_1621432558163/work
javabridge==1.0.16
jdcal @ file:///Users/ktietz/demo/mc3/conda-bld/jdcal_1630584345063/work
jedi @ file:///opt/concourse/worker/volumes/live/4b03e428-2d0c-4635-502c-16df884971e8/volume/jedi_1611333763457/work
jgo==1.0.3
Jinja2 @ file:///tmp/build/80754af9/jinja2_1612213139570/work
jinja2-time @ file:///tmp/build/80754af9/jinja2-time_1617751524098/work
jmespath==0.10.0
joblib @ file:///tmp/build/80754af9/joblib_1635411271373/work
JPype1==1.3.0
Js2Py==0.71
json5 @ file:///tmp/build/80754af9/json5_1624432770122/work
jsonschema @ file:///Users/ktietz/demo/mc3/conda-bld/jsonschema_1630511932244/work
jupyter @ file:///opt/concourse/worker/volumes/live/5d55c245-fcac-42f9-4a6c-7e147c07785b/volume/jupyter_1607700866889/work
jupyter-client @ file:///tmp/build/80754af9/jupyter_client_1616770841739/work
jupyter-console @ file:///tmp/build/80754af9/jupyter_console_1616615302928/work
jupyter-core @ file:///opt/concourse/worker/volumes/live/ade0d1fb-3680-4893-7a79-579c9d86c1c1/volume/jupyter_core_1633420119353/work
jupyter-server @ file:///opt/concourse/worker/volumes/live/c0b6c5cd-8b5f-482c-6789-42a64b3d2acc/volume/jupyter_server_1616084049292/work
jupyterlab @ file:///tmp/build/80754af9/jupyterlab_1635799997693/work
jupyterlab-pygments @ file:///tmp/build/80754af9/jupyterlab_pygments_1601490720602/work
jupyterlab-server @ file:///tmp/build/80754af9/jupyterlab_server_1633419203660/work
jupyterlab-widgets @ file:///tmp/build/80754af9/jupyterlab_widgets_1609884341231/work
keras==2.8.0
Keras-Preprocessing==1.1.2
keyring @ file:///opt/concourse/worker/volumes/live/effa77ff-08c0-456d-548e-ecd9681ace1e/volume/keyring_1629321568005/work
kiwisolver @ file:///opt/concourse/worker/volumes/live/f8867fdb-2fa2-4145-73d9-4d6f6dad5f7c/volume/kiwisolver_1612282424136/work
lazy-object-proxy @ file:///opt/concourse/worker/volumes/live/a169db40-97bf-4f51-6893-dc751f705b7b/volume/lazy-object-proxy_1616529067444/work
libarchive-c @ file:///tmp/build/80754af9/python-libarchive-c_1617780486945/work
libclang==13.0.0
llvmlite==0.37.0
locket==0.2.1
lxml @ file:///opt/concourse/worker/volumes/live/e9a191ad-c8f1-4bb7-7955-c333b8ab6c55/volume/lxml_1616443232489/work
mahotas==1.4.12
Markdown==3.3.6
MarkupSafe @ file:///opt/concourse/worker/volumes/live/fac44ebc-60de-4182-7f89-29bb8796c554/volume/markupsafe_1607027351541/work
matplotlib==3.1.3
matplotlib-inline @ file:///tmp/build/80754af9/matplotlib-inline_1628242447089/work
mccabe==0.6.1
microscopeimagequality==0.1.0.dev5
mistune @ file:///opt/concourse/worker/volumes/live/4217afd5-dad1-438d-6f79-e4992ccda0e5/volume/mistune_1607364880245/work
mkl-fft==1.3.1
mkl-random @ file:///opt/concourse/worker/volumes/live/0cda23d8-7460-44b2-7e5d-3c76a8a0ca7e/volume/mkl_random_1626186083266/work
mkl-service==2.4.0
mock @ file:///tmp/build/80754af9/mock_1607622725907/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1635423142362/work
mpmath==1.2.1
msgpack @ file:///opt/concourse/worker/volumes/live/ccdd6ca0-523a-4fde-5a76-cdd4f47c445e/volume/msgpack-python_1612287158191/work
multipledispatch @ file:///opt/concourse/worker/volumes/live/ae29ad0f-3a64-4ff5-7393-0aa95f2c9f85/volume/multipledispatch_1607574242710/work
munkres==1.1.4
mypy-extensions==0.4.3
mysqlclient==1.4.6
natsort==8.1.0
navigator-updater==0.2.1
nbclassic @ file:///tmp/build/80754af9/nbclassic_1616085367084/work
nbclient @ file:///tmp/build/80754af9/nbclient_1614364831625/work
nbconvert @ file:///opt/concourse/worker/volumes/live/ad745f9a-647c-4095-6b46-a8b45a735914/volume/nbconvert_1624479072790/work
nbformat @ file:///tmp/build/80754af9/nbformat_1617383369282/work
nest-asyncio @ file:///tmp/build/80754af9/nest-asyncio_1613680548246/work
networkx @ file:///tmp/build/80754af9/networkx_1633639043937/work
nltk==3.6.5
nose @ file:///tmp/build/80754af9/nose_1606773131901/work
notebook @ file:///opt/concourse/worker/volumes/live/600e39a3-70b3-4ed1-4986-4cc3d1a9be7c/volume/notebook_1635411664246/work
numba @ file:///Users/builder/miniconda3/envs/prefect/conda-bld/numba_1635176853722/work
numexpr @ file:///opt/concourse/worker/volumes/live/8a490d79-0e07-4fed-40fc-a78f896e4811/volume/numexpr_1618856522733/work
numpy==1.22.2
numpydoc @ file:///tmp/build/80754af9/numpydoc_1605117425582/work
oauthlib==3.2.0
olefile @ file:///Users/ktietz/demo/mc3/conda-bld/olefile_1629805411829/work
opencv-python-headless==4.5.5.62
openpyxl @ file:///tmp/build/80754af9/openpyxl_1632777717936/work
opt-einsum==3.3.0
packaging @ file:///tmp/build/80754af9/packaging_1625611678980/work
pandas==1.3.4
pandocfilters @ file:///opt/concourse/worker/volumes/live/d8ef4635-066d-4ffe-5341-12ebf01bd094/volume/pandocfilters_1605120459573/work
parso @ file:///tmp/build/80754af9/parso_1617223946239/work
partd @ file:///tmp/build/80754af9/partd_1618000087440/work
path @ file:///opt/concourse/worker/volumes/live/ada87e48-bd34-49ac-6489-f51a7259db05/volume/path_1623603892072/work
pathlib2 @ file:///opt/concourse/worker/volumes/live/9cb7a8e6-768d-4b83-4c58-1af1d6394b3e/volume/pathlib2_1625585698767/work
pathspec==0.7.0
patsy==0.5.2
pep8==1.7.1
pexpect @ file:///tmp/build/80754af9/pexpect_1605563209008/work
pickleshare @ file:///tmp/build/80754af9/pickleshare_1606932040724/work
Pillow==8.4.0
pipwin==0.5.1
pkginfo==1.7.1
pluggy @ file:///opt/concourse/worker/volumes/live/a2630e20-8422-46fc-7347-f73294368851/volume/pluggy_1615976601840/work
ply==3.11
poyo @ file:///tmp/build/80754af9/poyo_1617751526755/work
prokaryote==2.4.4
prometheus-client @ file:///tmp/build/80754af9/prometheus_client_1623189609245/work
prompt-toolkit @ file:///tmp/build/80754af9/prompt-toolkit_1633440160888/work
protobuf==3.19.4
psutil @ file:///opt/concourse/worker/volumes/live/da41f1b1-060b-47fa-4c17-557e069ead1d/volume/psutil_1612298011002/work
ptyprocess @ file:///tmp/build/80754af9/ptyprocess_1609355006118/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
py @ file:///tmp/build/80754af9/py_1607971587848/work
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycodestyle @ file:///tmp/build/80754af9/pycodestyle_1615748559966/work
pycosat==0.6.3
pycparser @ file:///tmp/build/80754af9/pycparser_1594388511720/work
pycurl==7.44.1
pydocstyle @ file:///tmp/build/80754af9/pydocstyle_1621600989141/work
pyerfa @ file:///opt/concourse/worker/volumes/live/fef1f482-1dec-42b9-4439-b8031d24ea69/volume/pyerfa_1621560786048/work
pyflakes @ file:///tmp/build/80754af9/pyflakes_1617200973297/work
Pygments @ file:///tmp/build/80754af9/pygments_1629234116488/work
pyimagej==1.0.2
pyjsparser==2.7.1
PyJWT @ file:///opt/concourse/worker/volumes/live/bd094316-1935-4bf0-5028-b889d4e7967c/volume/pyjwt_1619682501859/work
pylint @ file:///opt/concourse/worker/volumes/live/110f293a-445f-477b-4041-2e00ae784083/volume/pylint_1627536795404/work
pyls-spyder==0.4.0
pyodbc===4.0.0-unsupported
pyOpenSSL @ file:///tmp/build/80754af9/pyopenssl_1635333100036/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
PyPrind==2.11.3
pyrsistent @ file:///opt/concourse/worker/volumes/live/76cffa60-bd33-4155-4e83-ea03c38b1294/volume/pyrsistent_1636111020441/work
pySmartDL==1.3.4
PySocks @ file:///opt/concourse/worker/volumes/live/112288ac-9cb0-4e73-768b-13baf4ca6419/volume/pysocks_1605305820043/work
pytest==6.2.4
python-bioformats==4.0.5
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
python-javabridge==4.0.3
python-lsp-black @ file:///tmp/build/80754af9/python-lsp-black_1634232156041/work
python-lsp-jsonrpc==1.0.0
python-lsp-server==1.2.4
python-slugify @ file:///tmp/build/80754af9/python-slugify_1620405669636/work
pytz==2021.3
pytz-deprecation-shim==0.1.0.post0
PyWavelets @ file:///opt/concourse/worker/volumes/live/3cbb6155-7383-45e0-55bb-8641a92939f6/volume/pywavelets_1607645526758/work
PyYAML==6.0
pyzmq==18.0.1
QDarkStyle @ file:///tmp/build/80754af9/qdarkstyle_1617386714626/work
qstylizer @ file:///tmp/build/80754af9/qstylizer_1617713584600/work/dist/qstylizer-0.1.10-py2.py3-none-any.whl
QtAwesome @ file:///tmp/build/80754af9/qtawesome_1615991616277/work
qtconsole @ file:///tmp/build/80754af9/qtconsole_1632739723211/work
QtPy @ file:///tmp/build/80754af9/qtpy_1629397026935/work
regex @ file:///opt/concourse/worker/volumes/live/6d0c2188-eef5-45ba-7cde-604a70bbd9f2/volume/regex_1628063357190/work
requests @ file:///tmp/build/80754af9/requests_1629994808627/work
requests-oauthlib==1.3.1
rope @ file:///tmp/build/80754af9/rope_1623703006312/work
rsa==4.8
Rtree @ file:///opt/concourse/worker/volumes/live/18283f9b-719e-45b1-7f3a-937f49358be4/volume/rtree_1618420836397/work
ruamel-yaml-conda @ file:///opt/concourse/worker/volumes/live/e81cf0fe-611a-498e-6e69-a7320057c1ac/volume/ruamel_yaml_1616016689696/work
s3transfer==0.5.1
scikit-image==0.18.3
scikit-learn @ file:///opt/concourse/worker/volumes/live/83f46a43-da2a-467b-5581-ed2cbd128684/volume/scikit-learn_1621370403088/work
scikit-learn-intelex==2021.20210714.100439
scipy @ file:///opt/concourse/worker/volumes/live/8e481b15-67b8-4160-7a8b-26cd6e8fe54f/volume/scipy_1630606804826/work
scyjava==1.4.1
seaborn @ file:///tmp/build/80754af9/seaborn_1629307859561/work
Send2Trash @ file:///tmp/build/80754af9/send2trash_1632406701022/work
sentry-sdk==0.18.0
simplegeneric==0.8.1
singledispatch @ file:///tmp/build/80754af9/singledispatch_1629321204894/work
sip==4.19.13
six @ file:///tmp/build/80754af9/six_1623709665295/work
sniffio @ file:///opt/concourse/worker/volumes/live/38ca9e9e-09d1-4d43-5a0f-b546422e7807/volume/sniffio_1614030472707/work
snowballstemmer @ file:///tmp/build/80754af9/snowballstemmer_1611258885636/work
sortedcollections @ file:///tmp/build/80754af9/sortedcollections_1611172717284/work
sortedcontainers @ file:///tmp/build/80754af9/sortedcontainers_1623949099177/work
soupsieve @ file:///tmp/build/80754af9/soupsieve_1616183228191/work
Sphinx==4.2.0
sphinxcontrib-applehelp @ file:///home/ktietz/src/ci/sphinxcontrib-applehelp_1611920841464/work
sphinxcontrib-devhelp @ file:///home/ktietz/src/ci/sphinxcontrib-devhelp_1611920923094/work
sphinxcontrib-htmlhelp @ file:///tmp/build/80754af9/sphinxcontrib-htmlhelp_1623945626792/work
sphinxcontrib-jsmath @ file:///home/ktietz/src/ci/sphinxcontrib-jsmath_1611920942228/work
sphinxcontrib-qthelp @ file:///home/ktietz/src/ci/sphinxcontrib-qthelp_1611921055322/work
sphinxcontrib-serializinghtml @ file:///tmp/build/80754af9/sphinxcontrib-serializinghtml_1624451540180/work
sphinxcontrib-websupport @ file:///tmp/build/80754af9/sphinxcontrib-websupport_1597081412696/work
spyder @ file:///opt/concourse/worker/volumes/live/5ce630f9-babe-4f53-755a-cd7324c300d9/volume/spyder_1636480249527/work
spyder-kernels @ file:///opt/concourse/worker/volumes/live/72f0c5be-8b9e-43d2-67e5-f038915937d7/volume/spyder-kernels_1634236950410/work
SQLAlchemy @ file:///opt/concourse/worker/volumes/live/454d700c-0b8b-469e-7add-023d0df6ee3d/volume/sqlalchemy_1626948440911/work
statsmodels @ file:///opt/concourse/worker/volumes/live/237cf070-cf87-4ff8-6149-8213b5eb40a5/volume/statsmodels_1614023802257/work
sympy @ file:///opt/concourse/worker/volumes/live/5ed26665-a223-4942-7dc1-66b2b3830ab1/volume/sympy_1635237064989/work
tables @ file:///opt/concourse/worker/volumes/live/daa73f70-754b-4f28-73ce-6f96c40f4b9d/volume/pytables_1607975400838/work
TBB==0.2
tblib @ file:///Users/ktietz/demo/mc3/conda-bld/tblib_1629402031467/work
tensorboard==2.8.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==2.8.0
tensorflow-io-gcs-filesystem==0.24.0
termcolor==1.1.0
terminado==0.9.4
testpath @ file:///tmp/build/80754af9/testpath_1624638946665/work
text-unidecode @ file:///Users/ktietz/demo/mc3/conda-bld/text-unidecode_1629401354553/work
textdistance @ file:///tmp/build/80754af9/textdistance_1612461398012/work
tf-estimator-nightly==2.8.0.dev2021122109
threadpoolctl @ file:///Users/ktietz/demo/mc3/conda-bld/threadpoolctl_1629802263681/work
three-merge @ file:///tmp/build/80754af9/three-merge_1607553261110/work
tifffile @ file:///tmp/build/80754af9/tifffile_1627275862826/work
tinycss @ file:///tmp/build/80754af9/tinycss_1617713798712/work
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
toolz @ file:///home/linux1/recipes/ci/toolz_1610987900194/work
torch==1.10.2
tornado @ file:///opt/concourse/worker/volumes/live/2c1a63a2-006b-48ee-56b9-0cfe8b4927f9/volume/tornado_1606942321278/work
tqdm @ file:///tmp/build/80754af9/tqdm_1635330843403/work
traitlets @ file:///tmp/build/80754af9/traitlets_1632522747050/work
typed-ast @ file:///opt/concourse/worker/volumes/live/c2210c24-bb2d-4474-77f5-1bc9bf1cb79f/volume/typed-ast_1624953683856/work
typing-extensions @ file:///tmp/build/80754af9/typing_extensions_1631814937681/work
tzdata==2021.5
tzlocal==4.1
ujson @ file:///opt/concourse/worker/volumes/live/258fa87e-ec76-445c-5f9c-fc9523993cd7/volume/ujson_1611259511951/work
unicodecsv==0.14.1
Unidecode @ file:///tmp/build/80754af9/unidecode_1614712377438/work
urllib3==1.26.7
watchdog @ file:///opt/concourse/worker/volumes/live/3aa0e7d9-c795-4854-41fd-f0b2492c886a/volume/watchdog_1624955010200/work
wcwidth @ file:///Users/ktietz/demo/mc3/conda-bld/wcwidth_1629357192024/work
webencodings==0.5.1
Werkzeug @ file:///tmp/build/80754af9/werkzeug_1635505089296/work
whichcraft @ file:///tmp/build/80754af9/whichcraft_1617751293875/work
widgetsnbextension @ file:///opt/concourse/worker/volumes/live/42762d5a-6520-4b06-68a2-619dfed6a007/volume/widgetsnbextension_1607531500933/work
wrapt @ file:///opt/concourse/worker/volumes/live/1381ca3b-f984-4f5c-4f46-a67ca4eeffa5/volume/wrapt_1607574524589/work
wurlitzer @ file:///opt/concourse/worker/volumes/live/f0d9880a-118b-4ba3-7b92-3c5bb0f6c00b/volume/wurlitzer_1626947802781/work
wxPython==4.1.0
xarray==0.21.1
xlrd @ file:///tmp/build/80754af9/xlrd_1608072521494/work
XlsxWriter @ file:///tmp/build/80754af9/xlsxwriter_1628603415431/work
xlwings==0.24.9
xlwt==1.3.0
xmltodict @ file:///Users/ktietz/demo/mc3/conda-bld/xmltodict_1629301980723/work
yapf @ file:///tmp/build/80754af9/yapf_1615749224965/work
zict==2.0.0
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work
zope.event==4.5.0
zope.interface @ file:///opt/concourse/worker/volumes/live/8c2d4bd1-6406-47f0-45ce-890992bafbf6/volume/zope.interface_1625036159007/work
(base) alexrimmer@Alexs-MacBook-Pro ~ % 
              

Ok, so still having an issue using runcellpose. It appears that there might be a back compatability issue between CellProfiler 4.2.0 and cellpose. I get “ImportError: Numba needs Numpy 1.21 or less”.
image1736×502 109 KB

If I then downgrade to Numpy 1.21, CellProfiler will not open from terminal and I get this error “numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject”
image1738×626 135 KB

Thanks for the suggestion, @DStirling! I tried this without success, but I might be missing something. I reinstalled javabridge and then reinstalled cellpose, but I am still having the same problem. Are there any details I can provide that would make the current issues clearer? Thanks for all your help!

Sorry it’s been a while, another command to try:

First ensure you have the final desired version of numpy installed, then run
pip install javabridge --no-cache-dir --no-build-isolation

You may need to also do the same with the centrosome package

You probably need to re-install python javabridge - this has worked in the past in our hands (the last two shouldn’t be necessary if you already have cellprofiler and cellpose pip installed)

pip install numpy==1.21
pip install --force --no-deps python-javabridge
pip install cellprofiler
pip install cellpose
              

Thank you @bcimini for the suggestion. Unfortunately, still not working. See the error below.

Traceback (most recent call last):
File “c:\users\esperanza\documents\github\cellprofiler\cellprofiler\gui\app.py”, line 69, in OnInit
from .cpframe import CPFrame
File “c:\users\esperanza\documents\github\cellprofiler\cellprofiler\gui\cpframe.py”, line 25, in
from .workspace_model import Workspace
File “c:\users\esperanza\documents\github\cellprofiler\cellprofiler\gui_workspace_model.py”, line 8, in
import cellprofiler.gui.figure
File "c:\users\esperanza\documents\github\cellprofiler\cellprofiler\gui\figure_init
.py", line 1, in
from ._figure import Figure
File “c:\users\esperanza\documents\github\cellprofiler\cellprofiler\gui\figure_figure.py”, line 8, in
import centrosome.cpmorphology
File “C:\Users\Esperanza\My Documents\python venv\cellpose\lib\site-packages\centrosome\cpmorphology.py”, line 12, in
from ._cpmorphology2 import skeletonize_loop, table_lookup_index
File “centrosome_cpmorphology2.pyx”, line 1, in init centrosome._cpmorphology2
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
OnInit returned false, exiting…

Ah, same theory. Just add centrosome onto the list of things you’re force-reinstalling after setting your numpy version!

pip install numpy==1.21
pip install --force --no-deps python-javabridge centrosome
pip install cellprofiler
pip install cellpose
              

Thanks! Alas, same story.

Traceback (most recent call last):
  File "c:\users\radoslawgrochowski\documents\github\cellprofiler\cellprofiler\gui\app.py", line 69, in OnInit
    from .cpframe import CPFrame
  File "c:\users\radoslawgrochowski\documents\github\cellprofiler\cellprofiler\gui\cpframe.py", line 25, in <module>
    from ._workspace_model import Workspace
  File "c:\users\radoslawgrochowski\documents\github\cellprofiler\cellprofiler\gui\_workspace_model.py", line 8, in <module>
    import cellprofiler.gui.figure
  File "c:\users\radoslawgrochowski\documents\github\cellprofiler\cellprofiler\gui\figure\__init__.py", line 1, in <module>
    from ._figure import Figure
  File "c:\users\radoslawgrochowski\documents\github\cellprofiler\cellprofiler\gui\figure\_figure.py", line 8, in <module>
    import centrosome.cpmorphology
  File "C:\ProgramData\Anaconda3\envs\cellprofiler_pose\lib\site-packages\centrosome\cpmorphology.py", line 12, in <module>
    from ._cpmorphology2 import skeletonize_loop, table_lookup_index
  File "centrosome\_cpmorphology2.pyx", line 1, in init centrosome._cpmorphology2
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
OnInit returned false, exiting...
pip freeze
boto3==1.21.42
botocore==1.24.42
cellpose==2.0.4
-e CellProfiler==4.2.1
-e cellprofiler-core==4.2.1
centrosome==1.2.0
certifi==2021.10.8
charset-normalizer==2.0.12
colorama==0.4.4
cycler @ file:///tmp/build/80754af9/cycler_1637851556182/work
Cython==0.29.28
deprecation==2.1.0
docutils==0.15.2
fastremap==1.12.2
future==0.18.2
h5py==3.6.0
idna==3.3
imageio==2.16.2
inflect==5.5.2
Jinja2==3.1.1
jmespath==1.0.0
joblib==1.1.0
kiwisolver @ file:///C:/ci/kiwisolver_1644962567532/work
llvmlite==0.38.0
mahotas==1.4.12
MarkupSafe==2.1.1
matplotlib==3.1.3
mkl-fft==1.3.1
mkl-random @ file:///C:/ci/mkl_random_1626186184278/work
mkl-service==2.4.0
mysqlclient==1.4.6
natsort==8.1.0
networkx==2.8
numba==0.55.1
numpy==1.21.0
opencv-python-headless==4.5.5.64
packaging==21.3
Pillow==9.1.0
prokaryote==2.4.4
psutil==5.9.0
pycocotools==2.0.4
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
python-bioformats==4.0.5
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
python-javabridge==4.0.3
PyWavelets==1.3.0
pyzmq==22.3.0
requests==2.27.1
s3transfer==0.5.2
scikit-image==0.19.2
scikit-learn==1.0.2
scipy==1.8.0
sentry-sdk==0.18.0
sip==4.19.13
six @ file:///tmp/build/80754af9/six_1644875935023/work
threadpoolctl==3.1.0
tifffile==2022.4.8
torch==1.11.0
tornado @ file:///C:/ci/tornado_1606942392901/work
tqdm==4.64.0
typing_extensions==4.1.1
urllib3==1.26.9
wincertstore==0.2
wxPython==4.1.0
              

Hello,

I was stuck at the same point just now.
Had a virtual environment where the runCellpose with cellpose==0.6.5 ran on Cellprofiler 4.2.1
I tried to upgrade the Cellpose version, ran into the issue @radee2k describes.
I might have tried to upgrade the numpy version :thinking:.

Solution:

pip uninstall numpy
pip unistall python-javabridge
pip uninstall centrosome
pip install numpy==1.21
pip install python-javabridge --no-cache-dir --no-build-isolation
pip install centrosome --no-cache-dir --no-build-isolation

Whatever the reason behind all this is, but now it works and Cellprofiler starts from the command line (in the virtual environment).

Best of luck