Category : ubuntu-16.04

>>> import gi >>> gi.require_version(‘Gtk’, ‘3.0’) >>> from gi.repository import Gtk Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gi/importer.py", line 138, in load_module introspection_module = get_introspection_module(namespace) File "/usr/lib/python3/dist-packages/gi/module.py", line 275, in get_introspection_module module = IntrospectionModule(namespace, version) File "/usr/lib/python3/dist-packages/gi/module.py", line 122, in __init__ repository.require(namespace, version) gi.RepositoryError: Typelib file for namespace ‘Atk’, version ‘1.0’ not found During handling ..

Read more

./run_sample.sh simple_out.py after writing this in my ubuntu terminal, a separate process will start. Now I want to add this part inside a python file and run the python file. I tried to like this in my python file. but it was not successful. import subprocess subprocess.call(‘/run_sample.sh simple_out.py’) please help me to execute ./run_sample.sh simple_out.py ..

Read more

I want to source this /etc/apache2/envvars before running apache2 -V command which is giving me this output wihtout soruce [email protected]:~$ apache2 -V [Tue Sep 14 05:01:39.045086 2021] [core:warn] [pid 13942] AH00111: Config variable ${APACHE_RUN_USER} is not defined [Tue Sep 14 05:01:39.045115 2021] [core:warn] [pid 13942] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined [Tue Sep 14 ..

Read more

I am trying to use a model.h5 (witch I created on python3,tensorflow2) on a node on ROS kinetic (ubuntu 16.04) to predict the steering angle of a turtlebot3 (running on gazebo7) after receiving a frame/image. The incompatibility of ROS with any other python versions takes me to a deadend since I tried everything I could ..

Read more

I’m restarting to learn programming and I want to create a simple .py file that I can execute by double-clicking it. I already turned the following .py program into an executable file: #!/usr/bin/env python print("Hello World!") and I already create the .desktop file in the same folder: [Desktop Entry] Version=1.0 Name=HelloWorld Exec=/home/david/Desktop/Python/Kana Icon= Terminal=true Type=Application ..

Read more

I’m running a Python code in a Docker container to process the data coming from a telosb mote. At the beginning of the Python code, I have: #!/usr/bin/env python import sys import tos import numpy as np class gridData(tos.Packet): def __init__(self, payload = None): tos.Packet.__init__(self, [(‘data’, ‘blob’, None)], payload) if len(sys.argv) < 2: print("Usage:", sys.argv[0], ..

Read more

Whenever i try sudo apt-get upgrade or try to install any other package i get the above error. Is there any way to solve it?? Using ubuntu 16.04 Removing python3-distro-info (0.14ubuntu0.2) … Setting up ubuntu-advantage-tools (27.0~16.04.1) … Traceback (most recent call last): File "<string>", line 2, in <module> ModuleNotFoundError: No module named ‘uaclient.entitlements’ dpkg: error ..

Read more