Closed jamiephillips0000 closed 8 years ago
How did you set your environment variables?
.bashrc export ODMPATH=/home/jamie/git/CODE/PYTHON/OpenDroneMap1/OpenDroneMap export PYTHONPATH=$PYTHONPATH:$ODMPATH/SuperBuild/install/lib/python2.7/dist-packages:$ODMPATH/SuperBuild/src/opensfm:$ODMPATH/SuperBuild/install/lib/python2.7/site-packages/ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ODMPATH/SuperBuild/install/lib
Ok it might have been an install error, if it doesn't throw a "can't find libecto.0.6" error. Try running bash ./configure.sh
again and pay attention to make
errors. You may want to edit https://github.com/OpenDroneMap/OpenDroneMap/blob/master/configure.sh#L123 to remove the -j${NUM_CORES}
flag.
running bach ./configure now Just looked at the ecto github and the code is exactly the same. Any chance the error comes from them?
It's a possibility but we would have to figure out why it's going wrong on your machine specifically first to determine that.
I added the output from the ./configure Nothing seemd to have changed much out.txt
as far as I can see from the ecto project https://github.com/plasmodic/ecto the file python/ecto/init.py makes a call to from ecto.ecto_main import _cell_base, _cell_cpp, __getitem_list__, getitem_slice, getitem_str, getitem_tuple, lookup
and I cant find ecto_main anywhere Also there is a test.py in the same folder and it fails at the same line I went looking to see if there was a previous branch I could use - but with names like "amoeba" I am not encouraged ;-)
if this is really not an error from ODM just let me know and I will open it on the ecto project?
The configure output looks fine. Try one more thing for me: use ./run.sh
instead of python run.py
(everything else the same) and see what happens.
I don't know if the ecto people will be able to help because they don't know our code base, but I also don't think it would hurt to drop a line out there. Maybe @edgarriba could also provide some insight into this problem?
./run.sh
produces the same error
(OpenDroneMap) jamie@PUTER:~/git/CODE/PYTHON/OpenDroneMap1/OpenDroneMap$ ./run.sh --project-path ../odm_data_seneca/
Traceback (most recent call last):
File "/home/jamie/git/CODE/PYTHON/OpenDroneMap1/OpenDroneMap/run.py", line 8, in <module>
import ecto
File "/home/jamie/git/CODE/PYTHON/OpenDroneMap1/OpenDroneMap/SuperBuild/install/lib/python2.7/site-packages/ecto/__init__.py", line 30, in <module>
from ecto.ecto_main import _cell_base, _cell_cpp, __getitem_list__, __getitem_slice__, __getitem_str__, __getitem_tuple__, lookup
ImportError: No module named ecto_main
As I'm looking into this, it has IMO, nothing to do with you. The seems to be an ecto problem. I will post it there and see what happens
OK. Let us know here what you find here.
@vrabaud @ethanrublee is this any known ecto issue?
created the issue in ecto
Hi Guys
I took this over from someone else and I now have new information - don't know if it will help.
1) Python is being used through an Anaconda install for the user. So I don't think sudo pip install XXX will do much if the files are not on the PYTHONPATH
2) apparently --layout=deb
was not recognized so it was manually removed from the source files << the bash ./configiure.sh
fails if this is taken out so I'm not sure this is a mistake.
Apologies for not disclosing this earlier - I just found out
Ok fixed it
Anaconda is the issue - it cant work with it
1) Anaconda Python install would affect ODM at run-time. You would have inconsistent dependencies that might lead to trouble. Anaconda installs python for a specific user and allows more control because you don't change versions with a system package manager update.
Anaconda puts the following into the .bashrc
# added by Anaconda2 4.1.0 installer
export PATH="/home/jamie/anaconda2/bin:$PATH"
2) Setuptools in Anaconda does not recognize --install-layout=deb ubuntu@odm:~/git/OpenDroneMap$ grep -R "layout=deb" SuperBuild/src/ SuperBuild/src/catkin/cmake/python.cmake: set(SETUPTOOLS_ARG_EXTRA "--install-layout=deb")
I rolled a new VM with a new checkout and it works like a charm Apologies for the distraction. Again, I was handed this to fix with little information
Not a distraction, now we know how to troubleshoot this problem in the future.
Hi jamiephilips00000 I have same problem and I have installed Anaconda on my desktop. Can you please clarify your solution with details for ecto problem? what is the meaning VM? did you uninstalled anaconda? thanks.
To disable anaconda you remove the following from your ~/.bashrc
# added by Anaconda2 4.1.0 installer export PATH="/home/jamie/anaconda2/bin:$PATH"
I found that, for whatever reason, I just could not get this to work on my existing machine. Maybe I had some python stuff from before - I just don't know and didnt take the time to find out. What worked was that I created a vmware player VM with a vanilla install of Ubuntu 14.04 and it worked like a charm. Hope this helps
On Fri, Aug 12, 2016 at 9:47 AM, muzo583 notifications@github.com wrote:
Hi jamiephilips00000 I have same problem and I have installed Anaconda on my desktop. Can you please clarify your solution with details for ecto problem? what is the meaning VM? did you uninstalled anaconda? thanks.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/OpenDroneMap/OpenDroneMap/issues/337#issuecomment-239393722, or mute the thread https://github.com/notifications/unsubscribe-auth/AJhANdvgDoWltv3Huv0eHUaY26Uf6T_qks5qfDMVgaJpZM4JJRfR .
ubuntu@ubuntu-ESPRIMO-P420:~/IIRS/OpenDroneMap$ python run.py -i /home/ubuntu/ROV image/1 yhyh
Traceback (most recent call last):
File "run.py", line 8, in
Hi when running the test I get the following error. (OpenDroneMap) jamie@PUTER:~/git/CODE/PYTHON/OpenDroneMap1/OpenDroneMap$ python run.py --project-path ../odm_data_seneca/ Traceback (most recent call last): File "run.py", line 8, in
import ecto
File "/home/jamie/git/CODE/PYTHON/OpenDroneMap1/OpenDroneMap/SuperBuild/install/lib/python2.7/site-packages/ecto/init.py", line 30, in
from ecto.ecto_main import _cell_base, _cell_cpp, __getitem_list__, getitem_slice, getitem_str, getitem_tuple, lookup
ImportError: No module named ecto_main
the offending line in "/home/jamie/git/CODE/PYTHON/OpenDroneMap1/OpenDroneMap/SuperBuild/install/lib/python2.7/site-packages/ecto/init.py" is from ecto.ecto_main import _cell_base, _cell_cpp, __getitem_list__, getitem_slice, getitem_str, getitem_tuple, lookup
There seems not to be a file called ecto_main? Any help is appreciated
Jamie