Closed b4zz4 closed 4 years ago
@b4zz4 I suppose you are on Mac OS? Just in case the problem is still relevant to you i share my workaround here.
I ran into the same problem and solved it thanks to this link: http://notesbyanerd.com/2018/11/02/pip-install-cant-find-numpy-header/
In short: Add the directory where the numpy sources are located to CFLAGS environment variable. E.g.
export CFLAGS="-I /Users/Salim/Library/Python/3.7/lib/python/site-packages/numpy/core/include $CFLAGS"
You can get the path easily using this:
import numpy as np
np.get_include()
PS: Just in case someone else experiences this behaivior: After that i had a similar error with eigen/core despite i installed it on my system using homebrew. The solution was quite the same. Add the directory where eigen was installed to CFLAGS, e.g.:
export CFLAGS="-I /usr/local/include/eigen3 $CFLAGS"
It seems quite wrong to set absolute paths here: https://github.com/fehlfarbe/python-aruco/blob/master/setup.py#L32
Build fails in a virtual env on archlinux too :/
I have the same problem on archlinux too. Any one solved tihs??
Got it working on Archlinux now #39. You need to add a symlink for opencv2 as mentioned on the updated README.md
Thanks! I merged the pull request.