setup:
Main server -> remote server(python program)
Hi, I have a python program in the remote server which displays Images in TV, However when I try to run the python program using Ansible or SSH command, python program is running but it is not displaying any images.
Error:
Unable to init server: Could not connect: Connection refused
Traceback (most recent call last):
File "/home/pi/files/program.py", line 105, in <module>
ImageDisplay(combined[ind],delay)
File "/home/pi/files/program.py", line 48, in ImageDisplay
cv2.namedWindow('V', cv2.WND_PROP_FULLSCREEN)
cv2.error: OpenCV(4.5.1) /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/highgui/src/window_gtk.cpp:624: error: (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem'
Related
I'm currently working on a programme to automate some function for router configuration and I've managed to create a loopback interface between GNS3 and my computer so that I can connect python via telnet.
At first, the code ran smoothly and I had no problem, but when I switched to another router, it works only for a few commands and then it suddenly stops and I can't figure why.
This is the error I get:
Traceback (most recent call last):
File "C:\Licenta - program\test1\main.py", line 147, in <module>
tn.write(b"ip add ")
File "C:\Users\carme\AppData\Local\Programs\Python\Python39\lib\telnetlib.py", line 292, in write
self.sock.sendall(buffer)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
Any suggestions are welcomed!
Thank you!
I am trying to install a murmur rest-api but I can't start it.
When I try to start the api, I have an error comming from Ice
Traceback (most recent call last):
File "runserver.py", line 1, in <module>
from app import app
File "/home/Mumble/app/__init__.py", line 48, in <module>
meta = Murmur.MetaPrx.checkedCast(proxy)
File "/home/Mumble/Murmur.ice", line 6211, in checkedCast
Ice.ConnectionRefusedException: Ice.ConnectionRefusedException:
Connection refused
!! 06/11/22 11:55:54.455 error: communicator not destroyed during global destruction.
I installed Ice correctly (sudo apt-get install python-zeroc-ice zeroc-ice-compilers) and I tried looking on online forums for answers without finding one thread about this.
Thank you.
I'm trying to run a server application in python to run the python code I have used the WSGI example code from the python documents and it still doesn't work I get the same error every time I try to run this code. I'm using a raspberry pi 3 with python 3.10.4 anyone know how to solve this thanks.
the error and line of code it shows the error on is below
run / compiler error =
Traceback (most recent call last):
File "/home/pi/wsgiPythonTest.py", line 18, in
with make_server('', 8000, simple_app) as httpd:
AttributeError: exit
line of code in and linked code in question the first line shown is line 18
with make_server('', 8000, simple_app) as httpd:
print("Serving on port 8000...")
httpd.serve_forever()
does anyone know if I'm missing a python module that's required for this to work and if so how do I install it I'm running the code in raspian. thanks
I'm working on a project using raspberry pi. I need to get max6675 temperature reading using nodejs.
I can get values using python but after running for sometime
Error: Exception in thread Thread-1 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner File "/usr/local/lib/python2.7/dist-packages/pigpio.py", line 1157, in run
I'm using express framework and Python-shell npm. I execute .py file using setInterval() function.
I am trying to connect to a SSH server using the python library paramiko.
The same code worked on the same computer before, but it started to show a warning when trying to connect. I can connect to the SSH server using the same computer and same users via terminal. The python code also works on other computers connected to the same LAN network.
I also tried to restart both pcs and reinstall paramiko with no success.
Following is the code and the warning message presented.
class SSH:
def __init__(self, ip):
self.ssh = SSHClient()
self.ssh.load_system_host_keys()
self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
self.ssh.connect(hostname=ip ,username='urs',password='pass')
Warning message:
Unknown exception: '_EllipticCurvePublicKey' object has no attribute 'verify'
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/paramiko/transport.py", line 1886, in run
self.kex_engine.parse_next(ptype, m)
File "/usr/local/lib/python3.5/dist-packages/paramiko/kex_ecdh_nist.py", line 47, in parse_next
return self._parse_kexecdh_reply(m)
File "/usr/local/lib/python3.5/dist-packages/paramiko/kex_ecdh_nist.py", line 105, in _parse_kexecdh_reply
self.transport._verify_key(K_S, sig)
File "/usr/local/lib/python3.5/dist-packages/paramiko/transport.py", line 1748, in _verify_key
if not key.verify_ssh_sig(self.H, Message(sig)):
File "/usr/local/lib/python3.5/dist-packages/paramiko/ecdsakey.py", line 216, in verify_ssh_sig
self.verifying_key.verify(
AttributeError: '_EllipticCurvePublicKey' object has no attribute 'verify'
Do anybody have a suggestion about where the problem might be?
I tried to google and looked for the error here,but couldn't find it anywhere.
Thanks in advance!
I had the exact same error as now. I encountered this error with paramiko version 2.3.0. I downgraded to 2.1.2 and the operation i was doing proceeded normally.