-
Notifications
You must be signed in to change notification settings - Fork 62
Source list is empty [Linux] #74
Comments
Going off the error, this seems like it's an error in PyWinCtl, their getAllScreens function, and whatever desktop environment/window manager you're using. It would be more appropriate to ask there |
Thanks, I'll open an issue with them. |
Hello, I got same problem here no source in list, I use I try this little script import pywinctl
print(pywinctl.getAllScreens())
print (" ")
print(pywinctl.getAllWindows()) and i got this in return
In the zoom_and_follow_mouse log i got this:
|
Same problem here OBS 29.0.0-1 This script
returns
zoom_and_follow_mouse log:
|
I was having the same issue, running Fedora 37 with Sway. I've made an update to the script to now accept Pipewire sources, which can be found at this PR: #93. I'm still in the process of testing it on my system, but feel free to give it a shot as well. Edit: |
Many thanks! At first glance sources are showing up. I'll have to test more thoroughly. |
It worked, but now when I press the zoom hot-key I get this error: [zoom_and_follow_mouse.py] Traceback (most recent call last):
[zoom_and_follow_mouse.py] File "/usr/share/obs/obs-plugins/frontend-tools/scripts/zoom_and_follow_mouse.py", line 873, in toggle_zoom
[zoom_and_follow_mouse.py] zoom.update_sources()
[zoom_and_follow_mouse.py] File "/usr/share/obs/obs-plugins/frontend-tools/scripts/zoom_and_follow_mouse.py", line 103, in update_sources
[zoom_and_follow_mouse.py] self.monitors = pwc.getAllScreens()
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/pywinctl/_pywinctl_linux.py", line 1181, in getAllScreens
[zoom_and_follow_mouse.py] wa = EWMH.getWorkArea() or [0, 0, 0, 0]
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/ewmh/ewmh.py", line 311, in getWorkArea
[zoom_and_follow_mouse.py] return self._getProperty('_NET_WORKAREA')
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/ewmh/ewmh.py", line 405, in _getProperty
[zoom_and_follow_mouse.py] atom = win.get_full_property(self.display.get_atom(_type),
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/xobject/drawable.py", line 476, in get_full_property
[zoom_and_follow_mouse.py] prop = self.get_property(property, property_type, sizehint,
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/xobject/drawable.py", line 455, in get_property
[zoom_and_follow_mouse.py] r = request.GetProperty(display = self.display,
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/protocol/rq.py", line 1368, in __init__
[zoom_and_follow_mouse.py] self.reply()
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/protocol/rq.py", line 1380, in reply
[zoom_and_follow_mouse.py] self._display.send_and_recv(request = self._serial)
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/protocol/display.py", line 612, in send_and_recv
[zoom_and_follow_mouse.py] gotreq = self.parse_response(request)
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/protocol/display.py", line 704, in parse_response
[zoom_and_follow_mouse.py] gotreq = self.parse_request_response(request) or gotreq
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/protocol/display.py", line 792, in parse_request_response
[zoom_and_follow_mouse.py] req._parse_response(self.data_recv[:self.recv_packet_len])
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/protocol/rq.py", line 1392, in _parse_response
[zoom_and_follow_mouse.py] self._data, d = self._reply.parse_binary(data, self._display, rawdict = True)
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/protocol/rq.py", line 1202, in parse_binary
[zoom_and_follow_mouse.py] ret[f.name], data = f.parse_binary_value(data, display,
[zoom_and_follow_mouse.py] File "/home/leonardo/.local/lib/python3.10/site-packages/Xlib/protocol/rq.py", line 671, in parse_binary_value
[zoom_and_follow_mouse.py] return ret, data
[zoom_and_follow_mouse.py] UnboundLocalError: local variable 'ret' referenced before assignment |
I am not seeing any source in Linux.
I am using OBS 28.
Python version 3.10.7
I am almost wondering if this is an issue with the OBS api itself.
Script log is below. I know a bit of Python so glad to try to update the script if needed. I'm really interested in actually getting this working for content creation.
The text was updated successfully, but these errors were encountered: