When installing sphinx and running sphinx-quickstart I get the following error:
Traceback (most recent call last):
File "/usr/sbin/sphinx-quickstart", line 11, in <module>
load_entry_point('Sphinx==2.0.1', 'console_scripts', 'sphinx-quickstart')()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
return ep.load()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2434, in load
return self.resolve()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2440, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.7/site-packages/sphinx/cmd/quickstart.py", line 43, in <module>
from sphinx.util.template import SphinxRenderer
File "/usr/lib/python3.7/site-packages/sphinx/util/template.py", line 13, in <module>
from jinja2.sandbox import SandboxedEnvironment
File "/usr/lib/python3.7/site-packages/jinja2/__init__.py", line 82, in <module>
_patch_async()
File "/usr/lib/python3.7/site-packages/jinja2/__init__.py", line 78, in _patch_async
from jinja2.asyncsupport import patch_all
File "/usr/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 13, in <module>
import asyncio
File "/home/sevaho/.local/lib/python3.7/site-packages/asyncio/__init__.py", line 21, in <module>
from .base_events import *
File "/home/sevaho/.local/lib/python3.7/site-packages/asyncio/base_events.py", line 296
future = tasks.async(future, loop=self)
^
SyntaxError: invalid syntax
I ran it in a pipenv environment so it should be isolated :/
Environment info*
This is very strange situation. It seems your PC contains "3rd party" asyncio module... And it is not compatible with python 3.7.
File "/home/sevaho/.local/lib/python3.7/site-packages/asyncio/__init__.py", line 21, in <module>
from .base_events import *
File "/home/sevaho/.local/lib/python3.7/site-packages/asyncio/base_events.py", line 296
future = tasks.async(future, loop=self)
^
SyntaxError: invalid syntax
I don't know why asyncio package is installed. It is no longer needed for python3.7. It was merged into python-core in 3.4.
https://pypi.org/project/asyncio/
Please check why such package is installed and try again after removal of it.
You are totally right, my bad. Thank you!
Most helpful comment
This is very strange situation. It seems your PC contains "3rd party"
asynciomodule... And it is not compatible with python 3.7.I don't know why
asynciopackage is installed. It is no longer needed for python3.7. It was merged into python-core in 3.4.https://pypi.org/project/asyncio/
Please check why such package is installed and try again after removal of it.