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
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from typing import Optional
>>> from fastapi import FastAPI
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fastapi/__init__.py", line 7, in <module>
from .applications import FastAPI as FastAPI
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fastapi/applications.py", line 3, in <module>
from fastapi import routing
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fastapi/routing.py", line 18, in <module>
from fastapi import params
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fastapi/params.py", line 4, in <module>
from pydantic.fields import FieldInfo
File "pydantic/__init__.py", line 2, in init pydantic.__init__
File "pydantic/dataclasses.py", line 4, in init pydantic.dataclasses
import types
File "pydantic/error_wrappers.py", line 4, in init pydantic.error_wrappers
File "pydantic/json.py", line 12, in init pydantic.json
File "pydantic/types.py", line 28, in init pydantic.types
yield
File "pydantic/validators.py", line 9, in init pydantic.validators
ImportError: cannot import name Deque
Environment
OS: macOS 10.15.3
To know the FastAPI version use:
python3 -c "import fastapi; print(fastapi.__version__)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fastapi/__init__.py", line 7, in <module>
from .applications import FastAPI as FastAPI
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fastapi/applications.py", line 3, in <module>
from fastapi import routing
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fastapi/routing.py", line 18, in <module>
from fastapi import params
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fastapi/params.py", line 4, in <module>
from pydantic.fields import FieldInfo
File "pydantic/__init__.py", line 2, in init pydantic.__init__
File "pydantic/dataclasses.py", line 4, in init pydantic.dataclasses
import types
File "pydantic/error_wrappers.py", line 4, in init pydantic.error_wrappers
File "pydantic/json.py", line 12, in init pydantic.json
File "pydantic/types.py", line 28, in init pydantic.types
yield
File "pydantic/validators.py", line 9, in init pydantic.validators
ImportError: cannot import name Deque
Python version:
Python3.6.0
Additional context
The text was updated successfully, but these errors were encountered:
And thanks @hukkin for the PR updating the metadata! 👨🔬
Yep, you should probably update the Python version to 3.6.1 at least. Have in mind that 3.6 reaches the end of life in December, by then you should hopefully have upgraded to at least Python 3.7.
First check
Example
Here's a self-contained, minimal, reproducible, example with my use case:
Description
Environment
To know the FastAPI version use:
Additional context
The text was updated successfully, but these errors were encountered: