Odm: [edgarriba-cmake, 16.04] Clean installation thoughts (was: OpenSfm.exif module missing)

Created on 16 Mar 2016  路  9Comments  路  Source: OpenDroneMap/ODM

For some reasons I've installed Xubuntu 16.04 beta. Trying to run OpenDroneMap - some thoughts.

1) Python-Setuptools not installed, with clean system and ODM ./configure.sh.

This helped: wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python

2) ODM configured, "script finished", but:

Traceback (most recent call last):
  File "/home/mechanik/dev/OpenDroneMap/run.py", line 10, in <module>
    from scripts.odm_app import ODMApp
  File "/home/mechanik/dev/OpenDroneMap/scripts/odm_app.py", line 5, in <module>
    from opendm import types
  File "/home/mechanik/dev/OpenDroneMap/opendm/types.py", line 5, in <module>
    from opensfm.exif import sensor_string
ImportError: No module named opensfm.exif

edgarriba-cmake branch,
``` git rev-parse HEAD
8b051ebfb589ab14a791d3ac56f86d0ed82e08a2


Most helpful comment

Ok. I missed this last line ;) Everything is working ;)

All 9 comments

the same error

Make sure SuperBuild/src/opensfm is in your PYTHONPATH

Added these two export lines to helper script and it's working again. Thank you very much ;)

export PYTHONPATH=$PYTHONPATH:pwd/SuperBuild/install/lib/python2.7/dist-packages:/home/mechanik/dev/OpenDroneMap/SuperBuild/src/opensfm
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/mechanik/dev/OpenDroneMap/SuperBuild/install/lib
/home/mechanik/dev/OpenDroneMap/run.py --odm_georeferencing-useGcp --time --project-path /home/mechanik/dev/odm_data/odm_boruszyn_kap/ --odm_georeferencing-gcpFile /home/mechanik/dev/odm_data/odm_boruszyn_kap/gcp_list.txt

I noticed a typo in your code there:
pwd should have tick marks around it

typo corrected....

But...

[INFO]    Running ODM PMVS Cell - Finished
[INFO]    Running ODM Meshing Cell
[DEBUG]   Writing ODM Mesh file in: /home/mechanik/dev/odm_data/odm_boruszyn_kap/odm_meshing/odm_mesh.ply
[DEBUG]   running /home/mechanik/dev/OpenDroneMap/build/bin/odm_meshing -inputFile /home/mechanik/dev/odm_data/odm_boruszyn_kap/pmvs/recon0/models/option-0000.ply -outputFile /home/mechanik/dev/odm_data/odm_boruszyn_kap/odm_meshing/odm_mesh.ply -logFile /home/mechanik/dev/odm_data/odm_boruszyn_kap/odm_meshing/odm_meshing_log.txt -maxVertexCount 100000 -octreeDepth 9 -samplesPerNode 1.0 -solverDivide 9
sh: 1: /home/mechanik/dev/OpenDroneMap/build/bin/odm_meshing: not found
[ERROR]   quitting cause: 
    /home/mechanik/dev/OpenDroneMap/build/bin/odm_meshing -inputFile /home/mechanik/dev/odm_data/odm_boruszyn_kap/pmvs/recon0/models/option-0000.ply -outputFile /home/mechanik/dev/odm_data/odm_boruszyn_kap/odm_meshing/odm_mesh.ply -logFile /home/mechanik/dev/odm_data/odm_boruszyn_kap/odm_meshing/odm_meshing_log.txt -maxVertexCount 100000 -octreeDepth 9 -samplesPerNode 1.0 -solverDivide 9
returned with code 32512.

An error occurred. Check stdout above or the logs.

yes, I know, I should get some coffee and go for coding, but no way. On Friday I have very important exam in my railway job. I sholud start learning on railway rolling stock construction rules ;)

it looks like you haven't built the internal modules. The steps to install ODM right now are:

cd path/to/odm/dir
git clone https://github.com/OpenDroneMap/OpenDroneMap.git .
export PYTHONPATH=$PYTHONPATH:`pwd`/SuperBuild/install/lib/python2.7/dist-packages:`pwd`/SuperBuild/src/opensfm
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/SuperBuild/install/lib
bash configure.sh
mkdir build && cd build && cmake .. && make && cd ..

That last line will install odm_x modules

Ok. I missed this last line ;) Everything is working ;)

.bash

export PYTHONPATH=$PYTHONPATH:/home/ubuntu/IIRS/OpenDroneMap/SuperBuild/install/lib/python2.7/dist-packages
export PYTHONPATH=$PYTHONPATH:/home/ubuntu/IIRS/OpenDroneMap/SuperBuild/src/opensfm
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ubuntu/IIRS/OpenDroneMap/SuperBuild/install/lib

error -
Traceback (most recent call last):
File "run.py", line 11, in
from scripts.odm_app import ODMApp
File "/home/ubuntu/IIRS/OpenDroneMap/scripts/odm_app.py", line 5, in
from opendm import types
File "/home/ubuntu/IIRS/OpenDroneMap/opendm/types.py", line 5, in
from opensfm.exif import sensor_string
ImportError: No module named opensfm.exif

.bash

export PYTHONPATH=$PYTHONPATH:/home/ubuntu/IIRS/OpenDroneMap/SuperBuild/install/lib/python2.7/dist-packages
export PYTHONPATH=$PYTHONPATH:/home/ubuntu/IIRS/OpenDroneMap/SuperBuild/src/opensfm
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ubuntu/IIRS/OpenDroneMap/SuperBuild/install/lib

error -
Traceback (most recent call last):
File "run.py", line 11, in
from scripts.odm_app import ODMApp
File "/home/ubuntu/IIRS/OpenDroneMap/scripts/odm_app.py", line 5, in
from opendm import types
File "/home/ubuntu/IIRS/OpenDroneMap/opendm/types.py", line 5, in
from opensfm.exif import sensor_string
ImportError: No module named opensfm.exif

Did u solve this problem?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

plouj picture plouj  路  4Comments

syehorov picture syehorov  路  5Comments

pierotofy picture pierotofy  路  4Comments

JCAAUSFRA picture JCAAUSFRA  路  5Comments

nyinyinyanlin picture nyinyinyanlin  路  3Comments