Error message "invalid syntax, parameter annotations require 3.x"

14 views
Skip to first unread message

Kuganesan Sivasubramaniam

unread,
Mar 17, 2017, 8:14:04 AM3/17/17
to shyft
Hi,
We setup C++ build environment in a new PC as described in the updated Wiki and built solution.
We manage to debug some of the errors and finally it was built successfully.
However, it shows still some errors, attached herewith.
"invalid syntax, parameter annotations require 3.x"
What is the reason for such error message?
Thanking You
Kuganesan
SHYFT error message.png

Felix Matt

unread,
Mar 17, 2017, 8:18:47 AM3/17/17
to sh...@googlegroups.com
Hi,

I would guess this looks like you are using a wrong python version.

Do you use python 3.5 or higher, as required by Shyft?

Best,

Felix

Kuganesan Sivasubramaniam

unread,
Mar 17, 2017, 9:31:59 AM3/17/17
to shyft, f.n....@geo.uio.no
Hi,
Thank you for your reply. 
Yes, we use Python 3.4.5.

We installed latest version of Python 3.6.0 
Then we downgraded to 3.4.5 as gdal is not compatible with python 3.5 or 3.6.

We install python environment as follows,
Install anaconda 4.3.1 for python 3.6 version.
Then we installed some of the missing programs gdal, pyproj, netcdf, shapely
When we run "conda install gdal" we get message that gdal is not compatible with python 3.5
Then we downgraded python by "conda install python=3.4"  
With downgraded Python, it is possible to install gdal and other missing in conda required for shyft.
conda install gdal (2.10)
conda install pyproj (1.9.5.1)
conda install netcdf (1.2.4)
conda install shapely (1.5.13)
conda install -c scitools shapely=1.5.13

How did you manage to install gdal with python latest version in the conda environment?
Thanking You
Kuganesan

Kuganesan Sivasubramaniam

unread,
Mar 17, 2017, 1:52:46 PM3/17/17
to shyft
Hi,
I use python 3.4.5 in my PC and I built solution
but I have not received such error message.
Kuganesan

sigbjorn.helset

unread,
Mar 17, 2017, 2:41:38 PM3/17/17
to shyft
Hi,
As noted on our wiki, , the windows python distro is lagging behind other distros, and the resolution to that is to use
other channels for windows-distro.
We have found conda-forge to be sufficient ( https://conda-forge.github.io/)

using -c conda-forge when installing packages helps, and one easy step to ensure this is to 
put a file, named .condarc on the C:\Anaconda  or C:\Miniconda3 directory with the following content:
```
channels:
  - conda-forge
  - defaults
```
prior to installing the packages.

You can also put the file in place in your existing install, then
conda update --all
to let conda-forge packages take precedence.

Br Sigbjørn
Reply all
Reply to author
Forward
0 new messages