Bug 2216150 - [abrt] python3-uvicorn: module(): general_functions.py:41:<module>:NameError: name 'logger' is not defined
Summary: [abrt] python3-uvicorn: module(): general_functions.py:41:<module>:NameError:...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-uvicorn
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carl George 🤠
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6490499dd6802f53c162aa7a647...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-20 10:11 UTC by lineality
Modified: 2023-07-29 02:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-29 02:50:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-06-20 10:11 UTC, lineality
no flags Details
File: environ (3.01 KB, text/plain)
2023-06-20 10:11 UTC, lineality
no flags Details
File: mountinfo (3.63 KB, text/plain)
2023-06-20 10:11 UTC, lineality
no flags Details
File: open_fds (313 bytes, text/plain)
2023-06-20 10:11 UTC, lineality
no flags Details
File: namespaces (171 bytes, text/plain)
2023-06-20 10:11 UTC, lineality
no flags Details
File: backtrace (10.84 KB, text/plain)
2023-06-20 10:11 UTC, lineality
no flags Details
File: cpuinfo (2.98 KB, text/plain)
2023-06-20 10:11 UTC, lineality
no flags Details

Description lineality 2023-06-20 10:11:04 UTC
Version-Release number of selected component:
python3-uvicorn-0.15.0-5.fc38

Additional info:
reporter:       libreport-2.17.10
kernel:         6.3.8-200.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/uvicorn server:app --port 5000 --timeout-keep-alive 5000
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-3cf0755c-b8fb-492b-bb49-771882996acb.scope
uid:            1000
reason:         general_functions.py:41:<module>:NameError: name 'logger' is not defined
executable:     /usr/bin/uvicorn
type:           Python3
package:        python3-uvicorn-0.15.0-5.fc38
runlevel:       N 5
exception_type: ModuleNotFoundError
crash_function: module

Truncated backtrace:
#1 [/home/anonymized/code/fast_api_12_route_db/docker_app/functions_config_etc/general_functions.py:8] <module>

Comment 1 lineality 2023-06-20 10:11:07 UTC
Created attachment 1971689 [details]
File: os_info

Comment 2 lineality 2023-06-20 10:11:08 UTC
Created attachment 1971690 [details]
File: environ

Comment 3 lineality 2023-06-20 10:11:10 UTC
Created attachment 1971691 [details]
File: mountinfo

Comment 4 lineality 2023-06-20 10:11:11 UTC
Created attachment 1971692 [details]
File: open_fds

Comment 5 lineality 2023-06-20 10:11:13 UTC
Created attachment 1971693 [details]
File: namespaces

Comment 6 lineality 2023-06-20 10:11:14 UTC
Created attachment 1971694 [details]
File: backtrace

Comment 7 lineality 2023-06-20 10:11:16 UTC
Created attachment 1971695 [details]
File: cpuinfo

Comment 8 Carl George 🤠 2023-07-29 02:50:23 UTC
Based on the cmdline and reason fields above, this appears to be a problem in your general_functions.py file.  That file doesn't exist in the python3-uvicorn package.  The logging module is part of the Python standard library in Fedora 38, so I suspect this is just a case of your file missing an `import logging` statement.

I'm going to close this bug for now, but if I'm missing something please feel free to re-open it with the minimal steps to reproduce the problem.


Note You need to log in before you can comment on or make changes to this bug.