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

AttributeError: module 'urwid' has no attribute 'decoration' #238

Closed
ryusko2 opened this issue Sep 22, 2023 · 1 comment
Closed

AttributeError: module 'urwid' has no attribute 'decoration' #238

ryusko2 opened this issue Sep 22, 2023 · 1 comment

Comments

@ryusko2
Copy link

ryusko2 commented Sep 22, 2023

Fresh install using pipx (recommended) in two different OSes:

Arch 5.15.94-1-lts
Debian 6.5.3-1 (<-- transmission-daemon is running here)

I have an active ssh connection forwarding arch localhost:10001 to the Debian box, port 9091, that I have successfully transmission-remoted files to so I know I have a good tunnel with good rpc. Both machines are on my local network, so there are no firewall issues.

I first tried running stig on arch, creating ~/.config/stig/rc with the following contents:

set connect.host localhost (also tried 127.0.0.1)
set connect.port 10001

Just in case stig wasn't finding that file, I also tried running stig -c ~/.config/stig/rc but encountered the same issue.

In both cases, I received the following error:

  File "/home/someone/.local/bin/stig", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/home/someone/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/__init__.py", line 25, in run
    main.run()
  File "/home/someone/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/main.py", line 102, in run
    if not tui.run(run_commands):
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/someone/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/tui/main.py", line 30, in run
    from . import tuiobjects
  File "/home/someone/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/tui/tuiobjects.py", line 22, in <module>
    from . import theme, urwidpatches  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/someone/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/tui/urwidpatches.py", line 277, in <module>
    urwid.decoration.remove_defaults = remove_defaults
    ^^^^^^^^^^^^^^^^
AttributeError: module 'urwid' has no attribute 'decoration' 

Then, to really make sure it wasn't a remote/ssh issue, I installed stig on the Debian machine, also using pipx, and ran it on that machine with defaults (and a good WebUI on localhost:9091, as transmission-daemon is set up with defaults), but I received the same AttributeError listed above.

Standing by to provide further clarification, if any is needed...

transmission-daemon 4.0.2 (2a57b17031)
stig version 0.12.5a0

@rndusr
Copy link
Owner

rndusr commented Sep 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants