numpy.ufunc has the wrong size, try recompiling. even with the latest pandas and numpy versions
TLDR: If docker add:
RUN pip install numpy
before you install pandas (probably just your pip install -r requirements.txt) and it will just work again.
I am doing this in docker building pandas in alpine and run into the same issue and it JUST popped up (Dec 27th ish 2018) for a build that's been working just fine previously.
well actually my problem was solved somehow by
pip uninstall numpy
pip install numpy
the real process is
➜ ~ pip3 uninstall numpy -y
Uninstalling numpy-1.14.5:
Successfully uninstalled numpy-1.14.5
➜ ~ pip3 install numpy
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.16.1)
➜ ~ pip3 uninstall numpy
Uninstalling numpy-1.16.1:
Would remove:
/usr/bin/f2py3
/usr/bin/f2py3.7
/usr/lib/python3/dist-packages/numpy
/usr/lib/python3/dist-packages/numpy-1.16.1.egg-info
Proceed (y/n)? y
Successfully uninstalled numpy-1.16.1
➜ ~ pip3 install numpy
Collecting numpy...
which means the problem might be version conflict?
The answer was that fastparquet (a package that is used by pandas) was using numpy older binary file for some reason.
Updating that package helped. I guess that if someone else comes around this problem, to try and update all the related packages (that use numpy) will be the right way to go