Giter VIP home page Giter VIP logo

Comments (7)

skywo1f avatar skywo1f commented on August 19, 2024

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.

skywo1f avatar skywo1f commented on August 19, 2024

(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.

joukos avatar joukos commented on August 19, 2024

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.

ducloyer avatar ducloyer commented on August 19, 2024

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.

ducloyer avatar ducloyer commented on August 19, 2024

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.

joukos avatar joukos commented on August 19, 2024

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.

joukos avatar joukos commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.