Bug 2216150

Summary: [abrt] python3-uvicorn: module(): general_functions.py:41:<module>:NameError: name 'logger' is not defined
Product: [Fedora] Fedora Reporter: lineality
Component: python-uvicornAssignee: Carl George 🤠 <carl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: carl, lineality, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/4933063b285709899aeb3b4dcfbe6b82f01b133
Whiteboard: abrt_hash:6490499dd6802f53c162aa7a64733bd29c173f87;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-29 02:50:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

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.