Bug 2277705

Summary: [abrt] urlscan: start(): __init__.py:338:__getattr__:AttributeError: decoration not found in urwid
Product: [Fedora] Fedora Reporter: Ankur Sinha (FranciscoD) <sanjay.ankur>
Component: urlscanAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/af016f2b3af794122ecb667965f5c606b9714b2
Whiteboard: abrt_hash:a7802c41e56c8bf343d07e4b002721efd2d6e86f;VARIANT_ID=compneuro;
Fixed In Version: urlscan-1.0.1-3.fc41 urlscan-1.0.2-3.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-29 11:00: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: backtrace
none
File: mountinfo
none
File: cpuinfo
none
File: namespaces
none
File: open_fds none

Description Ankur Sinha (FranciscoD) 2024-04-29 10:19:00 UTC
Description of problem:
Use the search function (`/`)

Version-Release number of selected component:
urlscan-1.0.1-2.fc40

Additional info:
reporter:       libreport-2.17.15
crash_function: start
kernel:         6.8.8-300.fc40.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/urlscan -d --headers
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/tmux-spawn-a2956d99-6a05-4d5c-9640-9191232a6d56.scope
interpreter:    python3-3.12.3-2.fc40.x86_64
uid:            1000
reason:         __init__.py:338:__getattr__:AttributeError: decoration not found in urwid
package:        urlscan-1.0.1-2.fc40
comment:        Use the search function (`/`)
exception_type: urwid.event_loop.main_loop.CantUseExternalLoop
executable:     /usr/bin/urlscan
type:           Python3
runlevel:       N 5

Truncated backtrace:
__init__.py:338:__getattr__:AttributeError: decoration not found in urwid

Traceback (most recent call last):
  File "/usr/lib64/python3.12/site-packages/urwid/event_loop/main_loop.py", line 436, in _run
    self.start()
  File "/usr/lib64/python3.12/site-packages/urwid/event_loop/main_loop.py", line 401, in start
    raise CantUseExternalLoop(f"Screen {self.screen!r} doesn't support external event loops")
urwid.event_loop.main_loop.CantUseExternalLoop: Screen <urwid.display.curses.Screen object at 0x7fba4e551370> doesn't support external event loops

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/urlscan", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/urlscan/__main__.py", line 191, in main
    tui.main()
  File "/usr/lib/python3.12/site-packages/urlscan/urlchoose.py", line 263, in main
    self.loop.run()
  File "/usr/lib64/python3.12/site-packages/urwid/event_loop/main_loop.py", line 343, in run
    self._run()
  File "/usr/lib64/python3.12/site-packages/urwid/event_loop/main_loop.py", line 439, in _run
    self._run_screen_event_loop()
  File "/usr/lib64/python3.12/site-packages/urwid/event_loop/main_loop.py", line 510, in _run_screen_event_loop
    self.process_input(keys)
  File "/usr/lib64/python3.12/site-packages/urwid/event_loop/main_loop.py", line 595, in process_input
    something_handled |= bool(self.unhandled_input(k))
                              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/urwid/event_loop/main_loop.py", line 641, in unhandled_input
    return self._unhandled_input(data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/urlscan/urlchoose.py", line 339, in unhandled
    self.keys[key]()
  File "/usr/lib/python3.12/site-packages/urlscan/urlchoose.py", line 479, in _search_key
    self._search()
  File "/usr/lib/python3.12/site-packages/urlscan/urlchoose.py", line 702, in _search
    if isinstance(col[0], urwid.decoration.AttrMap):
                          ^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/urwid/__init__.py", line 338, in __getattr__
    raise AttributeError(f"{name} not found in {__package__}")
AttributeError: decoration not found in urwid

Local variables in innermost frame:
name: 'decoration'

Comment 1 Ankur Sinha (FranciscoD) 2024-04-29 10:19:04 UTC
Created attachment 2029969 [details]
File: os_info

Comment 2 Ankur Sinha (FranciscoD) 2024-04-29 10:19:05 UTC
Created attachment 2029970 [details]
File: environ

Comment 3 Ankur Sinha (FranciscoD) 2024-04-29 10:19:06 UTC
Created attachment 2029971 [details]
File: backtrace

Comment 4 Ankur Sinha (FranciscoD) 2024-04-29 10:19:08 UTC
Created attachment 2029972 [details]
File: mountinfo

Comment 5 Ankur Sinha (FranciscoD) 2024-04-29 10:19:09 UTC
Created attachment 2029973 [details]
File: cpuinfo

Comment 6 Ankur Sinha (FranciscoD) 2024-04-29 10:19:10 UTC
Created attachment 2029974 [details]
File: namespaces

Comment 7 Ankur Sinha (FranciscoD) 2024-04-29 10:19:12 UTC
Created attachment 2029975 [details]
File: open_fds

Comment 8 Fedora Update System 2024-04-29 10:55:19 UTC
FEDORA-2024-175b646e70 (urlscan-1.0.1-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-175b646e70

Comment 9 Fedora Update System 2024-04-29 10:57:35 UTC
FEDORA-2024-e5014d7d2b (urlscan-1.0.1-3.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e5014d7d2b

Comment 10 Fedora Update System 2024-04-29 11:00:23 UTC
FEDORA-2024-175b646e70 (urlscan-1.0.1-3.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-04-30 02:06:42 UTC
FEDORA-2024-e5014d7d2b has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e5014d7d2b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e5014d7d2b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-05-06 01:38:23 UTC
FEDORA-2024-5cb5883131 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5cb5883131`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5cb5883131

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2024-05-14 01:26:04 UTC
FEDORA-2024-5cb5883131 (urlscan-1.0.2-3.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.