Comments (7)
turns out I had forgotten to enable spi. I am now however getting this issue:
vncdotool.api.VNCDoException: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 111: Connection refused.
from papertty.
(papertty) pi@raspberrypi:~/PaperTTY $ sudo ~/.virtualenvs/papertty/bin/python3 ./papertty.py --driver epd2in13 vnc --display 1 --password supAPass --sleep 0.1 --rotate 90
Loading PIL font tom-thumb.pil. Font size is ignored.
Timeout to server localhost:1
from papertty.
The VNC error messages could be made a bit more helpful. What command/settings are you using for the VNC server? Is the password correct?
from papertty.
Hi
I'm trying to build a ebookreader with a pi0 and a 9.7inc waveshare epaper.
I probably do something wrong in the installation, but I don't find where.
I create de virtualenv with :
mkvirtualenv -p /usr/bin/python3 -r requirements.txt papertty
No error appears in the windows
I create a connection with :
(papertty) pi@raspberrypi:~/Documents/github/PaperTTY-master $ vncserver -geometry 1200x825 :3
There isn't any error end it's end with
Fichier journal : /home/pi/.vnc/raspberrypi:3.log Nouveau bureau : raspberrypi:3 (192.168.1.22:3) (papertty) pi@raspberrypi:~/Documents/github/PaperTTY-master $
But when I launched
sudo ~/.virtualenvs/papertty/bin/python3 ./papertty.py --driver it8951 vnc --display 3 --password supAPass --sleep 0.1 --rotate 90
The script end with
Timeout to server localhost:3
(I tried with my pi password and with my root password in place of supAPpass)
It appened after the line
client.refreshScreen()
in papertty.py
I already tried to forced the ip adress and the display, if i write a wrong adress or display I have another error, so I think it's ok
I also check the vncserver by connecting to it on my smartphone, it work's fine, but I noticed that there is a message on the desktop
GDBus.Error:org.freedesktop.PolicyKit 1.Error.Failed: An authentication agent already exists for the given subject
I also tried to do the same without the virtualenv, it give the same error (timeout...), the only difference is that I have a warning at the begining
:0: UserWarning: You do not have a working installation of the service_identity module: 'cannot import name 'verify_ip_address' from 'service_identity.pyopenssl' (/usr/lib/python3/dist-packages/service_identity/pyopenssl.py)'. Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
from papertty.
After 'vncserver -geometry 1200x825 :3' I launched 'x11vnc -display :3' and now I have my desktop on the epaper
I also tested without 'vncserver -geometry 1200x825 :3' and directly 'x11vnc -display :0', it works
from papertty.
One thing to keep in mind is that the VNC server's password is separate from your user's (pi
) or root
password. Of course, you can set the same password but VNC typically might support only a maximum length of 8 and is not secure to begin with. Usually when starting up the server the first time it prompts for a password to set (and stores it in ~/.vnc/passwd
or so, so that you don't need to set it again the next time).
I'm not exactly sure what you achieved with running both vncserver
and x11vnc
but does it work the way you wanted now?
from papertty.
I'll close this now - if you're still having trouble, please reopen the issue or create a new one.
from papertty.
Related Issues (20)
- Mirror function for VNC HOT 3
- Sudo with papertty? HOT 5
- Add documentation on pypy use HOT 5
- 9.7" IT8951 --autofit support HOT 1
- Standalone Guidance
- How to install / run PaperTTY? HOT 15
- Are the speeds usable for writing code? HOT 4
- IT8951 9.7" Memory Error -- could be due to firmware HOT 3
- TTY refused to resize with "[Errno 22] Invalid argument" HOT 5
- is theare a option like rotate in terminal ? HOT 1
- Using it with a color display (not from Waveshare) HOT 1
- Installing RPi.GPIO fails with Python 3.9 HOT 1
- Stuck in loading HOT 3
- Increase refresh speed - waveshare 6inch HD e-Paper HAT HOT 4
- EPD2in13v3 HOT 4
- Issue with Waveshare 5in83 v2 HOT 3
- removed
- Support for multiple displays? HOT 1
- Support for EPD7in5v_v2 HOT 2
- Issue with framebuffer display HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from papertty.