Skip to content

Commit

Permalink
Force proj db version 6, remove PROJ_LIB setting
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Aug 14, 2021
1 parent 48f08d5 commit 0cfd3c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 0 additions & 6 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
print("Ups! ODM needs to run with Python 3. It seems you launched it with Python 2. Try using: python3 run.py ... ")
sys.exit(1)

# Set PROJ_LIB explicitly unless already set to fix Fiona imports
# when multiple versions of the proj database are installed
import os
import pyproj
if os.environ.get('PROJ_LIB') is None:
os.environ['PROJ_LIB'] = pyproj.datadir.get_data_dir()

from opendm import log
from opendm import config
from opendm import system
Expand Down
1 change: 1 addition & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ parts:
- libspqr2
- libssl1.1
- libusb-1.0-0
- proj-data=6*
- procps
- python3
- python3-distutils
Expand Down

0 comments on commit 0cfd3c9

Please sign in to comment.