Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error on debian 9 with Python v 3.5.3 #7

Open
ralfhauser opened this issue Oct 29, 2019 · 1 comment
Open

syntax error on debian 9 with Python v 3.5.3 #7

ralfhauser opened this issue Oct 29, 2019 · 1 comment

Comments

@ralfhauser
Copy link

ralfhauser commented Oct 29, 2019

in jupyter notebook, got the below error when doing

import pandas as pd
import io
import numpy as np
from urllib.request import urlopen
import json
from math import *
from platform import python_version
print("Python v "+python_version())
from gastrodon import RemoteEndpoint,QName,ttl,URIRef,inline
from matplotlib import pyplot

<<
Traceback (most recent call last):

File "/usr/local/lib/python3.5/dist-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 9, in
from gastrodon import RemoteEndpoint,QName,ttl,URIRef,inline

File "/usr/local/lib/python3.5/dist-packages/gastrodon/init.py", line 136
kwargs:Dict={}
^
SyntaxError: invalid syntax

Any hints ?

@cknoll
Copy link

cknoll commented Jan 30, 2022

Background: As far as I know so called typing hints like kwargs:Dict={} were introduced in Python 3.6. They (normally) have no algorithmic consequence but help IDEs to give useful auto-completion proposals and type warnings during development.

As setup.py states this package requires at least Python 3.7.

In case anybody uses an OS where the Python version is too old, I would recommend using miniconda, e.g. from

https://repo.continuum.io/miniconda/ or directly from https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh.

Then one can create environments for different (and newer) python versions (which is imho not possible with packages like venv or virtualenv).

I would opt for closing this issus with label wontfix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants