question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

I wasn’t sure where this error was coming from so please let me know if this needs to be reported in another repository. We’re using apache-beam, spacy, and sentence-transformers in a data pipeline. When I install all dependencies and run the pipeline, it fails with the following stack trace printed in the terminal:

Traceback (most recent call last):
  File "/opt/homebrew/Caskroom/miniforge/base/envs/ds/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/homebrew/Caskroom/miniforge/base/envs/ds/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/marek/Projects/iterate/signals-data/pipelines/iterate/enrichment/__main__.py", line 25, in <module>
    from pipelines.shared.transforms import AddEmbeddings
  File "/Users/marek/Projects/iterate/signals-data/pipelines/shared/transforms.py", line 3, in <module>
    import spacy
  File "/opt/homebrew/Caskroom/miniforge/base/envs/ds/lib/python3.9/site-packages/spacy/__init__.py", line 11, in <module>
    from thinc.api import prefer_gpu, require_gpu, require_cpu  # noqa: F401
  File "/opt/homebrew/Caskroom/miniforge/base/envs/ds/lib/python3.9/site-packages/thinc/api.py", line 2, in <module>
    from .initializers import normal_init, uniform_init, glorot_uniform_init, zero_init
  File "/opt/homebrew/Caskroom/miniforge/base/envs/ds/lib/python3.9/site-packages/thinc/initializers.py", line 4, in <module>
    from .backends import Ops
  File "/opt/homebrew/Caskroom/miniforge/base/envs/ds/lib/python3.9/site-packages/thinc/backends/__init__.py", line 8, in <module>
    from .cupy_ops import CupyOps, has_cupy
  File "/opt/homebrew/Caskroom/miniforge/base/envs/ds/lib/python3.9/site-packages/thinc/backends/cupy_ops.py", line 19, in <module>
    from .numpy_ops import NumpyOps
  File "thinc/backends/numpy_ops.pyx", line 1, in init thinc.backends.numpy_ops
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I think this error is coming from thinc because it incorrectly reports the supported version range for numpy. When I force install numpy 1.22.x by running pip install numpy==1.22.1 the pipeline works. I don’t have a lot of expertise with Python development and I could use some community/maintainer help. There was a related issue reported in this repo some time ago and so I think we need to find a definite solution.

Here’s our dependency tree:

apache-beam==2.37.0
  cloudpickle==2.0.0
  crcmod==1.7
  dill==0.3.1.1
  fastavro==1.4.10
  grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  hdfs==2.7.0
    docopt==0.6.2
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  httplib2==0.19.1
    pyparsing==2.4.7
  numpy==1.21.5
  oauth2client==4.1.3
    httplib2==0.19.1
      pyparsing==2.4.7
    pyasn1==0.4.8
    pyasn1-modules==0.2.8
      pyasn1==0.4.8
    rsa==4.8
      pyasn1==0.4.8
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  orjson==3.6.7
  proto-plus==1.20.3
    protobuf==3.19.4
  protobuf==3.19.4
  pyarrow==6.0.1
    numpy==1.21.5
  pydot==1.4.2
    pyparsing==2.4.7
  pymongo==3.12.3
  python-dateutil==2.8.2
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  pytz==2022.1
  requests==2.27.1
    certifi==2021.10.8
    charset-normalizer==2.0.12
    idna==3.3
    urllib3==1.26.9
  typing_extensions==4.1.1
beautifulsoup4==4.10.0
  soupsieve==2.3.1
elasticsearch==7.17.1
  certifi==2021.10.8
  urllib3==1.26.9
google-apitools==0.5.31
  fasteners==0.17.3
  httplib2==0.19.1
    pyparsing==2.4.7
  oauth2client==4.1.3
    httplib2==0.19.1
      pyparsing==2.4.7
    pyasn1==0.4.8
    pyasn1-modules==0.2.8
      pyasn1==0.4.8
    rsa==4.8
      pyasn1==0.4.8
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
google-cloud-bigquery==2.34.3
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  google-cloud-core==1.7.2
    google-api-core==1.31.5
      google-auth==1.35.0
        cachetools==4.2.4
        pyasn1-modules==0.2.8
          pyasn1==0.4.8
        rsa==4.8
          pyasn1==0.4.8
        setuptools==61.3.0
        six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
      googleapis-common-protos==1.56.0
        protobuf==3.19.4
      packaging==21.3
        pyparsing==2.4.7
      protobuf==3.19.4
      pytz==2022.1
      requests==2.27.1
        certifi==2021.10.8
        charset-normalizer==2.0.12
        idna==3.3
        urllib3==1.26.9
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  google-resumable-media==2.3.2
    google-crc32c==1.3.0
  grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  packaging==21.3
    pyparsing==2.4.7
  proto-plus==1.20.3
    protobuf==3.19.4
  protobuf==3.19.4
  python-dateutil==2.8.2
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  requests==2.27.1
    certifi==2021.10.8
    charset-normalizer==2.0.12
    idna==3.3
    urllib3==1.26.9
google-cloud-bigquery-storage==2.13.0
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  proto-plus==1.20.3
    protobuf==3.19.4
google-cloud-bigtable==1.7.0
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  google-cloud-core==1.7.2
    google-api-core==1.31.5
      google-auth==1.35.0
        cachetools==4.2.4
        pyasn1-modules==0.2.8
          pyasn1==0.4.8
        rsa==4.8
          pyasn1==0.4.8
        setuptools==61.3.0
        six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
      googleapis-common-protos==1.56.0
        protobuf==3.19.4
      packaging==21.3
        pyparsing==2.4.7
      protobuf==3.19.4
      pytz==2022.1
      requests==2.27.1
        certifi==2021.10.8
        charset-normalizer==2.0.12
        idna==3.3
        urllib3==1.26.9
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  grpc-google-iam-v1==0.12.3
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
google-cloud-datastore==1.15.3
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  google-cloud-core==1.7.2
    google-api-core==1.31.5
      google-auth==1.35.0
        cachetools==4.2.4
        pyasn1-modules==0.2.8
          pyasn1==0.4.8
        rsa==4.8
          pyasn1==0.4.8
        setuptools==61.3.0
        six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
      googleapis-common-protos==1.56.0
        protobuf==3.19.4
      packaging==21.3
        pyparsing==2.4.7
      protobuf==3.19.4
      pytz==2022.1
      requests==2.27.1
        certifi==2021.10.8
        charset-normalizer==2.0.12
        idna==3.3
        urllib3==1.26.9
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
google-cloud-dlp==3.6.2
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  proto-plus==1.20.3
    protobuf==3.19.4
  pytz==2022.1
google-cloud-language==1.3.0
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
google-cloud-pubsublite==1.4.1
  google-cloud-pubsub==2.11.0
    google-api-core==1.31.5
      google-auth==1.35.0
        cachetools==4.2.4
        pyasn1-modules==0.2.8
          pyasn1==0.4.8
        rsa==4.8
          pyasn1==0.4.8
        setuptools==61.3.0
        six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
      googleapis-common-protos==1.56.0
        protobuf==3.19.4
      packaging==21.3
        pyparsing==2.4.7
      protobuf==3.19.4
      pytz==2022.1
      requests==2.27.1
        certifi==2021.10.8
        charset-normalizer==2.0.12
        idna==3.3
        urllib3==1.26.9
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    grpc-google-iam-v1==0.12.3
      googleapis-common-protos==1.56.0
        protobuf==3.19.4
      grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
        six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    grpcio-status==1.45.0
      googleapis-common-protos==1.56.0
        protobuf==3.19.4
      grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
        six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
      protobuf==3.19.4
    proto-plus==1.20.3
      protobuf==3.19.4
  grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  grpcio-status==1.45.0
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    protobuf==3.19.4
  overrides==6.1.0
    typing-utils==0.1.0
google-cloud-recommendations-ai==0.2.0
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  proto-plus==1.20.3
    protobuf==3.19.4
google-cloud-spanner==1.19.1
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  google-cloud-core==1.7.2
    google-api-core==1.31.5
      google-auth==1.35.0
        cachetools==4.2.4
        pyasn1-modules==0.2.8
          pyasn1==0.4.8
        rsa==4.8
          pyasn1==0.4.8
        setuptools==61.3.0
        six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
      googleapis-common-protos==1.56.0
        protobuf==3.19.4
      packaging==21.3
        pyparsing==2.4.7
      protobuf==3.19.4
      pytz==2022.1
      requests==2.27.1
        certifi==2021.10.8
        charset-normalizer==2.0.12
        idna==3.3
        urllib3==1.26.9
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
  grpc-google-iam-v1==0.12.3
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
google-cloud-videointelligence==1.16.1
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
google-cloud-vision==1.0.0
  google-api-core==1.31.5
    google-auth==1.35.0
      cachetools==4.2.4
      pyasn1-modules==0.2.8
        pyasn1==0.4.8
      rsa==4.8
        pyasn1==0.4.8
      setuptools==61.3.0
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
    googleapis-common-protos==1.56.0
      protobuf==3.19.4
    packaging==21.3
      pyparsing==2.4.7
    protobuf==3.19.4
    pytz==2022.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    setuptools==61.3.0
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
grpcio-gcp==0.2.2
  grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
    six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
pipdeptree==2.2.1
  pip==22.0.4
sentence-transformers==2.2.0
  huggingface-hub==0.4.0
    filelock==3.6.0
    packaging==21.3
      pyparsing==2.4.7
    PyYAML==6.0
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    tqdm==4.63.1
    typing_extensions==4.1.1
  nltk==3.7
    click==8.0.4
    joblib==1.1.0
    regex==2022.3.15
    tqdm==4.63.1
  numpy==1.21.5
  scikit-learn==1.0.2
    joblib==1.1.0
    numpy==1.21.5
    scipy==1.8.0
      numpy==1.21.5
    threadpoolctl==3.1.0
  scipy==1.8.0
    numpy==1.21.5
  sentencepiece==0.1.96
  torch==1.11.0
    typing_extensions==4.1.1
  torchvision==0.12.0
    numpy==1.21.5
    Pillow==9.0.1
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    torch==1.11.0
      typing_extensions==4.1.1
    typing_extensions==4.1.1
  tqdm==4.63.1
  transformers==4.17.0
    filelock==3.6.0
    huggingface-hub==0.4.0
      filelock==3.6.0
      packaging==21.3
        pyparsing==2.4.7
      PyYAML==6.0
      requests==2.27.1
        certifi==2021.10.8
        charset-normalizer==2.0.12
        idna==3.3
        urllib3==1.26.9
      tqdm==4.63.1
      typing_extensions==4.1.1
    numpy==1.21.5
    packaging==21.3
      pyparsing==2.4.7
    PyYAML==6.0
    regex==2022.3.15
    requests==2.27.1
      certifi==2021.10.8
      charset-normalizer==2.0.12
      idna==3.3
      urllib3==1.26.9
    sacremoses==0.0.49
      click==8.0.4
      joblib==1.1.0
      regex==2022.3.15
      six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
      tqdm==4.63.1
    tokenizers==0.11.6
    tqdm==4.63.1
spacy==3.2.4
  blis==0.7.7
    numpy==1.21.5
  catalogue==2.0.7
  click==8.0.4
  cymem==2.0.6
  Jinja2==3.1.1
    MarkupSafe==2.1.1
  langcodes==3.3.0
  murmurhash==1.0.6
  numpy==1.21.5
  packaging==21.3
    pyparsing==2.4.7
  pathy==0.6.1
    smart-open==5.2.1
    typer==0.4.1
      click==8.0.4
  preshed==3.0.6
    cymem==2.0.6
    murmurhash==1.0.6
  pydantic==1.8.2
    typing_extensions==4.1.1
  requests==2.27.1
    certifi==2021.10.8
    charset-normalizer==2.0.12
    idna==3.3
    urllib3==1.26.9
  setuptools==61.3.0
  spacy-legacy==3.0.9
  spacy-loggers==1.0.2
    wasabi==0.9.1
  srsly==2.4.2
    catalogue==2.0.7
  thinc==8.0.15
    blis==0.7.7
      numpy==1.21.5
    catalogue==2.0.7
    cymem==2.0.6
    murmurhash==1.0.6
    numpy==1.21.5
    preshed==3.0.6
      cymem==2.0.6
      murmurhash==1.0.6
    pydantic==1.8.2
      typing_extensions==4.1.1
    setuptools==61.3.0
    srsly==2.4.2
      catalogue==2.0.7
    wasabi==0.9.1
  tqdm==4.63.1
  typer==0.4.1
    click==8.0.4
  wasabi==0.9.1
wheel==0.37.1

Here’s the requirements.txt file:

apache-beam==2.37.0
beautifulsoup4==4.10.0
blis==0.7.7
cachetools==4.2.4
catalogue==2.0.7
certifi==2021.10.8
charset-normalizer==2.0.12
click==8.0.4
cloudpickle==2.0.0
crcmod==1.7
cymem==2.0.6
dill==0.3.1.1
docopt==0.6.2
elasticsearch==7.17.1
fastavro==1.4.10
fasteners==0.17.3
filelock==3.6.0
google-api-core==1.31.5
google-apitools==0.5.31
google-auth==1.35.0
google-cloud-bigquery==2.34.3
google-cloud-bigquery-storage==2.13.0
google-cloud-bigtable==1.7.0
google-cloud-core==1.7.2
google-cloud-datastore==1.15.3
google-cloud-dlp==3.6.2
google-cloud-language==1.3.0
google-cloud-pubsub==2.11.0
google-cloud-pubsublite==1.4.1
google-cloud-recommendations-ai==0.2.0
google-cloud-spanner==1.19.1
google-cloud-videointelligence==1.16.1
google-cloud-vision==1.0.0
google-crc32c==1.3.0
google-resumable-media==2.3.2
googleapis-common-protos==1.56.0
grpc-google-iam-v1==0.12.3
grpcio @ file:///Users/runner/miniforge3/conda-bld/grpcio_1648220738213/work
grpcio-gcp==0.2.2
grpcio-status==1.45.0
hdfs==2.7.0
httplib2==0.19.1
huggingface-hub==0.4.0
idna==3.3
Jinja2==3.1.1
joblib==1.1.0
langcodes==3.3.0
MarkupSafe==2.1.1
murmurhash==1.0.6
nltk==3.7
numpy==1.21.5
oauth2client==4.1.3
orjson==3.6.7
overrides==6.1.0
packaging==21.3
pathy==0.6.1
Pillow==9.0.1
pipdeptree==2.2.1
preshed==3.0.6
proto-plus==1.20.3
protobuf==3.19.4
pyarrow==6.0.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
pydantic==1.8.2
pydot==1.4.2
pymongo==3.12.3
pyparsing==2.4.7
python-dateutil==2.8.2
pytz==2022.1
PyYAML==6.0
regex==2022.3.15
requests==2.27.1
rsa==4.8
sacremoses==0.0.49
scikit-learn==1.0.2
scipy==1.8.0
sentence-transformers==2.2.0
sentencepiece==0.1.96
six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
smart-open==5.2.1
soupsieve==2.3.1
spacy==3.2.4
spacy-legacy==3.0.9
spacy-loggers==1.0.2
srsly==2.4.2
thinc==8.0.15
threadpoolctl==3.1.0
tokenizers==0.11.6
torch==1.11.0
torchvision==0.12.0
tqdm==4.63.1
transformers==4.17.0
typer==0.4.1
typing-utils==0.1.0
typing_extensions==4.1.1
urllib3==1.26.9
wasabi==0.9.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
adrianeboydcommented, Apr 13, 2022

I should have mentioned: if you are running this on a M1, you should also want to include the package thinc-apple-ops, everything will be much much faster. Even if you use conda, install thinc-apple-ops with pip in addition.

We’ll think about how we can add this to the README while keeping the standard install instructions clear enough. It is definitely frustrating.

1reaction
adrianeboydcommented, Apr 4, 2022

Right, so if you want to install spacy with pip, try this with PIP_CONSTRAINT and --no-cache-dir like I described above.

Or you can use conda install for the spacy requirements instead if you want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: numpy.ndarray size changed, may indicate binary ...
python - ValueError: numpy. ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject - Stack ...
Read more >
Github actions: ValueError: numpy.ndarray size changed, may ...
ValueError : numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject.
Read more >
ValueError: numpy.ndarray size changed, may indicate binary ...
Pandas : ValueError: numpy. ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject ...
Read more >
ValueError: numpy.ndarray size changed, may indicate binary ...
Expected 88 from C header, got 80 from PyObject ... Databricks failed with this error for my existing Databricks Notebook Version 10.1 and...
Read more >
Numpy array sized changed error on Python 3.10 - Reddit
... ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject. I tried:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found