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

ArchLinux下运行报错 #259

Open
zxp19821005 opened this issue Oct 16, 2023 · 2 comments
Open

ArchLinux下运行报错 #259

zxp19821005 opened this issue Oct 16, 2023 · 2 comments

Comments

@zxp19821005
Copy link

OS : EndeavourOS
Kernel : 6.1.57-1-lts
DM : lightdm 1:1.32.0-4
xorg : xorg-server 21.1.8-2
运行后报错如下:

$ keymousego
Traceback (most recent call last):
  File "KeymouseGo.py", line 11, in <module>
  File "/tmp/embedded.p07l1p0n.zip/shibokensupport/__feature__.py", line 142, in _import
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "UIFunc.py", line 11, in <module>
  File "/tmp/embedded.p07l1p0n.zip/shibokensupport/__feature__.py", line 142, in _import
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "Recorder/__init__.py", line 8, in <module>
  File "/tmp/embedded.p07l1p0n.zip/shibokensupport/__feature__.py", line 142, in _import
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "Recorder/UniversalRecorder.py", line 3, in <module>
  File "/tmp/embedded.p07l1p0n.zip/shibokensupport/__feature__.py", line 142, in _import
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pynput/__init__.py", line 40, in <module>
  File "/tmp/embedded.p07l1p0n.zip/shibokensupport/__feature__.py", line 142, in _import
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pynput/keyboard/__init__.py", line 31, in <module>
  File "pynput/_util/__init__.py", line 82, in backend
ImportError: this platform is not supported: No module named 'pynput.keyboard._xorg'

Try one of the following resolutions:

 * Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly
[218682] Failed to execute script 'KeymouseGo' due to unhandled exception!
@Monomux
Copy link
Collaborator

Monomux commented Nov 1, 2023

Try one of the following resolutions:

  • Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly

根据报错里面的提示设置一下试试?

@xpaxp
Copy link

xpaxp commented Feb 20, 2024

deepin 20.9同样情况,设置export DISPLAY=:0.0后,也是这样报错

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

3 participants