Skip to content

pyinstaller package well but could not open exe #4878

@wanghaisheng

Description

@wanghaisheng

First Check

  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the FastAPI documentation, with the integrated search.
  • I already searched in Google "How to X in FastAPI" and didn't find any information.
  • I already read and followed all the tutorial in the docs and didn't find an answer.
  • I already checked if it is not related to FastAPI but to Pydantic.
  • I already checked if it is not related to FastAPI but to Swagger UI.
  • I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

  • I commit to help with one of those options 👆

Example Code

https://github.com/wanghaisheng/link-detec-shopconan/blob/main/main.py

Description

Traceback (most recent call last):
File "app.py", line 3, in
File "D:\Program Files\anaconda3\lib\site-packages\fastapi_init_.py", line 7, in
from .applications import FastAPI as FastAPI
File "D:\Program Files\anaconda3\lib\site-packages\fastapi\applications.py", line 4, in
from fastapi import routing
File "D:\Program Files\anaconda3\lib\site-packages\fastapi\routing.py", line 21, in
from fastapi import params
File "D:\Program Files\anaconda3\lib\site-packages\fastapi\params.py", line 4, in
from pydantic.fields import FieldInfo, Undefined
File "pydantic_init_.py", line 2, in init pydantic.init
ImportError: cannot import name dataclasses

Operating System

Windows

Operating System Details

No response

FastAPI Version

0.76.0

Python Version

3.8.5

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions