aristocratos / bpytop

Linux/OSX/FreeBSD resource monitor
Apache License 2.0
10.07k stars 397 forks source link

[BUG] OSError: [Errno 25] Inappropriate ioctl for device #407

Open turkeyphant opened 10 months ago

turkeyphant commented 10 months ago

Describe the bug

When I try to run bpytop by putting in my .zshrc I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/bpytop", line 5687, in <module>
    main()
  File "/usr/local/bin/bpytop", line 5559, in main
    Term.width = os.get_terminal_size().columns
OSError: [Errno 25] Inappropriate ioctl for device

To Reproduce

Add bpytop to final line in .zshrc and run exec zsh

Expected behavior

bpytop runs

Screenshots

[If applicable, add screenshots to help explain your problem.]

Info (please complete the following information):

Additional context

08/11/23 (10:57:54) | INFO: New instance of bpytop version 1.0.68 started with pid 32507
08/11/23 (10:57:54) | INFO: Loglevel set to DEBUG
08/11/23 (10:57:54) | DEBUG: Using psutil version 5.7.3
08/11/23 (10:57:54) | DEBUG: CMD: /usr/local/bin/bpytop --debug

(try running bpytop with --debug flag if error.log is empty)