Skip to content

Show error message that Wayland is not supported #72

Open
@mikebarkmin

Description

@mikebarkmin

pynput does not support Wayland. Unfortunately, it took me a while to figure out why the RecorderService did not work.

I got the message: The extra packages required by manim_voiceover[recorder] are not installed .... This is a misleading error, since they were installed, but pynput did not load. Pynput did not load because it does not work on Wayland.

I would suggest adding something like this to the helper.py at around line 162 in the error handling block:

        if "failed to acquire X connection" in str(e):
            raise ImportError(
                f'Wayland is not supported!'
            )

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions