Skip to content

fast_host.py and slow_host.py don't work on Arch Linux #2

@efe3535

Description

@efe3535

fast_host.py

------------- [ initialize ] -------------

Device not found... Connect device
Device Found!!
Setting device configuration...
ERROR: USBError occured. Re-connect the device...

---------------- [ end ] ----------------


------------- [ handshake ] -------------

ERROR: USBError occured. Re-connect the device...

---------------- [ end ] ----------------


------------- [ stream start ] -------------

Streaming started...
Traceback (most recent call last):
  File "/home/enginar/git-repos/stm32_tiny_monitor/host_python_scripts/fast_host/start_host.py", line 1, in <module>
    import fast_host
  File "fast_host.pyx", line 146, in init fast_host
    initialize()
  File "fast_host.pyx", line 141, in fast_host.initialize
    stream_out(usb_device)
  File "fast_host.pyx", line 101, in fast_host.stream_out
    img = Image.frombytes('RGB', (w, h), sct.grab(monitor).rgb)                 # <-- mss is way fater than pyautogui
  File "/usr/lib/python3.10/site-packages/mss/base.py", line 88, in grab
    return self._grab_impl(monitor)
  File "/usr/lib/python3.10/site-packages/mss/linux.py", line 446, in _grab_impl
    ximage = self.xlib.XGetImage(
  File "/usr/lib/python3.10/site-packages/mss/linux.py", line 191, in validate
    raise ScreenShotError(err, details=details)
mss.exception.ScreenShotError: XGetImage() failed
~/git-repos/stm32_tiny_monitor/host_python_scripts/f

slow_host.py

------------- [ initialize ] -------------

TinyMonitor Found... :)
Setting device configuration...
ERROR: USBError occured. Re-connect the device...

---------------- [ end ] ----------------


------------- [ handshake ] -------------

ERROR: USBError occured. Re-connect the device...

---------------- [ end ] ----------------


------------- [ stream start ] -------------

Streaming started...
Traceback (most recent call last):
  File "/home/enginar/git-repos/stm32_tiny_monitor/host_python_scripts/slow_host/host.py", line 144, in <module>
    initialize()
  File "/home/enginar/git-repos/stm32_tiny_monitor/host_python_scripts/slow_host/host.py", line 139, in initialize
    stream_out(usb_device)
  File "/home/enginar/git-repos/stm32_tiny_monitor/host_python_scripts/slow_host/host.py", line 99, in stream_out
    img = Image.frombytes('RGB', (w, h), sct.grab(monitor).rgb)                 # <-- mss is way fater than pyautogui
  File "/usr/lib/python3.10/site-packages/mss/base.py", line 88, in grab
    return self._grab_impl(monitor)
  File "/usr/lib/python3.10/site-packages/mss/linux.py", line 446, in _grab_impl
    ximage = self.xlib.XGetImage(
  File "/usr/lib/python3.10/site-packages/mss/linux.py", line 191, in validate
    raise ScreenShotError(err, details=details)
mss.exception.ScreenShotError: XGetImage() failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions