You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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
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 ?
The text was updated successfully, but these errors were encountered: