Category : ubuntu-20.04

I am trying to save a video of the render of my Hopper-v2 environment, however it gives a segmentation fault error. I have made a short code example to reproduce the issue. import os from gym.wrappers.monitoring.video_recorder import VideoRecorder path_project = os.path.abspath(os.path.join(__file__, "..")) path_of_video_with_name = os.path.join(path_project, "videotest.mp4") env = gym.make(‘Hopper-v2’) # for making environment state = ..

Read more

I am trying to get souphttpsrc multicast stream using gsteamer 1.0 and ubuntu 20.04 using the below cmd gst-launch-1.0 souphttpsrc location=http://root:[email protected]/axis-cgi/alwaysmulti.sdp?camera=1 ! sdpdemux ! application/x-rtp, encoding-name=H264, payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! jpegenc ! multifilesink location=image_%06d.jpeg and also using python gi package both are giving the below error gst-launch-1.0 souphttpsrc location=http://root:[email protected]/axis-cgi/alwaysmulti.sdp?camera=1 ..

Read more

I am getting this error from my django application running on ubuntu version 20.04. I have tried all the solution I have seen online, including here on StackOverflow but none of them seems to have solved problem. Here is the error: [2021-09-27 21:32:14 +0000] [607] [INFO] Worker exiting (pid: 607) Sep 27 21:32:14 server.varsell.com gunicorn[608]: ..

Read more

No module named ‘openpyxl’ when trying to import it from flask app , pointing that the module is installed in "/home/ubuntu/.local/lib/python3.8/site-packages/" and it works fine in other scripts here what i am using from flask import Flask, render_template, request app = Flask(__name__) @app.route(‘/upload_file’, methods=[‘GET’,’POST’]) def upload_file(): try : import sys sys.path.append(‘/home/ubuntu/.local/lib/python3.8/site-packages/’) import openpyxl except Exception ..

Read more

I am using paho mqtt to send message with python3 on ubuntu 20.04. I am using ssl version 2 When i do : client = mqtt.Client() client.tls_set(ca_certs=CA_CERT, certfile=CLIENT_CERT, keyfile=CLIENT_KEY) client.connect(HOST, 8883, 20) I am getting this error: File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 823, in tls_set context.load_cert_chain(certfile, keyfile) ssl.SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:4046) My private ..

Read more

I am new to Python Project with Jenkins Declarative Pipeline I have tried to follow this tutorial : Youtube : https://www.youtube.com/watch?v=kW_bADC2fFM Git Repo : https://github.com/patebija/simple-python-pyinstaller-app This Build and Unit Test Stage are working fine and below is the error that I have got within Packaging Stage log : + docker run –rm -v /var/jenkins_home/workspace/ython_Project_MultiBranch_master/134/sources:/src cdrx/pyinstaller-linux:python3 ..

Read more