01 icon indicating copy to clipboard operation
01 copied to clipboard

Ubuntu 21+ is not supported [wayland]

Open Notnaton opened this issue 1 year ago • 5 comments

Some dependencies uses x11 and is not compatible with wayland https://github.com/Kalmat/PyWinCtl?tab=readme-ov-file#linux-notice https://github.com/asweigart/pyautogui/issues?q=is%3Aissue+is%3Aopen+wayland

Notnaton avatar Apr 02 '24 20:04 Notnaton

Adding context here:

In my experience the closest successful installs were are on distros that have X11, systemd, and the apt package manager (because of portaudio19-dev availability).

I recommend a combination of pyenv and poetry to manage versioning and environment in Python. The versions of Python should build cleanly meaning that depending on distro you might have to add libraries to satisfy its dependencies.

rbrisita avatar Apr 04 '24 19:04 rbrisita

@rbrisita @Notnaton I'm now on Xorg, and the exact same error is happening, so this has nothing to do with Wayland.

mysticaltech avatar Apr 05 '24 00:04 mysticaltech

On my end, got it to run via cloning the repo and using that. Using Fedora with Xorg windowing system. It's not the mac experience yet, but have hope that it will get there sometime soon.

mysticaltech avatar Apr 05 '24 04:04 mysticaltech

@Notnaton Took a look at your PR. For the AttributeError: module 'Xlib.X' has no attribute 'FamilyServerInterpreted' error, you need to enter poetry shell, and install that version of python-xlib pip install python-xlib==0.31. It should resolve that particular issue.

mysticaltech avatar Apr 05 '24 04:04 mysticaltech

@mysticaltech @Notnaton I am new to 01 Light. I am using Ubuntu 22.04. When I do the following "poetry run 01 then try to record by Holding down the space bar, nothing happens. This is because the pynput library does not work with Wayland. A friend and I tested small pynput scripts. Didn't work with Wayland. Worked with X.org

pynput is used in software/source/client/base_device.py

This is a reference to Wayland/pynput

https://www.reddit.com/r/learnpython/comments/1bup4vb/pynput_doesnt_work_on_wayland/

https://pynput.readthedocs.io/en/latest/limitations.html#linux

andrewfr avatar May 02 '24 21:05 andrewfr