pip install -e .
Obtaining file:///home/prakki/sw/scenicplus
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/prakki/sw/pyenv/versions/3.6.4/bin/python3.6 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/prakki/sw/scenicplus/setup.py'"'"'; __file__='"'"'/home/prakki/sw/scenicplus/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-rn24et6_
cwd: /home/prakki/sw/scenicplus/
Complete output (22 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/prakki/sw/scenicplus/setup.py", line 48, in <module>
"Operating System :: OS Independent",
File "/home/prakki/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/home/prakki/.local/lib/python3.6/site-packages/setuptools/dist.py", line 444, in __init__
k: v for k, v in attrs.items()
File "/home/prakki/sw/pyenv/versions/3.6.4/lib/python3.6/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/home/prakki/.local/lib/python3.6/site-packages/setuptools/dist.py", line 732, in finalize_options
ep.load()(self, ep.name, value)
File "/home/prakki/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2434, in load
return self.resolve()
File "/home/prakki/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2440, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/home/prakki/sw/scenicplus/.eggs/setuptools_scm-7.1.0-py3.6.egg/setuptools_scm/__init__.py", line 5
from __future__ import annotations
^
SyntaxError: future feature annotations is not defined
----------------------------------------
WARNING: Discarding file:///home/prakki/sw/scenicplus. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Solution:
For some reason, although I installed python3.8 version for scenic+, still it reported error. And surprisingly, my python version was found to be 3.6
$ python --version
Python 3.6.4
but, I had python3.8 version installed in the scenicplus environment.
$ which python3.8
/home/prakki/anaconda3/envs/scenicplus/bin/python3.8
Assuming I am using older version of pip, I checked the above bin had a latest pip version.
and running the below command finally worked in the installation of scenic
/home/prakki/anaconda3/envs/scenicplus/bin/pip install .