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

Ubuntu 21+ is not supported [wayland] #219

Open
Notnaton opened this issue Apr 2, 2024 · 5 comments
Open

Ubuntu 21+ is not supported [wayland] #219

Notnaton opened this issue Apr 2, 2024 · 5 comments

Comments

@Notnaton
Copy link
Contributor

Notnaton commented Apr 2, 2024

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 Notnaton changed the title Ubuntu 21+ is not supported Ubuntu 21+ is not supported [wayland] Apr 2, 2024
@rbrisita
Copy link
Contributor

rbrisita commented Apr 4, 2024

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.

@mysticaltech
Copy link

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

@mysticaltech
Copy link

mysticaltech commented Apr 5, 2024

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
Copy link

@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.

@andrewfr
Copy link

andrewfr commented May 2, 2024

@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

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

4 participants