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

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

Closed
AinzOwlGoan opened this issue Mar 14, 2021 · 22 comments

Comments

@AinzOwlGoan
Copy link

Description

Hello everyone, I'm trying to build a project using tensorflow but this error always appears:

Way to reproduce

 Tensorflow/models/research/object_detection/model_main_tf2.py --model_dir=Tensorflow/workspace/models/my_ssd_mobnet --pipeline_config_path=Tensorflow/workspace/models/my_ssd_mobnet/pipeline.config --num_train_steps=5000

Version information

3.8.8 (default, Feb 24 2021, 15:54:32) [MSC v.1928 64 bit (AMD64)]
Windows-10-10.0.19041-SP0
scikit-image version: 0.18.1
numpy version: 1.19.2
panda version: 0.3.1
Tensorflow: 2.4.1
Traceback (most recent call last):
  File "Tensorflow/models/research/object_detection/model_main_tf2.py", line 32, in <module>
    from object_detection import model_lib_v2
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\object_detection\model_lib_v2.py", line 29, in <module>
    from object_detection import eval_util
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\object_detection\eval_util.py", line 35, in <module>
    from object_detection.metrics import coco_evaluation
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\object_detection\metrics\coco_evaluation.py", line 25, in <module>
    from object_detection.metrics import coco_tools
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\object_detection\metrics\coco_tools.py", line 51, in <module>
    from pycocotools import coco
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\pycocotools\coco.py", line 55, in <module>
    from . import mask as maskUtils
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\pycocotools\mask.py", line 3, in <module>
    import pycocotools._mask as _mask
  File "pycocotools\_mask.pyx", line 1, in init pycocotools._mask
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
@hmaarrfk
Copy link
Member

My guess is that you installed packages from different sources. Some from pip, others from anaconda.

Can you explain how you sinatlled scikit image, bumpy, and tensor flow?

@AinzOwlGoan
Copy link
Author

My guess is that you installed packages from different sources. Some from pip, others from anaconda.

Can you explain how you sinatlled scikit image, bumpy, and tensor flow?

Fir tensorflow I sued this https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html

And for scikit, bumpy I used pip

@hmaarrfk
Copy link
Member

Can you provide the output of the commands:

pip list
conda list

@AinzOwlGoan
Copy link
Author

AinzOwlGoan commented Mar 15, 2021

Can you provide the output of the commands:

pip list
conda list

Sure,

pip list

Package                       Version
----------------------------- -----------
absl-py                       0.10.0
apache-beam                   2.28.0
argon2-cffi                   20.1.0
astunparse                    1.6.3
async-generator               1.10
attrs                         20.3.0
avro-python3                  1.9.2.1
backcall                      0.2.0
bleach                        3.3.0
cachetools                    4.2.1
certifi                       2020.12.5
cffi                          1.14.5
chardet                       4.0.0
colorama                      0.4.4
contextlib2                   0.6.0.post1
crcmod                        1.7
cycler                        0.10.0
Cython                        0.29.22
dataclasses                   0.6
decorator                     4.4.2
defusedxml                    0.7.1
dill                          0.3.1.1
dm-tree                       0.1.5
docopt                        0.6.2
entrypoints                   0.3
fastavro                      1.3.2
flatbuffers                   1.12
future                        0.18.2
gast                          0.3.3
gin-config                    0.4.0
google-api-core               1.26.1
google-api-python-client      2.0.2
google-auth                   1.27.1
google-auth-httplib2          0.1.0
google-auth-oauthlib          0.4.3
google-cloud-bigquery         2.11.0
google-cloud-core             1.6.0
google-crc32c                 1.1.2
google-pasta                  0.2.0
google-resumable-media        1.2.0
googleapis-common-protos      1.53.0
grpcio                        1.32.0
h5py                          2.10.0
hdfs                          2.6.0
httplib2                      0.17.4
idna                          2.10
imageio                       2.9.0
importlib-metadata            2.0.0
importlib-resources           5.1.2
ipykernel                     5.3.4
ipython                       7.21.0
ipython-genutils              0.2.0
ipywidgets                    7.6.3
jedi                          0.17.0
Jinja2                        2.11.3
joblib                        1.0.1
jsonschema                    3.2.0
jupyter                       1.0.0
jupyter-client                6.1.7
jupyter-console               6.2.0
jupyter-core                  4.7.1
jupyterlab-pygments           0.1.2
jupyterlab-widgets            1.0.0
kaggle                        1.5.12
Keras-Preprocessing           1.1.2
kiwisolver                    1.3.1
lvis                          0.5.3
lxml                          4.6.2
Markdown                      3.3.4
MarkupSafe                    1.1.1
matplotlib                    3.3.4
mistune                       0.8.4
mock                          2.0.0
mpmath                        1.2.1
nbclient                      0.5.3
nbconvert                     6.0.7
nbformat                      5.1.2
nest-asyncio                  1.5.1
networkx                      2.5
nose                          1.3.7
notebook                      6.2.0
numpy                         1.19.2
oauth2client                  4.1.3
oauthlib                      3.1.0
object-detection              0.1
opencv-python                 4.5.1.48
opencv-python-headless        4.5.1.48
opt-einsum                    3.3.0
packaging                     20.9
panda                         0.3.1
pandas                        1.2.3
pandocfilters                 1.4.3
parso                         0.8.1
pbr                           5.5.1
pickleshare                   0.7.5
Pillow                        8.1.2
pip                           21.0.1
prometheus-client             0.9.0
promise                       2.3
prompt-toolkit                3.0.8
proto-plus                    1.17.0
protobuf                      3.15.6
psutil                        5.8.0
py-cpuinfo                    7.0.0
pyarrow                       2.0.0
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pycocotools                   2.0.2
pycparser                     2.20
pydot                         1.4.2
Pygments                      2.8.1
pymongo                       3.11.3
pyparsing                     2.4.7
pyrsistent                    0.17.3
python-dateutil               2.8.1
python-slugify                4.0.1
pytz                          2021.1
PyWavelets                    1.1.1
pywin32                       227
pywinpty                      0.5.7
PyYAML                        5.4.1
pyzmq                         20.0.0
qtconsole                     5.0.2
QtPy                          1.9.0
requests                      2.25.1
requests-oauthlib             1.3.0
rsa                           4.7.2
scikit-image                  0.18.1
scikit-learn                  0.24.1
scipy                         1.6.1
Send2Trash                    1.5.0
sentencepiece                 0.1.95
seqeval                       1.2.2
setuptools                    54.1.1
sip                           4.19.13
six                           1.15.0
sympy                         1.7.1
tensorboard                   2.4.1
tensorboard-plugin-wit        1.8.0
tensorflow                    2.4.1
tensorflow-addons             0.12.1
tensorflow-datasets           4.2.0
tensorflow-estimator          2.4.0
tensorflow-hub                0.11.0
tensorflow-metadata           0.28.0
tensorflow-model-optimization 0.5.0
termcolor                     1.1.0
terminado                     0.9.2
testpath                      0.4.4
text-unidecode                1.3
tf-models-official            2.4.0
tf-slim                       1.1.0
threadpoolctl                 2.1.0
tifffile                      2021.3.5
tornado                       6.1
tqdm                          4.59.0
traitlets                     5.0.5
typeguard                     2.11.1
typing-extensions             3.7.4.3
uritemplate                   3.0.1
urllib3                       1.26.3
wcwidth                       0.2.5
webencodings                  0.5.1
Werkzeug                      1.0.1
wheel                         0.36.2
widgetsnbextension            3.5.1
wincertstore                  0.2
wrapt                         1.12.1
zipp                          3.4.0

conda list

# Name                    Version                   Build  Channel
absl-py                   0.10.0                   pypi_0    pypi
apache-beam               2.28.0                   pypi_0    pypi
argon2-cffi               20.1.0           py38h2bbff1b_1
astunparse                1.6.3                    pypi_0    pypi
async_generator           1.10               pyhd3eb1b0_0
attrs                     20.3.0             pyhd3eb1b0_0
avro-python3              1.9.2.1                  pypi_0    pypi
backcall                  0.2.0              pyhd3eb1b0_0
bleach                    3.3.0              pyhd3eb1b0_0
ca-certificates           2021.1.19            haa95532_1
cachetools                4.2.1                    pypi_0    pypi
certifi                   2020.12.5                pypi_0    pypi
cffi                      1.14.5           py38hcd4344a_0
chardet                   4.0.0                    pypi_0    pypi
colorama                  0.4.4              pyhd3eb1b0_0
contextlib2               0.6.0.post1              pypi_0    pypi
crcmod                    1.7                      pypi_0    pypi
cycler                    0.10.0                   pypi_0    pypi
cython                    0.29.22                  pypi_0    pypi
dataclasses               0.6                      pypi_0    pypi
decorator                 4.4.2              pyhd3eb1b0_0
defusedxml                0.7.1              pyhd3eb1b0_0
dill                      0.3.1.1                  pypi_0    pypi
dm-tree                   0.1.5                    pypi_0    pypi
docopt                    0.6.2                    pypi_0    pypi
entrypoints               0.3                      py38_0
fastavro                  1.3.2                    pypi_0    pypi
flatbuffers               1.12                     pypi_0    pypi
future                    0.18.2                   pypi_0    pypi
gast                      0.3.3                    pypi_0    pypi
gin-config                0.4.0                    pypi_0    pypi
google-api-core           1.26.1                   pypi_0    pypi
google-api-python-client  2.0.2                    pypi_0    pypi
google-auth               1.27.1                   pypi_0    pypi
google-auth-httplib2      0.1.0                    pypi_0    pypi
google-auth-oauthlib      0.4.3                    pypi_0    pypi
google-cloud-bigquery     2.11.0                   pypi_0    pypi
google-cloud-core         1.6.0                    pypi_0    pypi
google-crc32c             1.1.2                    pypi_0    pypi
google-pasta              0.2.0                    pypi_0    pypi
google-resumable-media    1.2.0                    pypi_0    pypi
googleapis-common-protos  1.53.0                   pypi_0    pypi
grpcio                    1.32.0                   pypi_0    pypi
h5py                      2.10.0                   pypi_0    pypi
hdfs                      2.6.0                    pypi_0    pypi
httplib2                  0.17.4                   pypi_0    pypi
icu                       58.2                 ha925a31_3
idna                      2.10                     pypi_0    pypi
imageio                   2.9.0                    pypi_0    pypi
importlib-metadata        2.0.0                      py_1
importlib-resources       5.1.2                    pypi_0    pypi
importlib_metadata        2.0.0                         1
ipykernel                 5.3.4            py38h5ca1d4c_0
ipython                   7.21.0           py38hd4e2768_0
ipython_genutils          0.2.0              pyhd3eb1b0_1
ipywidgets                7.6.3              pyhd3eb1b0_1
jedi                      0.17.0                   py38_0
jinja2                    2.11.3             pyhd3eb1b0_0
joblib                    1.0.1                    pypi_0    pypi
jpeg                      9b                   hb83a4c4_2
jsonschema                3.2.0                      py_2
jupyter                   1.0.0                    py38_7
jupyter_client            6.1.7                      py_0
jupyter_console           6.2.0                      py_0
jupyter_core              4.7.1            py38haa95532_0
jupyterlab_pygments       0.1.2                      py_0
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1
kaggle                    1.5.12                   pypi_0    pypi
keras-preprocessing       1.1.2                    pypi_0    pypi
kiwisolver                1.3.1                    pypi_0    pypi
libpng                    1.6.37               h2a8f88b_0
libsodium                 1.0.18               h62dcd97_0
lvis                      0.5.3                    pypi_0    pypi
lxml                      4.6.2                    pypi_0    pypi
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gmp                 6.1.0                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markdown                  3.3.4                    pypi_0    pypi
markupsafe                1.1.1            py38he774522_0
matplotlib                3.3.4                    pypi_0    pypi
mistune                   0.8.4           py38he774522_1000
mock                      2.0.0                    pypi_0    pypi
msys2-conda-epoch         20160418                      1
nbclient                  0.5.3              pyhd3eb1b0_0
nbconvert                 6.0.7                    py38_0
nbformat                  5.1.2              pyhd3eb1b0_1
nest-asyncio              1.5.1              pyhd3eb1b0_0
networkx                  2.5                      pypi_0    pypi
notebook                  6.2.0            py38haa95532_0
numpy                     1.19.2                   pypi_0    pypi
oauth2client              4.1.3                    pypi_0    pypi
oauthlib                  3.1.0                    pypi_0    pypi
object-detection          0.1                      pypi_0    pypi
opencv-python             4.5.1.48                 pypi_0    pypi
opencv-python-headless    4.5.1.48                 pypi_0    pypi
openssl                   1.1.1j               h2bbff1b_0
opt-einsum                3.3.0                    pypi_0    pypi
packaging                 20.9               pyhd3eb1b0_0
panda                     0.3.1                    pypi_0    pypi
pandas                    1.2.3                    pypi_0    pypi
pandoc                    2.11                 h9490d1a_0
pandocfilters             1.4.3            py38haa95532_1
parso                     0.8.1              pyhd3eb1b0_0
pbr                       5.5.1                    pypi_0    pypi
pickleshare               0.7.5           pyhd3eb1b0_1003
pillow                    8.1.2                    pypi_0    pypi
pip                       21.0.1           py38haa95532_0
prometheus_client         0.9.0              pyhd3eb1b0_0
promise                   2.3                      pypi_0    pypi
prompt-toolkit            3.0.8                      py_0
prompt_toolkit            3.0.8                         0
proto-plus                1.17.0                   pypi_0    pypi
protobuf                  3.15.6                   pypi_0    pypi
psutil                    5.8.0                    pypi_0    pypi
py-cpuinfo                7.0.0                    pypi_0    pypi
pyarrow                   2.0.0                    pypi_0    pypi
pyasn1                    0.4.8                    pypi_0    pypi
pyasn1-modules            0.2.8                    pypi_0    pypi
pycocotools               2.0.2                    pypi_0    pypi
pycparser                 2.20                       py_2
pydot                     1.4.2                    pypi_0    pypi
pygments                  2.8.1              pyhd3eb1b0_0
pymongo                   3.11.3                   pypi_0    pypi
pyparsing                 2.4.7              pyhd3eb1b0_0
pyqt                      5.9.2            py38ha925a31_4
pyrsistent                0.17.3           py38he774522_0
python                    3.8.8                hdbf39b2_4
python-dateutil           2.8.1              pyhd3eb1b0_0
python-slugify            4.0.1                    pypi_0    pypi
pytz                      2021.1                   pypi_0    pypi
pywavelets                1.1.1                    pypi_0    pypi
pywin32                   227              py38he774522_1
pywinpty                  0.5.7                    py38_0
pyyaml                    5.4.1                    pypi_0    pypi
pyzmq                     20.0.0           py38hd77b12b_1
qt                        5.9.7            vc14h73c81de_0
qtconsole                 5.0.2              pyhd3eb1b0_0
qtpy                      1.9.0                      py_0
requests                  2.25.1                   pypi_0    pypi
requests-oauthlib         1.3.0                    pypi_0    pypi
rsa                       4.7.2                    pypi_0    pypi
scikit-image              0.18.1                   pypi_0    pypi
scikit-learn              0.24.1                   pypi_0    pypi
send2trash                1.5.0              pyhd3eb1b0_1
sentencepiece             0.1.95                   pypi_0    pypi
seqeval                   1.2.2                    pypi_0    pypi
setuptools                54.1.1                   pypi_0    pypi
sip                       4.19.13          py38ha925a31_0
six                       1.15.0           py38haa95532_0
sqlite                    3.33.0               h2a8f88b_0
tensorboard               2.4.1                    pypi_0    pypi
tensorboard-plugin-wit    1.8.0                    pypi_0    pypi
tensorflow                2.4.1                    pypi_0    pypi
tensorflow-addons         0.12.1                   pypi_0    pypi
tensorflow-datasets       4.2.0                    pypi_0    pypi
tensorflow-estimator      2.4.0                    pypi_0    pypi
tensorflow-hub            0.11.0                   pypi_0    pypi
tensorflow-metadata       0.28.0                   pypi_0    pypi
tensorflow-model-optimization 0.5.0                    pypi_0    pypi
termcolor                 1.1.0                    pypi_0    pypi
terminado                 0.9.2            py38haa95532_0
testpath                  0.4.4              pyhd3eb1b0_0
text-unidecode            1.3                      pypi_0    pypi
tf-models-official        2.4.0                    pypi_0    pypi
tf-slim                   1.1.0                    pypi_0    pypi
threadpoolctl             2.1.0                    pypi_0    pypi
tifffile                  2021.3.5                 pypi_0    pypi
tornado                   6.1              py38h2bbff1b_0
tqdm                      4.59.0                   pypi_0    pypi
traitlets                 5.0.5              pyhd3eb1b0_0
typeguard                 2.11.1                   pypi_0    pypi
typing-extensions         3.7.4.3                  pypi_0    pypi
uritemplate               3.0.1                    pypi_0    pypi
urllib3                   1.26.3                   pypi_0    pypi
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wcwidth                   0.2.5                      py_0
webencodings              0.5.1                    py38_1
werkzeug                  1.0.1                    pypi_0    pypi
wheel                     0.36.2                   pypi_0    pypi
widgetsnbextension        3.5.1                    py38_0
wincertstore              0.2                      py38_0
winpty                    0.4.3                         4
wrapt                     1.12.1                   pypi_0    pypi
zeromq                    4.3.3                ha925a31_3
zipp                      3.4.0              pyhd3eb1b0_0
zlib                      1.2.11               h62dcd97_4

@hmaarrfk
Copy link
Member

The only strange thing I see in the conda list command is the presence of some packages like jupiter and iputhon as well as pyqt that are installed via conda.

Could you:
Create a new environment with python 3.8.
Install tensor flow via pip
Try importing it
Then install scikit image via pip
Try importing it.
Then install jupiter if you need it.
Try importing it.

And report

@AinzOwlGoan
Copy link
Author

Hello, i've tried what you have suggested but the error still remain

@hmaarrfk
Copy link
Member

How far along down the testing procedure did you get to?

Cna you show me the current output of

conda list
pip list

@AinzOwlGoan
Copy link
Author

I did everything, i'll now show you the current output

Conda list

# Name                    Version                   Build  Channel
absl-py                   0.10.0                   pypi_0    pypi
apache-beam               2.28.0                   pypi_0    pypi
argon2-cffi               20.1.0           py38h2bbff1b_1
astunparse                1.6.3                    pypi_0    pypi
async_generator           1.10               pyhd3eb1b0_0
attrs                     20.3.0             pyhd3eb1b0_0
avro-python3              1.9.2.1                  pypi_0    pypi
backcall                  0.2.0              pyhd3eb1b0_0
bleach                    3.3.0              pyhd3eb1b0_0
ca-certificates           2021.1.19            haa95532_1
cachetools                4.2.1                    pypi_0    pypi
certifi                   2020.12.5        py38haa95532_0
cffi                      1.14.5           py38hcd4344a_0
chardet                   4.0.0                    pypi_0    pypi
colorama                  0.4.4              pyhd3eb1b0_0
contextlib2               0.6.0.post1              pypi_0    pypi
crcmod                    1.7                      pypi_0    pypi
cycler                    0.10.0                   pypi_0    pypi
cython                    0.29.22                  pypi_0    pypi
dataclasses               0.6                      pypi_0    pypi
decorator                 4.4.2              pyhd3eb1b0_0
defusedxml                0.7.1              pyhd3eb1b0_0
dill                      0.3.1.1                  pypi_0    pypi
dm-tree                   0.1.5                    pypi_0    pypi
docopt                    0.6.2                    pypi_0    pypi
entrypoints               0.3                      pypi_0    pypi
fastavro                  1.3.3                    pypi_0    pypi
flatbuffers               1.12                     pypi_0    pypi
future                    0.18.2                   pypi_0    pypi
gast                      0.3.3                    pypi_0    pypi
gin-config                0.4.0                    pypi_0    pypi
google-api-core           1.26.1                   pypi_0    pypi
google-api-python-client  2.0.2                    pypi_0    pypi
google-auth               1.28.0                   pypi_0    pypi
google-auth-httplib2      0.1.0                    pypi_0    pypi
google-auth-oauthlib      0.4.3                    pypi_0    pypi
google-cloud-bigquery     2.12.0                   pypi_0    pypi
google-cloud-core         1.6.0                    pypi_0    pypi
google-crc32c             1.1.2                    pypi_0    pypi
google-pasta              0.2.0                    pypi_0    pypi
google-resumable-media    1.2.0                    pypi_0    pypi
googleapis-common-protos  1.53.0                   pypi_0    pypi
grpcio                    1.32.0                   pypi_0    pypi
h5py                      2.10.0                   pypi_0    pypi
hdfs                      2.6.0                    pypi_0    pypi
httplib2                  0.17.4                   pypi_0    pypi
icu                       58.2                 ha925a31_3
idna                      2.10                     pypi_0    pypi
imageio                   2.9.0                    pypi_0    pypi
importlib-metadata        3.7.3            py38haa95532_1
importlib-resources       5.1.2                    pypi_0    pypi
importlib_metadata        3.7.3                hd3eb1b0_1
ipykernel                 5.5.0                    pypi_0    pypi
ipython                   7.21.0           py38hd4e2768_0
ipython_genutils          0.2.0              pyhd3eb1b0_1
ipywidgets                7.6.3              pyhd3eb1b0_1
jedi                      0.18.0                   pypi_0    pypi
jinja2                    2.11.3             pyhd3eb1b0_0
joblib                    1.0.1                    pypi_0    pypi
jpeg                      9b                   hb83a4c4_2
jsonschema                3.2.0                      py_2
jupyter                   1.0.0                    py38_7
jupyter-client            6.1.12                   pypi_0    pypi
jupyter-console           6.3.0                    pypi_0    pypi
jupyter_client            6.1.7                      py_0
jupyter_console           6.2.0                      py_0
jupyter_core              4.7.1            py38haa95532_0
jupyterlab_pygments       0.1.2                      py_0
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1
kaggle                    1.5.12                   pypi_0    pypi
keras-preprocessing       1.1.2                    pypi_0    pypi
kiwisolver                1.3.1                    pypi_0    pypi
libpng                    1.6.37               h2a8f88b_0
libsodium                 1.0.18               h62dcd97_0
lvis                      0.5.3                    pypi_0    pypi
lxml                      4.6.2                    pypi_0    pypi
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gmp                 6.1.0                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markdown                  3.3.4                    pypi_0    pypi
markupsafe                1.1.1            py38he774522_0
matplotlib                3.3.4                    pypi_0    pypi
mistune                   0.8.4           py38he774522_1000
mock                      2.0.0                    pypi_0    pypi
msys2-conda-epoch         20160418                      1
nbclient                  0.5.3              pyhd3eb1b0_0
nbconvert                 6.0.7                    py38_0
nbformat                  5.1.2              pyhd3eb1b0_1
nest-asyncio              1.5.1              pyhd3eb1b0_0
networkx                  2.5                      pypi_0    pypi
notebook                  6.2.0            py38haa95532_0
numpy                     1.19.5                   pypi_0    pypi
oauth2client              4.1.3                    pypi_0    pypi
oauthlib                  3.1.0                    pypi_0    pypi
object-detection          0.1                      pypi_0    pypi
opencv-python             4.5.1.48                 pypi_0    pypi
opencv-python-headless    4.5.1.48                 pypi_0    pypi
openssl                   1.1.1j               h2bbff1b_0
opt-einsum                3.3.0                    pypi_0    pypi
packaging                 20.9               pyhd3eb1b0_0
pandas                    1.2.3                    pypi_0    pypi
pandoc                    2.12                 haa95532_0
pandocfilters             1.4.3            py38haa95532_1
parso                     0.8.1              pyhd3eb1b0_0
pbr                       5.5.1                    pypi_0    pypi
pickleshare               0.7.5           pyhd3eb1b0_1003
pillow                    8.1.2                    pypi_0    pypi
pip                       21.0.1           py38haa95532_0
prometheus_client         0.9.0              pyhd3eb1b0_0
promise                   2.3                      pypi_0    pypi
prompt-toolkit            3.0.17                   pypi_0    pypi
prompt_toolkit            3.0.8                         0
proto-plus                1.18.0                   pypi_0    pypi
protobuf                  3.15.6                   pypi_0    pypi
psutil                    5.8.0                    pypi_0    pypi
py-cpuinfo                7.0.0                    pypi_0    pypi
pyarrow                   2.0.0                    pypi_0    pypi
pyasn1                    0.4.8                    pypi_0    pypi
pyasn1-modules            0.2.8                    pypi_0    pypi
pycocotools               2.0.2                    pypi_0    pypi
pycparser                 2.20                       py_2
pydot                     1.4.2                    pypi_0    pypi
pygments                  2.8.1              pyhd3eb1b0_0
pymongo                   3.11.3                   pypi_0    pypi
pyparsing                 2.4.7              pyhd3eb1b0_0
pyqt                      5.9.2            py38ha925a31_4
pyrsistent                0.17.3           py38he774522_0
python                    3.8.8                hdbf39b2_4
python-dateutil           2.8.1              pyhd3eb1b0_0
python-slugify            4.0.1                    pypi_0    pypi
pytz                      2021.1                   pypi_0    pypi
pywavelets                1.1.1                    pypi_0    pypi
pywin32                   300                      pypi_0    pypi
pywinpty                  0.5.7                    py38_0
pyyaml                    5.4.1                    pypi_0    pypi
pyzmq                     22.0.3                   pypi_0    pypi
qt                        5.9.7            vc14h73c81de_0
qtconsole                 5.0.3                    pypi_0    pypi
qtpy                      1.9.0                      py_0
requests                  2.25.1                   pypi_0    pypi
requests-oauthlib         1.3.0                    pypi_0    pypi
rsa                       4.7.2                    pypi_0    pypi
scikit-image              0.18.1                   pypi_0    pypi
scikit-learn              0.24.1                   pypi_0    pypi
send2trash                1.5.0              pyhd3eb1b0_1
sentencepiece             0.1.95                   pypi_0    pypi
seqeval                   1.2.2                    pypi_0    pypi
setuptools                52.0.0           py38haa95532_0
sip                       4.19.13          py38ha925a31_0
six                       1.15.0           py38haa95532_0
sqlite                    3.35.1               h2bbff1b_0
tensorboard               2.4.1                    pypi_0    pypi
tensorboard-plugin-wit    1.8.0                    pypi_0    pypi
tensorflow                2.4.1                    pypi_0    pypi
tensorflow-addons         0.12.1                   pypi_0    pypi
tensorflow-datasets       4.2.0                    pypi_0    pypi
tensorflow-estimator      2.4.0                    pypi_0    pypi
tensorflow-hub            0.11.0                   pypi_0    pypi
tensorflow-metadata       0.28.0                   pypi_0    pypi
tensorflow-model-optimization 0.5.0                    pypi_0    pypi
termcolor                 1.1.0                    pypi_0    pypi
terminado                 0.9.3                    pypi_0    pypi
testpath                  0.4.4              pyhd3eb1b0_0
text-unidecode            1.3                      pypi_0    pypi
tf-models-official        2.4.0                    pypi_0    pypi
tf-slim                   1.1.0                    pypi_0    pypi
threadpoolctl             2.1.0                    pypi_0    pypi
tifffile                  2021.3.16                pypi_0    pypi
tornado                   6.1              py38h2bbff1b_0
tqdm                      4.59.0                   pypi_0    pypi
traitlets                 5.0.5              pyhd3eb1b0_0
typeguard                 2.11.1                   pypi_0    pypi
typing-extensions         3.7.4.3                  pypi_0    pypi
uritemplate               3.0.1                    pypi_0    pypi
urllib3                   1.26.4                   pypi_0    pypi
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wcwidth                   0.2.5                      py_0
webencodings              0.5.1                    pypi_0    pypi
werkzeug                  1.0.1                    pypi_0    pypi
wheel                     0.36.2             pyhd3eb1b0_0
widgetsnbextension        3.5.1                    py38_0
wincertstore              0.2                      py38_0
winpty                    0.4.3                         4
wrapt                     1.12.1                   pypi_0    pypi
zeromq                    4.3.3                ha925a31_3
zipp                      3.4.1              pyhd3eb1b0_0
zlib                      1.2.11               h62dcd97_4

Pip list

Package                       Version
----------------------------- -------------------
absl-py                       0.10.0
apache-beam                   2.28.0
argon2-cffi                   20.1.0
astunparse                    1.6.3
async-generator               1.10
attrs                         20.3.0
avro-python3                  1.9.2.1
backcall                      0.2.0
bleach                        3.3.0
cachetools                    4.2.1
certifi                       2020.12.5
cffi                          1.14.5
chardet                       4.0.0
colorama                      0.4.4
contextlib2                   0.6.0.post1
crcmod                        1.7
cycler                        0.10.0
Cython                        0.29.22
dataclasses                   0.6
decorator                     4.4.2
defusedxml                    0.7.1
dill                          0.3.1.1
dm-tree                       0.1.5
docopt                        0.6.2
entrypoints                   0.3
fastavro                      1.3.3
flatbuffers                   1.12
future                        0.18.2
gast                          0.3.3
gin-config                    0.4.0
google-api-core               1.26.1
google-api-python-client      2.0.2
google-auth                   1.28.0
google-auth-httplib2          0.1.0
google-auth-oauthlib          0.4.3
google-cloud-bigquery         2.12.0
google-cloud-core             1.6.0
google-crc32c                 1.1.2
google-pasta                  0.2.0
google-resumable-media        1.2.0
googleapis-common-protos      1.53.0
grpcio                        1.32.0
h5py                          2.10.0
hdfs                          2.6.0
httplib2                      0.17.4
idna                          2.10
imageio                       2.9.0
importlib-metadata            3.7.3
importlib-resources           5.1.2
ipykernel                     5.5.0
ipython                       7.21.0
ipython-genutils              0.2.0
ipywidgets                    7.6.3
jedi                          0.18.0
Jinja2                        2.11.3
joblib                        1.0.1
jsonschema                    3.2.0
jupyter                       1.0.0
jupyter-client                6.1.12
jupyter-console               6.3.0
jupyter-core                  4.7.1
jupyterlab-pygments           0.1.2
jupyterlab-widgets            1.0.0
kaggle                        1.5.12
Keras-Preprocessing           1.1.2
kiwisolver                    1.3.1
lvis                          0.5.3
lxml                          4.6.2
Markdown                      3.3.4
MarkupSafe                    1.1.1
matplotlib                    3.3.4
mistune                       0.8.4
mock                          2.0.0
mpmath                        1.2.1
nbclient                      0.5.3
nbconvert                     6.0.7
nbformat                      5.1.2
nest-asyncio                  1.5.1
networkx                      2.5
nose                          1.3.7
notebook                      6.2.0
numpy                         1.19.5
oauth2client                  4.1.3
oauthlib                      3.1.0
object-detection              0.1
opencv-python                 4.5.1.48
opencv-python-headless        4.5.1.48
opt-einsum                    3.3.0
packaging                     20.9
pandas                        1.2.3
pandocfilters                 1.4.3
parso                         0.8.1
pbr                           5.5.1
pickleshare                   0.7.5
Pillow                        8.1.2
pip                           21.0.1
prometheus-client             0.9.0
promise                       2.3
prompt-toolkit                3.0.17
proto-plus                    1.18.0
protobuf                      3.15.6
psutil                        5.8.0
py-cpuinfo                    7.0.0
pyarrow                       2.0.0
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pycocotools                   2.0.2
pycparser                     2.20
pydot                         1.4.2
Pygments                      2.8.1
pymongo                       3.11.3
pyparsing                     2.4.7
pyrsistent                    0.17.3
python-dateutil               2.8.1
python-slugify                4.0.1
pytz                          2021.1
PyWavelets                    1.1.1
pywin32                       300
pywinpty                      0.5.7
PyYAML                        5.4.1
pyzmq                         22.0.3
qtconsole                     5.0.3
QtPy                          1.9.0
requests                      2.25.1
requests-oauthlib             1.3.0
rsa                           4.7.2
scikit-image                  0.18.1
scikit-learn                  0.24.1
scipy                         1.6.1
Send2Trash                    1.5.0
sentencepiece                 0.1.95
seqeval                       1.2.2
setuptools                    52.0.0.post20210125
sip                           4.19.13
six                           1.15.0
sympy                         1.7.1
tensorboard                   2.4.1
tensorboard-plugin-wit        1.8.0
tensorflow                    2.4.1
tensorflow-addons             0.12.1
tensorflow-datasets           4.2.0
tensorflow-estimator          2.4.0
tensorflow-hub                0.11.0
tensorflow-metadata           0.28.0
tensorflow-model-optimization 0.5.0
termcolor                     1.1.0
terminado                     0.9.3
testpath                      0.4.4
text-unidecode                1.3
tf-models-official            2.4.0
tf-slim                       1.1.0
threadpoolctl                 2.1.0
tifffile                      2021.3.16
tornado                       6.1
tqdm                          4.59.0
traitlets                     5.0.5
typeguard                     2.11.1
typing-extensions             3.7.4.3
uritemplate                   3.0.1
urllib3                       1.26.4
wcwidth                       0.2.5
webencodings                  0.5.1
Werkzeug                      1.0.1
wheel                         0.36.2
widgetsnbextension            3.5.1
wincertstore                  0.2
wrapt                         1.12.1
zipp                          3.4.1

@hmaarrfk
Copy link
Member

I'm sorry, I just noticed that your error seems to be originating from pycocotools. I'm not sure what that package is or how it relates to scikit-image. Can you elaborate on your usecase.

If:

conda create --name sk python=3.8
conda activate sk
pip install scikit-image

works, that is as far as we can help.

@linyingyingkarina
Copy link

I did everything, i'll now show you the current output

Conda list

# Name                    Version                   Build  Channel
absl-py                   0.10.0                   pypi_0    pypi
apache-beam               2.28.0                   pypi_0    pypi
argon2-cffi               20.1.0           py38h2bbff1b_1
astunparse                1.6.3                    pypi_0    pypi
async_generator           1.10               pyhd3eb1b0_0
attrs                     20.3.0             pyhd3eb1b0_0
avro-python3              1.9.2.1                  pypi_0    pypi
backcall                  0.2.0              pyhd3eb1b0_0
bleach                    3.3.0              pyhd3eb1b0_0
ca-certificates           2021.1.19            haa95532_1
cachetools                4.2.1                    pypi_0    pypi
certifi                   2020.12.5        py38haa95532_0
cffi                      1.14.5           py38hcd4344a_0
chardet                   4.0.0                    pypi_0    pypi
colorama                  0.4.4              pyhd3eb1b0_0
contextlib2               0.6.0.post1              pypi_0    pypi
crcmod                    1.7                      pypi_0    pypi
cycler                    0.10.0                   pypi_0    pypi
cython                    0.29.22                  pypi_0    pypi
dataclasses               0.6                      pypi_0    pypi
decorator                 4.4.2              pyhd3eb1b0_0
defusedxml                0.7.1              pyhd3eb1b0_0
dill                      0.3.1.1                  pypi_0    pypi
dm-tree                   0.1.5                    pypi_0    pypi
docopt                    0.6.2                    pypi_0    pypi
entrypoints               0.3                      pypi_0    pypi
fastavro                  1.3.3                    pypi_0    pypi
flatbuffers               1.12                     pypi_0    pypi
future                    0.18.2                   pypi_0    pypi
gast                      0.3.3                    pypi_0    pypi
gin-config                0.4.0                    pypi_0    pypi
google-api-core           1.26.1                   pypi_0    pypi
google-api-python-client  2.0.2                    pypi_0    pypi
google-auth               1.28.0                   pypi_0    pypi
google-auth-httplib2      0.1.0                    pypi_0    pypi
google-auth-oauthlib      0.4.3                    pypi_0    pypi
google-cloud-bigquery     2.12.0                   pypi_0    pypi
google-cloud-core         1.6.0                    pypi_0    pypi
google-crc32c             1.1.2                    pypi_0    pypi
google-pasta              0.2.0                    pypi_0    pypi
google-resumable-media    1.2.0                    pypi_0    pypi
googleapis-common-protos  1.53.0                   pypi_0    pypi
grpcio                    1.32.0                   pypi_0    pypi
h5py                      2.10.0                   pypi_0    pypi
hdfs                      2.6.0                    pypi_0    pypi
httplib2                  0.17.4                   pypi_0    pypi
icu                       58.2                 ha925a31_3
idna                      2.10                     pypi_0    pypi
imageio                   2.9.0                    pypi_0    pypi
importlib-metadata        3.7.3            py38haa95532_1
importlib-resources       5.1.2                    pypi_0    pypi
importlib_metadata        3.7.3                hd3eb1b0_1
ipykernel                 5.5.0                    pypi_0    pypi
ipython                   7.21.0           py38hd4e2768_0
ipython_genutils          0.2.0              pyhd3eb1b0_1
ipywidgets                7.6.3              pyhd3eb1b0_1
jedi                      0.18.0                   pypi_0    pypi
jinja2                    2.11.3             pyhd3eb1b0_0
joblib                    1.0.1                    pypi_0    pypi
jpeg                      9b                   hb83a4c4_2
jsonschema                3.2.0                      py_2
jupyter                   1.0.0                    py38_7
jupyter-client            6.1.12                   pypi_0    pypi
jupyter-console           6.3.0                    pypi_0    pypi
jupyter_client            6.1.7                      py_0
jupyter_console           6.2.0                      py_0
jupyter_core              4.7.1            py38haa95532_0
jupyterlab_pygments       0.1.2                      py_0
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1
kaggle                    1.5.12                   pypi_0    pypi
keras-preprocessing       1.1.2                    pypi_0    pypi
kiwisolver                1.3.1                    pypi_0    pypi
libpng                    1.6.37               h2a8f88b_0
libsodium                 1.0.18               h62dcd97_0
lvis                      0.5.3                    pypi_0    pypi
lxml                      4.6.2                    pypi_0    pypi
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gmp                 6.1.0                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markdown                  3.3.4                    pypi_0    pypi
markupsafe                1.1.1            py38he774522_0
matplotlib                3.3.4                    pypi_0    pypi
mistune                   0.8.4           py38he774522_1000
mock                      2.0.0                    pypi_0    pypi
msys2-conda-epoch         20160418                      1
nbclient                  0.5.3              pyhd3eb1b0_0
nbconvert                 6.0.7                    py38_0
nbformat                  5.1.2              pyhd3eb1b0_1
nest-asyncio              1.5.1              pyhd3eb1b0_0
networkx                  2.5                      pypi_0    pypi
notebook                  6.2.0            py38haa95532_0
numpy                     1.19.5                   pypi_0    pypi
oauth2client              4.1.3                    pypi_0    pypi
oauthlib                  3.1.0                    pypi_0    pypi
object-detection          0.1                      pypi_0    pypi
opencv-python             4.5.1.48                 pypi_0    pypi
opencv-python-headless    4.5.1.48                 pypi_0    pypi
openssl                   1.1.1j               h2bbff1b_0
opt-einsum                3.3.0                    pypi_0    pypi
packaging                 20.9               pyhd3eb1b0_0
pandas                    1.2.3                    pypi_0    pypi
pandoc                    2.12                 haa95532_0
pandocfilters             1.4.3            py38haa95532_1
parso                     0.8.1              pyhd3eb1b0_0
pbr                       5.5.1                    pypi_0    pypi
pickleshare               0.7.5           pyhd3eb1b0_1003
pillow                    8.1.2                    pypi_0    pypi
pip                       21.0.1           py38haa95532_0
prometheus_client         0.9.0              pyhd3eb1b0_0
promise                   2.3                      pypi_0    pypi
prompt-toolkit            3.0.17                   pypi_0    pypi
prompt_toolkit            3.0.8                         0
proto-plus                1.18.0                   pypi_0    pypi
protobuf                  3.15.6                   pypi_0    pypi
psutil                    5.8.0                    pypi_0    pypi
py-cpuinfo                7.0.0                    pypi_0    pypi
pyarrow                   2.0.0                    pypi_0    pypi
pyasn1                    0.4.8                    pypi_0    pypi
pyasn1-modules            0.2.8                    pypi_0    pypi
pycocotools               2.0.2                    pypi_0    pypi
pycparser                 2.20                       py_2
pydot                     1.4.2                    pypi_0    pypi
pygments                  2.8.1              pyhd3eb1b0_0
pymongo                   3.11.3                   pypi_0    pypi
pyparsing                 2.4.7              pyhd3eb1b0_0
pyqt                      5.9.2            py38ha925a31_4
pyrsistent                0.17.3           py38he774522_0
python                    3.8.8                hdbf39b2_4
python-dateutil           2.8.1              pyhd3eb1b0_0
python-slugify            4.0.1                    pypi_0    pypi
pytz                      2021.1                   pypi_0    pypi
pywavelets                1.1.1                    pypi_0    pypi
pywin32                   300                      pypi_0    pypi
pywinpty                  0.5.7                    py38_0
pyyaml                    5.4.1                    pypi_0    pypi
pyzmq                     22.0.3                   pypi_0    pypi
qt                        5.9.7            vc14h73c81de_0
qtconsole                 5.0.3                    pypi_0    pypi
qtpy                      1.9.0                      py_0
requests                  2.25.1                   pypi_0    pypi
requests-oauthlib         1.3.0                    pypi_0    pypi
rsa                       4.7.2                    pypi_0    pypi
scikit-image              0.18.1                   pypi_0    pypi
scikit-learn              0.24.1                   pypi_0    pypi
send2trash                1.5.0              pyhd3eb1b0_1
sentencepiece             0.1.95                   pypi_0    pypi
seqeval                   1.2.2                    pypi_0    pypi
setuptools                52.0.0           py38haa95532_0
sip                       4.19.13          py38ha925a31_0
six                       1.15.0           py38haa95532_0
sqlite                    3.35.1               h2bbff1b_0
tensorboard               2.4.1                    pypi_0    pypi
tensorboard-plugin-wit    1.8.0                    pypi_0    pypi
tensorflow                2.4.1                    pypi_0    pypi
tensorflow-addons         0.12.1                   pypi_0    pypi
tensorflow-datasets       4.2.0                    pypi_0    pypi
tensorflow-estimator      2.4.0                    pypi_0    pypi
tensorflow-hub            0.11.0                   pypi_0    pypi
tensorflow-metadata       0.28.0                   pypi_0    pypi
tensorflow-model-optimization 0.5.0                    pypi_0    pypi
termcolor                 1.1.0                    pypi_0    pypi
terminado                 0.9.3                    pypi_0    pypi
testpath                  0.4.4              pyhd3eb1b0_0
text-unidecode            1.3                      pypi_0    pypi
tf-models-official        2.4.0                    pypi_0    pypi
tf-slim                   1.1.0                    pypi_0    pypi
threadpoolctl             2.1.0                    pypi_0    pypi
tifffile                  2021.3.16                pypi_0    pypi
tornado                   6.1              py38h2bbff1b_0
tqdm                      4.59.0                   pypi_0    pypi
traitlets                 5.0.5              pyhd3eb1b0_0
typeguard                 2.11.1                   pypi_0    pypi
typing-extensions         3.7.4.3                  pypi_0    pypi
uritemplate               3.0.1                    pypi_0    pypi
urllib3                   1.26.4                   pypi_0    pypi
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wcwidth                   0.2.5                      py_0
webencodings              0.5.1                    pypi_0    pypi
werkzeug                  1.0.1                    pypi_0    pypi
wheel                     0.36.2             pyhd3eb1b0_0
widgetsnbextension        3.5.1                    py38_0
wincertstore              0.2                      py38_0
winpty                    0.4.3                         4
wrapt                     1.12.1                   pypi_0    pypi
zeromq                    4.3.3                ha925a31_3
zipp                      3.4.1              pyhd3eb1b0_0
zlib                      1.2.11               h62dcd97_4

Pip list

Package                       Version
----------------------------- -------------------
absl-py                       0.10.0
apache-beam                   2.28.0
argon2-cffi                   20.1.0
astunparse                    1.6.3
async-generator               1.10
attrs                         20.3.0
avro-python3                  1.9.2.1
backcall                      0.2.0
bleach                        3.3.0
cachetools                    4.2.1
certifi                       2020.12.5
cffi                          1.14.5
chardet                       4.0.0
colorama                      0.4.4
contextlib2                   0.6.0.post1
crcmod                        1.7
cycler                        0.10.0
Cython                        0.29.22
dataclasses                   0.6
decorator                     4.4.2
defusedxml                    0.7.1
dill                          0.3.1.1
dm-tree                       0.1.5
docopt                        0.6.2
entrypoints                   0.3
fastavro                      1.3.3
flatbuffers                   1.12
future                        0.18.2
gast                          0.3.3
gin-config                    0.4.0
google-api-core               1.26.1
google-api-python-client      2.0.2
google-auth                   1.28.0
google-auth-httplib2          0.1.0
google-auth-oauthlib          0.4.3
google-cloud-bigquery         2.12.0
google-cloud-core             1.6.0
google-crc32c                 1.1.2
google-pasta                  0.2.0
google-resumable-media        1.2.0
googleapis-common-protos      1.53.0
grpcio                        1.32.0
h5py                          2.10.0
hdfs                          2.6.0
httplib2                      0.17.4
idna                          2.10
imageio                       2.9.0
importlib-metadata            3.7.3
importlib-resources           5.1.2
ipykernel                     5.5.0
ipython                       7.21.0
ipython-genutils              0.2.0
ipywidgets                    7.6.3
jedi                          0.18.0
Jinja2                        2.11.3
joblib                        1.0.1
jsonschema                    3.2.0
jupyter                       1.0.0
jupyter-client                6.1.12
jupyter-console               6.3.0
jupyter-core                  4.7.1
jupyterlab-pygments           0.1.2
jupyterlab-widgets            1.0.0
kaggle                        1.5.12
Keras-Preprocessing           1.1.2
kiwisolver                    1.3.1
lvis                          0.5.3
lxml                          4.6.2
Markdown                      3.3.4
MarkupSafe                    1.1.1
matplotlib                    3.3.4
mistune                       0.8.4
mock                          2.0.0
mpmath                        1.2.1
nbclient                      0.5.3
nbconvert                     6.0.7
nbformat                      5.1.2
nest-asyncio                  1.5.1
networkx                      2.5
nose                          1.3.7
notebook                      6.2.0
numpy                         1.19.5
oauth2client                  4.1.3
oauthlib                      3.1.0
object-detection              0.1
opencv-python                 4.5.1.48
opencv-python-headless        4.5.1.48
opt-einsum                    3.3.0
packaging                     20.9
pandas                        1.2.3
pandocfilters                 1.4.3
parso                         0.8.1
pbr                           5.5.1
pickleshare                   0.7.5
Pillow                        8.1.2
pip                           21.0.1
prometheus-client             0.9.0
promise                       2.3
prompt-toolkit                3.0.17
proto-plus                    1.18.0
protobuf                      3.15.6
psutil                        5.8.0
py-cpuinfo                    7.0.0
pyarrow                       2.0.0
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pycocotools                   2.0.2
pycparser                     2.20
pydot                         1.4.2
Pygments                      2.8.1
pymongo                       3.11.3
pyparsing                     2.4.7
pyrsistent                    0.17.3
python-dateutil               2.8.1
python-slugify                4.0.1
pytz                          2021.1
PyWavelets                    1.1.1
pywin32                       300
pywinpty                      0.5.7
PyYAML                        5.4.1
pyzmq                         22.0.3
qtconsole                     5.0.3
QtPy                          1.9.0
requests                      2.25.1
requests-oauthlib             1.3.0
rsa                           4.7.2
scikit-image                  0.18.1
scikit-learn                  0.24.1
scipy                         1.6.1
Send2Trash                    1.5.0
sentencepiece                 0.1.95
seqeval                       1.2.2
setuptools                    52.0.0.post20210125
sip                           4.19.13
six                           1.15.0
sympy                         1.7.1
tensorboard                   2.4.1
tensorboard-plugin-wit        1.8.0
tensorflow                    2.4.1
tensorflow-addons             0.12.1
tensorflow-datasets           4.2.0
tensorflow-estimator          2.4.0
tensorflow-hub                0.11.0
tensorflow-metadata           0.28.0
tensorflow-model-optimization 0.5.0
termcolor                     1.1.0
terminado                     0.9.3
testpath                      0.4.4
text-unidecode                1.3
tf-models-official            2.4.0
tf-slim                       1.1.0
threadpoolctl                 2.1.0
tifffile                      2021.3.16
tornado                       6.1
tqdm                          4.59.0
traitlets                     5.0.5
typeguard                     2.11.1
typing-extensions             3.7.4.3
uritemplate                   3.0.1
urllib3                       1.26.4
wcwidth                       0.2.5
webencodings                  0.5.1
Werkzeug                      1.0.1
wheel                         0.36.2
widgetsnbextension            3.5.1
wincertstore                  0.2
wrapt                         1.12.1
zipp                          3.4.1

