open-elevation icon indicating copy to clipboard operation
open-elevation copied to clipboard

Ubuntu 20

Open Revoola opened this issue 4 years ago • 4 comments

Would it please be possible to provide instructions on how to use this with Ubuntu 20 I managed to get past the command sudo apt install gdal-bin python-gdal by running sudo apt-get install python3-gdal

But then I got stuck with pip install -r requirements.txt with throwing a load of errors

Revoola avatar Oct 08 '21 14:10 Revoola

Maybe try this one... Normally hangs on GDAL:

Before installing the GDAL Python libraries, you’ll need to install the GDAL development libraries. sudo apt-get install libgdal-dev You’ll also need to export a couple of environment variables for the compiler.

export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal

Now you can use pip to install the Python GDAL bindings. pip install GDAL==<GDAL VERSION>

Now try run the pip install -r requirements.txt again. Or run the commands from requirements.txt manually and check where it fails. (pip install <LINE OF THE REQUIREMENTS.TXT> - Each line in requirements is a seperat command) Can you post the error log?

Developer66 avatar Oct 08 '21 14:10 Developer66

I changed the version of Gdal in requirements to 3.0.4 and it seems to work.. I hope :-)

------ Original Message ------ From: "Developer66" @.> To: "Developer66/open-elevation" @.> Cc: "Revoola" @.>; "Author" @.> Sent: 08/10/2021 15:44:47 Subject: Re: [Developer66/open-elevation] Ubuntu 20 (#21)

Maybe try this one... Normally hangs on GDAL:

Before installing the GDAL Python libraries, you’ll need to install the GDAL development libraries. sudo apt-get install libgdal-dev You’ll also need to export a couple of environment variables for the compiler.

export CPLUS_INCLUDE_PATH=/usr/include/gdal

export C_INCLUDE_PATH=/usr/include/gdal

Now you can use pip to install the Python GDAL bindings. pip install GDAL==<GDAL VERSION>

Now try run the pip install -r requirements.txt again. Or run the commands from requirements.txt manually and check where it fails. (pip install <LINE OF THE REQUIREMENTS.TXT> - Each line in requirements is a seperat command) Can you post the error log?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Developer66/open-elevation/issues/21#issuecomment-938699220, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHO3Q2ZXOP6OIYJ2TAIGFH3UF37V7ANCNFSM5FTXVSVA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Revoola avatar Oct 08 '21 14:10 Revoola

I still am not managing to get this working on Ubuntu 20 and have issues setting up autostart, can you please if you get time give instructions for ubuntu 20?

------ Original Message ------ From: "Developer66" @.> To: "Developer66/open-elevation" @.> Cc: "Revoola" @.>; "Author" @.> Sent: 08/10/2021 15:44:47 Subject: Re: [Developer66/open-elevation] Ubuntu 20 (#21)

Maybe try this one... Normally hangs on GDAL:

Before installing the GDAL Python libraries, you’ll need to install the GDAL development libraries. sudo apt-get install libgdal-dev You’ll also need to export a couple of environment variables for the compiler.

export CPLUS_INCLUDE_PATH=/usr/include/gdal

export C_INCLUDE_PATH=/usr/include/gdal

Now you can use pip to install the Python GDAL bindings. pip install GDAL==<GDAL VERSION>

Now try run the pip install -r requirements.txt again. Or run the commands from requirements.txt manually and check where it fails. (pip install <LINE OF THE REQUIREMENTS.TXT> - Each line in requirements is a seperat command) Can you post the error log?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Developer66/open-elevation/issues/21#issuecomment-938699220, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHO3Q2ZXOP6OIYJ2TAIGFH3UF37V7ANCNFSM5FTXVSVA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Revoola avatar Oct 11 '21 10:10 Revoola

Please post the log of following command: sudo service open-elevation

I think in the autostart file you have to change this line: ExecStart=/usr/bin/env python <<PATH-TO-YOUR-SERVER.PY>>/server.py to python3

Developer66 avatar Oct 16 '21 08:10 Developer66