Skip to content
This repository has been archived by the owner on Oct 13, 2019. It is now read-only.

Cannot find Xlib #52

Open
XeroShi opened this issue Jul 25, 2017 · 2 comments
Open

Cannot find Xlib #52

XeroShi opened this issue Jul 25, 2017 · 2 comments

Comments

@XeroShi
Copy link

XeroShi commented Jul 25, 2017

So attempting to run it on my Mac it keeps on giving me this.
Traceback (most recent call last):
File "/Users/(MacName)/3DSController.py", line 6, in
import Xlib, Xlib.display, Xlib.XK
ModuleNotFoundError: No module named 'Xlib'
What does this mean?

@ghost
Copy link

ghost commented Mar 10, 2018

Use in a Terminal:

pip install Xlib

Or:

easy_install Xlib

@BertBR
Copy link

BertBR commented May 23, 2019

I got this error after install Xlib via pip then run 3DSController.py

Running via Termux!

$ ./3DSController.py
Traceback (most recent call last):
File "./3DSController.py", line 163, in
disp = Xlib.display.Display()
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/Xlib/display.py", line 89, in init
self.display = _BaseDisplay(display)
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/Xlib/display.py", line 71, in init
protocol_display.Display.init(self, *args, **keys)
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/Xlib/protocol/display.py", line 85, in init
name, protocol, host, displayno, screenno = connect.get_display(display)
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/Xlib/support/connect.py", line 73, in get_display
return mod.get_display(display)
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/Xlib/support/unix_connect.py", line 61, in get_display
raise error.DisplayNameError(display)
Xlib.error.DisplayNameError: Bad display name ""

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants