Open Jekyll1021 opened 6 years ago
@Jekyll1021, I don't know what happened there but here are some sanity checks: make sure you are using python 2, and that python-dev
and python-numpy
ubuntu packages are installed.
Hi Paulinus, I checked python-dev, python-numpy, cmake and libboost-python-dev, they are all in latest version. Now I'm getting confused by how I can make use of the commands in bin since they all import opensfm... @paulinus
For some reason, cmake is not finding NumPy. If you have it installed, it might be that some PATH is not set properly. Are you using ubuntu 16.04? The commands here do work on a clean ubuntu 16.04.
I have exactly the same issue on Ubuntu 16.04. Pretty sure everything else is installed correctly. Numpy can be imported from the interpreter. What should PATH/PYTHONPATH look like?
Thanks for warning about it, @jordi102. May be you can help debugging this.
What is failing is the execution of this command during the cmake configuration.
If you are able to import numpy from the interpreter, it might mean that the interpreter you run is not the same as the one cmake uses, or that the PYTHONPATH is different.
Can you send here the results of these commands?
which python
echo $PYTHONPATH
grep -i python cmake_build/CMakeCache.txt
On your path question, when using the numpy installed via pip
or apt
, you should not need to set the PYTHONPATH to anything.
setup.py gives me a "NumPy import failure" despite I have numpy installed and successfully imported in python 2.7.
The full error log is attached as following
Could anyone give me hint on that?