Purchased Installer Recieving Code 1

Hello all,

I purchased the installer, and ran the install.sh on a Ubuntu Server 16.04. The Web interfaces boots up great, however when I try to process a set of images I receive a code 1 error.

Thanks,

Hardware Specs:

Dell Poweredge r620
16 cores and 32GB of RAM

Dropbox Link:

The task output:

Traceback (most recent call last):
File “/code/run.py”, line 12, in
from stages.odm_app import ODMApp
File “/code/stages/odm_app.py”, line 4, in
from opendm import types
File “/code/opendm/types.py”, line 6, in
from opensfm.exif import sensor_string
File “/code/SuperBuild/src/opensfm/opensfm/exif.py”, line 10, in
from opensfm.sensors import sensor_data
File “/code/SuperBuild/src/opensfm/opensfm/sensors.py”, line 4, in
from opensfm import io
File “/code/SuperBuild/src/opensfm/opensfm/io.py”, line 15, in
import pyproj
ImportError: No module named pyproj

Hi,

what happens if you run:

sudo pip install -U PyYAML==3.13 \
                        exifread \
                        gpxpy \
                        xmltodict \
                        appsettings \
                        loky \
                        repoze.lru \
                        rasterio \
                        attrs==19.1.0 \
                        pyodm==1.5.2b1 \
                        Pillow \
                        networkx \
                        scipy==1.2.1 \
                        numpy==1.15.4 \
                        shapely \
                        pyproj \
                        psutil \
                        joblib

Does it fix the problem?

So it looks like they installed,

Successfully installed Pillow-6.1.0 PyYAML-3.13 affine-2.3.0 appsettings-0.8 attrs-19.1.0 certifi-2019.9.11 chardet-3.0.4 click-7.0 click-plugins-1.1.1 cligj-0.5.0 cloudpickle-1.2.2 decorator-4.4.0 exifread-2.1.2 gpxpy-1.3.5 idna-2.8 loky-2.5.1 networkx-2.3 numpy-1.15.4 psutil-5.6.3 pyodm-1.5.2b1 pyparsing-2.4.2 pyproj-2.3.1 rasterio-1.0.28 repoze.lru-0.7 requests-2.21.0 requests-toolbelt-0.9.1 scipy-1.2.1 shapely-1.6.4.post2 snuggs-1.4.6 urllib3-1.24.1 xmltodict-0.12.0

however still outputting the same.

Traceback (most recent call last):
File “/code/run.py”, line 12, in
from stages.odm_app import ODMApp
File “/code/stages/odm_app.py”, line 4, in
from opendm import types
File “/code/opendm/types.py”, line 6, in
from opensfm.exif import sensor_string
File “/code/SuperBuild/src/opensfm/opensfm/exif.py”, line 10, in
from opensfm.sensors import sensor_data
File “/code/SuperBuild/src/opensfm/opensfm/sensors.py”, line 4, in
from opensfm import io
File “/code/SuperBuild/src/opensfm/opensfm/io.py”, line 15, in
import pyproj
ImportError: No module named pyproj

Try to pin the version of pyproj and networkx:

sudo pip install -U pyproj==2.2.2 networkx==2.2

So it installed,

Installing collected packages: pyproj, networkx
Found existing installation: pyproj 2.3.1
Uninstalling pyproj-2.3.1:
Successfully uninstalled pyproj-2.3.1
Found existing installation: networkx 2.3
Uninstalling networkx-2.3:
Successfully uninstalled networkx-2.3
Successfully installed networkx-2.2 pyproj-2.2.2

However no change,

Traceback (most recent call last):
File “/code/run.py”, line 12, in
from stages.odm_app import ODMApp
File “/code/stages/odm_app.py”, line 4, in
from opendm import types
File “/code/opendm/types.py”, line 6, in
from opensfm.exif import sensor_string
File “/code/SuperBuild/src/opensfm/opensfm/exif.py”, line 10, in
from opensfm.sensors import sensor_data
File “/code/SuperBuild/src/opensfm/opensfm/sensors.py”, line 4, in
from opensfm import io
File “/code/SuperBuild/src/opensfm/opensfm/io.py”, line 15, in
import pyproj
ImportError: No module named pyproj

Mm, really strange.

Could you try to run instead:

cd /code
git pull
sudo bash configure.sh install
sudo chown -R odm:odm /code

?

Here are the results of the install

After I installed, I tried to reprocess the images same results.

Traceback (most recent call last):
File “/code/run.py”, line 12, in
from stages.odm_app import ODMApp
File “/code/stages/odm_app.py”, line 4, in
from opendm import types
File “/code/opendm/types.py”, line 6, in
from opensfm.exif import sensor_string
File “/code/SuperBuild/src/opensfm/opensfm/exif.py”, line 10, in
from opensfm.sensors import sensor_data
File “/code/SuperBuild/src/opensfm/opensfm/sensors.py”, line 4, in
from opensfm import io
File “/code/SuperBuild/src/opensfm/opensfm/io.py”, line 15, in
import pyproj
ImportError: No module named pyproj

Something doesn’t add up. If you run:

sudo pip install -U pyproj==2.2.2

It will install pyproj.

If you then run:

echo "import pyproj" | python

You should get no error messages (or do you get errors?)

If you get errors, something is messed up with the Python installation (is this a fresh install of Ubuntu 16.04?)

Yes I receive errors, and yes this a fresh install of 16.04.

[email protected]:~$ sudo pip install -U pyproj==2.2.2
[sudo] password for odm:
WARNING: The directory ‘/home/odm/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
WARNING: The directory ‘/home/odm/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Requirement already up-to-date: pyproj==2.2.2 in /usr/local/lib/python3.5/dist-packages (2.2.2)
Requirement already satisfied, skipping upgrade: aenum; python_version < “3.6” in /usr/local/lib/python3.5/dist-packages (from pyproj==2.2.2) (2.2.1)
[email protected]:~$ echo “import pyproj” | python
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named pyproj
[email protected]:~$

Ok, this helps. It’s a permission problem.

Try:

sudo -H pip install -U pyproj==2.2.2 networkx==2.2

?

Here are the results,

[email protected]:~$ sudo -H pip install -U pyproj==2.2.2
Requirement already up-to-date: pyproj==2.2.2 in /usr/local/lib/python3.5/dist-packages (2.2.2)
Requirement already satisfied, skipping upgrade: aenum; python_version < “3.6” in /usr/local/lib/python3.5/dist-packages (from pyproj==2.2.2) (2.2.1)
[email protected]:~$ echo “import pyproj” | python
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named pyproj
[email protected]:~$

Am I supposed to be using a different version of python?

Python 2.x (for ODM and NodeODM).

Perhaps this is a problem of pip being linked (strange?) to Python 3 by default.

What about:

sudo -H pip2 install -U pyproj==2.2.2 networkx==2.2

?

ran into a few more errors with missing dependencys proceded to run … incoming lot of messages

sudo -H pip2 install -U scipy==1.2.1 numpy==1.15.4(edited)

and then

sudo -H pip2 install -U psutil

so all in all, it appears it was using pip3 instead of pip2.

It works now, processed those images and they turned out great!

Thank you so much for your help!

1 Like