Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyInstaller is broken #21

Open
shubham1172 opened this issue Jun 12, 2021 · 2 comments
Open

PyInstaller is broken #21

shubham1172 opened this issue Jun 12, 2021 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@shubham1172
Copy link
Owner

PyInstaller: 4.3
Python: 3.8.6
Platform: Windows-10-10.0.19041-SP0

Traceback (most recent call last):
  File "logging\config.py", line 388, in resolve
AttributeError: module 'uvicorn' has no attribute 'logging'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging\config.py", line 390, in resolve
ModuleNotFoundError: No module named 'uvicorn.logging'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "logging\config.py", line 542, in configure
  File "logging\config.py", line 654, in configure_formatter
  File "logging\config.py", line 469, in configure_custom
  File "logging\config.py", line 397, in resolve
  File "logging\config.py", line 390, in resolve
ValueError: Cannot resolve 'uvicorn.logging.DefaultFormatter': No module named 'uvicorn.logging'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "main.py", line 115, in <module>
  File "uvicorn\main.py", line 375, in run
  File "uvicorn\config.py", line 205, in __init__
  File "uvicorn\config.py", line 251, in configure_logging
  File "logging\config.py", line 808, in dictConfig
  File "logging\config.py", line 545, in configure
ValueError: Unable to configure formatter 'default'
[22308] Failed to execute script main
@shubham1172 shubham1172 added the bug Something isn't working label Jun 12, 2021
@Torro
Copy link

Torro commented Jun 23, 2021

I'm unable to reproduce this issue on ubuntu groovy (20.10) w. python 3.8.6, pyinstaller 4.2, and uvicorn 0.14.0

What version of uvicorn are you using?

@shubham1172
Copy link
Owner Author

@Torro, it's 0.13.4

$ pip show uvicorn
Name: uvicorn
Version: 0.13.4
Summary: The lightning-fast ASGI server.
Home-page: https://github.com/encode/uvicorn
Author: Tom Christie
Author-email: [email protected]
License: BSD
Location: c:\users\shubhash\appdata\local\programs\python\python38\lib\site-packages
Requires: h11, click
Required-by:

@shubham1172 shubham1172 self-assigned this Oct 1, 2021
@shubham1172 shubham1172 removed their assignment Jan 16, 2022
@shubham1172 shubham1172 added the help wanted Extra attention is needed label Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants