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.

ValueError ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216

See original GitHub issue

I think there’s an issue with the Conda-forge package for NumPy 1.15.x

conda create -n tst -c conda-forge --force python=3.6.7 fastparquet numpy=1.15.4 
bash-5.0$ python -c "import fastparquet"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/taugspurger/miniconda3/envs/tst/lib/python3.6/site-packages/fastparquet/__init__.py", line 8, in <module>
    from .core import read_thrift
  File "/Users/taugspurger/miniconda3/envs/tst/lib/python3.6/site-packages/fastparquet/core.py", line 9, in <module>
    from . import encoding
  File "/Users/taugspurger/miniconda3/envs/tst/lib/python3.6/site-packages/fastparquet/encoding.py", line 11, in <module>
    from .speedups import unpack_byte_array
  File "__init__.pxd", line 872, in init fastparquet.speedups
ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216

I haven’t diagnosed the issue yet. Using NumPy 1.16 is fine.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
martindurantcommented, Mar 5, 2021

@jrbourbeau , can you ping on that issue, maybe Marius can help. I don’t understand enough about the build process - maybe it will need more careful numpy version pinning?

0reactions
jrbourbeaucommented, Mar 4, 2021

FWIW https://github.com/conda-forge/fastparquet-feedstock/pull/27#issuecomment-514346076 mentions that this issue should be fixed, however I seemed to have stumbled across this ValueError with the latest fastparquet release on conda-forge (0.5.0) (xref https://github.com/dask/dask/pull/7006/checks?check_run_id=2035433841#step:7:16667)

Read more comments on GitHub >

github_iconTop Results From Across the Web

numpy.ufunc has the wrong size, try recompiling. Expected ...
I installed using pip install and dependencies auto installed in the process. New virtualenv was created before installing sklearn. import ...
Read more >
numpy.ufunc has the wrong size, try recompiling. even with ...
The answer was that fastparquet (a package that is used by pandas) was using numpy older binary file for some reason.
Read more >
Numpy.ufunc has the wrong size, try recompiling
Numpy.ufunc has the wrong size, try recompiling ... try recompiling. Expected 192, got 216 ... So in this case: pymatgen, numpy, and python....
Read more >
ValueError: numpy.ufunc has the wrong size, try recompiling ...
最近学习frcnn编译过程中,有个错误记录一下: ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C ...
Read more >
PythonCaller: cannot import pcl, receive Python Exception
Python Exception <ValueError>: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216. which is being caused by importing ...
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