hey, I have the same issue...did u solve?? and how? thanks.

@smeyg
Copy link

smeyg commented May 30, 2021

Same here, I tried all the solutions proposed (uninstall/reinstall numpy, uninstall/reinstall pycocotools, install pycocotools 2.0.0, install numpy 1.20.1, update array_ops.py), exception is still there.
Any update to this problem?

(tensorflow2_gpu1) -bash-4.2$ conda list
# packages in environment at /truba/home/iuzun/anaconda3/envs/tensorflow2_gpu1:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main
absl-py                   0.12.0                    <pip>
apache-beam               2.29.0                    <pip>
astunparse                1.6.3                     <pip>
attrs                     21.2.0                    <pip>
avro-python3              1.9.2.1                   <pip>
ca-certificates           2021.4.13            h06a4308_1
cachetools                4.2.2                     <pip>
certifi                   2020.12.5                 <pip>
certifi                   2020.12.5        py38h06a4308_0
cffi                      1.14.5                    <pip>
chardet                   4.0.0                     <pip>
contextlib2               0.6.0.post1               <pip>
crcmod                    1.7                       <pip>
cudatoolkit               10.1.243             h6bb024c_0
cudnn                     7.6.0                cuda10.1_0
cycler                    0.10.0                    <pip>
Cython                    0.29.23                   <pip>
dill                      0.3.1.1                   <pip>
dm-tree                   0.1.6                     <pip>
docopt                    0.6.2                     <pip>
fastavro                  1.4.1                     <pip>
flatbuffers               1.12                      <pip>
future                    0.18.2                    <pip>
gast                      0.4.0                     <pip>
gin-config                0.4.0                     <pip>
google-api-core           1.28.0                    <pip>
google-api-python-client  2.6.0                     <pip>
google-auth               1.30.1                    <pip>
google-auth-httplib2      0.1.0                     <pip>
google-auth-oauthlib      0.4.4                     <pip>
google-cloud-bigquery     2.17.0                    <pip>
google-cloud-core         1.6.0                     <pip>
google-crc32c             1.1.2                     <pip>
google-pasta              0.2.0                     <pip>
google-resumable-media    1.3.0                     <pip>
googleapis-common-protos  1.53.0                    <pip>
grpcio                    1.34.1                    <pip>
h5py                      3.1.0                     <pip>
hdfs                      2.6.0                     <pip>
httplib2                  0.17.4                    <pip>
idna                      2.10                      <pip>
importlib-resources       5.1.4                     <pip>
joblib                    1.0.1                     <pip>
kaggle                    1.5.12                    <pip>
keras-nightly             2.5.0.dev2021032900           <pip>
Keras-Preprocessing       1.1.2                     <pip>
kiwisolver                1.3.1                     <pip>
ld_impl_linux-64          2.33.1               h53a641e_7
libffi                    3.3                  he6710b0_2
libgcc-ng                 9.1.0                hdf63c60_0
libstdcxx-ng              9.1.0                hdf63c60_0
lvis                      0.5.3                     <pip>
lxml                      4.6.3                     <pip>
Markdown                  3.3.4                     <pip>
matplotlib                3.4.2                     <pip>
ncurses                   6.2                  he6710b0_1
numpy                     1.19.5                    <pip>
oauth2client              4.1.3                     <pip>
oauthlib                  3.1.0                     <pip>
object-detection          0.1                       <pip>
opencv-python             4.5.2.52                  <pip>
opencv-python-headless    4.5.2.52                  <pip>
openssl                   1.1.1k               h27cfd23_0
opt-einsum                3.3.0                     <pip>
packaging                 20.9                      <pip>
pandas                    1.2.4                     <pip>
Pillow                    8.2.0                     <pip>
pip                       21.1.1           py38h06a4308_0
portalocker               2.0.0                     <pip>
promise                   2.3                       <pip>
proto-plus                1.18.1                    <pip>
protobuf                  3.17.1                    <pip>
psutil                    5.8.0                     <pip>
py-cpuinfo                8.0.0                     <pip>
pyarrow                   3.0.0                     <pip>
pyasn1                    0.4.8                     <pip>
pyasn1-modules            0.2.8                     <pip>
pycocotools               2.0.2                     <pip>
pycparser                 2.20                      <pip>
pydot                     1.4.2                     <pip>
pymongo                   3.11.4                    <pip>
pyparsing                 2.4.7                     <pip>
python                    3.8.10               hdb3f193_7
python-dateutil           2.8.1                     <pip>
python-slugify            5.0.2                     <pip>
pytz                      2021.1                    <pip>
PyYAML                    5.4.1                     <pip>
readline                  8.1                  h27cfd23_0
requests                  2.25.1                    <pip>
requests-oauthlib         1.3.0                     <pip>
rsa                       4.7.2                     <pip>
sacrebleu                 1.5.1                     <pip>
scikit-learn              0.24.2                    <pip>
scipy                     1.4.1                     <pip>
sentencepiece             0.1.95                    <pip>
seqeval                   1.2.2                     <pip>
setuptools                52.0.0           py38h06a4308_0
setuptools                57.0.0                    <pip>
six                       1.15.0                    <pip>
sqlite                    3.35.4               hdfb4753_0
tensorboard               2.5.0                     <pip>
tensorboard-data-server   0.6.1                     <pip>
tensorboard-plugin-wit    1.8.0                     <pip>
tensorflow                2.5.0                     <pip>
tensorflow-addons         0.13.0                    <pip>
tensorflow-datasets       4.3.0                     <pip>
tensorflow-estimator      2.5.0                     <pip>
tensorflow-hub            0.12.0                    <pip>
tensorflow-metadata       1.0.0                     <pip>
tensorflow-model-optimization 0.5.0                     <pip>
termcolor                 1.1.0                     <pip>
text-unidecode            1.3                       <pip>
tf-models-official        2.5.0                     <pip>
tf-slim                   1.1.0                     <pip>
threadpoolctl             2.1.0                     <pip>
tk                        8.6.10               hbc83047_0
tqdm                      4.61.0                    <pip>
typeguard                 2.12.0                    <pip>
typing-extensions         3.7.4.3                   <pip>
uritemplate               3.0.1                     <pip>
urllib3                   1.26.5                    <pip>
Werkzeug                  2.0.1                     <pip>
wheel                     0.36.2                    <pip>
wheel                     0.36.2             pyhd3eb1b0_0
wrapt                     1.12.1                    <pip>
xz                        5.2.5                h7b6447c_0
zipp                      3.4.1                     <pip>
zlib                      1.2.11               h7b6447c_3

@hmaarrfk
Copy link
Member

I'm going to close this issue since the original poster has not replied for 2 months and the issue seems related to a tensorflow installation, not a scikit-image installation.

@linyingyingkarina, @smeyg

Please open seperate issues so that I can help you. There are often minute differences between environments that change how different issues can be resolved.

For example, the original poster seems to be on windows, while you @smeyg seem to be using some linux cluster.

@yousefan
Copy link

yousefan commented Jun 4, 2021

Description

Hello everyone, I'm trying to build a project using tensorflow but this error always appears:

Way to reproduce

 Tensorflow/models/research/object_detection/model_main_tf2.py --model_dir=Tensorflow/workspace/models/my_ssd_mobnet --pipeline_config_path=Tensorflow/workspace/models/my_ssd_mobnet/pipeline.config --num_train_steps=5000

Version information

3.8.8 (default, Feb 24 2021, 15:54:32) [MSC v.1928 64 bit (AMD64)]
Windows-10-10.0.19041-SP0
scikit-image version: 0.18.1
numpy version: 1.19.2
panda version: 0.3.1
Tensorflow: 2.4.1
Traceback (most recent call last):
  File "Tensorflow/models/research/object_detection/model_main_tf2.py", line 32, in <module>
    from object_detection import model_lib_v2
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\object_detection\model_lib_v2.py", line 29, in <module>
    from object_detection import eval_util
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\object_detection\eval_util.py", line 35, in <module>
    from object_detection.metrics import coco_evaluation
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\object_detection\metrics\coco_evaluation.py", line 25, in <module>
    from object_detection.metrics import coco_tools
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\object_detection\metrics\coco_tools.py", line 51, in <module>
    from pycocotools import coco
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\pycocotools\coco.py", line 55, in <module>
    from . import mask as maskUtils
  File "C:\Users\anaconda3\envs\tensorflow\lib\site-packages\pycocotools\mask.py", line 3, in <module>
    import pycocotools._mask as _mask
  File "pycocotools\_mask.pyx", line 1, in init pycocotools._mask
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

first
pip uninstall pycocotools
then
pip install pycocotools

@NipunDewthilina
Copy link

Issue solved after I installed the Tensorboard package. I think the main cause of the problem is a version mismatch.

@HamidrezaSafari
Copy link

use python virtual environments and install pip install gensim==3.8.3

@flashlau
Copy link

flashlau commented Nov 19, 2021

I degrade version of pycocotools, then code works

@Shubham1450
Copy link

Issue solved after I installed the Tensorboard package. I think the main cause of the problem is a version mismatch.

Mine not working any other method.

@Majda995
Copy link

Majda995 commented Apr 7, 2022

Hello i have the same issue ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 48 from C header, got 40 from PyObject
i am working with pandas in python 3.9 and i have to run the File with sudo (for LEDs) and it showed this error
please if someone can help me

@hmaarrfk
Copy link
Member

hmaarrfk commented Apr 8, 2022

We would love to help you. There is alot of basic information that we ask for in the creation of a new issue. Please take the time for file one and it will speed up getting an answer

@Dwiunzila
Copy link

hello i have the same issue
valuerror : numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject from my abipy cause i want to build bandstructure, i have been tried to upgrade the numpy but it's still failed.

the command : abiopen.py t01o_DS2_GSR.nc --expose -sns=talk
Traceback (most recent call last):
File "/home/komputasi6/.local/bin/abiopen.py", line 17, in
from abipy import abilab
File "/home/komputasi6/.local/lib/python3.7/site-packages/abipy/init.py", line 18, in
from abipy.core import release
File "/home/komputasi6/.local/lib/python3.7/site-packages/abipy/core/init.py", line 3, in
from .kpoints import *
File "/home/komputasi6/.local/lib/python3.7/site-packages/abipy/core/kpoints.py", line 15, in
from pymatgen.core.lattice import Lattice
File "/home/komputasi6/.local/lib/python3.7/site-packages/pymatgen/core/init.py", line 20, in
from .lattice import Lattice # noqa
File "/home/komputasi6/.local/lib/python3.7/site-packages/pymatgen/core/lattice.py", line 22, in
from pymatgen.util.coord import pbc_shortest_vectors
File "/home/komputasi6/.local/lib/python3.7/site-packages/pymatgen/util/coord.py", line 17, in
from . import coord_cython as cuc
File "pymatgen/util/coord_cython.pyx", line 1, in init pymatgen.util.coord_cython
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

anyone can help me? thank you in advance

@hmaarrfk
Copy link
Member

These kinds of issues are highly dependent on your system configuration please open another issue and provide us with all of your specific information so we can help you in particular.

Looking at things quickly it seems that you use pip install --user which can have many integration challenges. I suggest you remove the directory
/home/komputasi6/.local/lib/python3.7/

Though this may be contrary to other instructions you have followed. Do take a look at our installation guide. It describes how to use pip or conda to get going.

Please do not reply here asking for followup help. i would strongly prefer you open a new issue.

@JucaVaz
Copy link

JucaVaz commented Aug 24, 2022

Numpy 1.21.5 was still encountering this error, after updating to numpy=1.23.1 it fixed it for me

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

13 participants