cdgriffith / darkroom Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi! Im getting the following error on OS Buster, pi Zero W, Python 3.7:
Traceback (most recent call last):
File "darkroom/main.py", line 6, in
from pynput import keyboard
File "/home/pi/.local/lib/python3.7/site-packages/pynput/init.py", line 40, in
from . import keyboard
File "/home/pi/.local/lib/python3.7/site-packages/pynput/keyboard/init.py", line 31, in
backend = backend(name)
File "/home/pi/.local/lib/python3.7/site-packages/pynput/_util/init.py", line 82, in backend
if resolutions else '')
ImportError: this platform is not supported: ('failed to acquire X connection: Bad display name ""', DisplayNameError(''))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
I have the Dot Matrix up and running and all the dependencies installed. The one thing I noticed that was different from your build is that I am running python3, whereas your build appears to be on python2.7. I dont have the option to run 2.7 as luma.led_matrix is no longer supports it. Any help would be greatly appreciated!
@cdgriffith
managed to downgrade luma.led_matrix and luma.core so I could use this program (its not compatible with Python3 and luma no longer supports 2.7), but it always returns the same error when i try to run:
Traceback (most recent call last):
File "darkroom/main.py", line 6, in <module>
from pynput import keyboard
File "/home/pi/.local/lib/python2.7/site-packages/pynput/__init__.py", line 40, in <module>
from . import keyboard
File "/home/pi/.local/lib/python2.7/site-packages/pynput/keyboard/__init__.py", line 31, in <module>
backend = backend(__name__)
File "/home/pi/.local/lib/python2.7/site-packages/pynput/_util/__init__.py", line 82, in backend
if resolutions else '')
ImportError: this platform is not supported: ('failed to acquire X connection: Bad display name ""', DisplayNameError())
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
This issue appears regardless of whether run local or ssh
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.