API reference to WebKit WebView implementation in GTK (Python)

I'm working on a Python Gtk3 app on Ubuntu, which primarily uses WebView from WebKit. I couldn't find all the methods available to WebView object in python, currently I only know its open()...

hdf5 / h5py ImportError: libhdf5.so.7

I'm working on a project involving network messaging queues (msgpack, zmq, ...) on a RHEL 6.3 (x86_64) system. I was installing the most recent packages of glib, gevent, pygobject, pygtk, and such...

A sorted and filtered treemodel in Python Gtk+3..?

I am trying to get a treemodel (a liststore in fact) that can be filtered and also sorted. I have the following piece of code self.modelfilter =...

Create tree hierarchy using os.walk and gobject gtk+3

I am trying to create a simple file browser. I am trying to add a tree hierarchy for files. I wrote a sample method that prints the hierarchy correctly, but I am having hard time to model the same...

Gtk-Message: Failed to load module

I installed gtk+ on my Ubuntu 13.10 successfully(apparently!) using jhbuild following this link: http://python-gtk-3-tutorial.readthedocs.org/en/latest/install.html but when i run the following...

GTK3 Drawing area tutorial does not seem to exist?

I've been learning GTK3 on my own and I'm now stuck on Gtk.DrawingArea. As with most widgets and functions in GTK, there seems to be a lack of updated documentation and tutorials on this. For...

using "try" to avoiding a segmentation fault

Recently in one of my programs I got a segmentation fault problem. I managed to find the line that its is causing the problem but I haven't find the way of fixing it. the...

Detect combination of keys pressed in PyGtk3 Python3

I want to detect when CTRL + Q are pressed and then perform an action. Now, I have code to detect if one key is pressed, but not a combination. Actually, my function is: def...

ModuleNotFoundError: No module named 'gi'

I am trying to run the following program: import gi gi.require_version('Gst', '1.0') from gi.repository import GObject, Gst Bu I am getting: Traceback (most recent call last): File...

Python 3 can't import PyGObject

I'm trying to use PyGObject with Python 3, (either on Debian or Linux Mint) so I can use Gtk3+ and Glade for creating GUIs. The problem is this: In Python 3: import gi says module 'gi' not...

No Module Named AppKit

I am trying to run an audio file in Python: from playsound import playsound def main(): playsound('audio.mp3') main() However, I keep getting the following error: File...

Use asyncio and Tkinter (or another GUI lib) together without freezing the GUI

I want to use asyncio in combination with a tkinter GUI. I am new to asyncio and my understanding of it is not very detailed. The example here starts 10 task when clicking on the first button. The...

pip3 install not working - No module named 'pip._vendor.pkg_resources'

When trying to install a package for Python 3 (in Ubuntu), using pip3 install packageName (or sudo pip3 install packageName), I get the following error message: Traceback (most recent call last): ...

Get number of columns in Gtk.Grid?

My sample code below creates a 2 row x 10 column Grid. The len() of the Grid seems to print the number of widgets within, not the row or column count. How can I get the column count? import...

ImportError: No module named 'config.settings'; 'config' is not a package

I'm trying to get my cookiecutter-django app running under Apache with mod_wsgi installed via pip. python3 manager.py runserver works. But after running it in Apache, I got an error saying Module...

ImportError: cannot import name GstRtspServer, introspection typelib not found

Im trying to get a simple GstRtspServer program working on an external amazon linux EC2 server at the moment, but I am having serious issues getting it to actually run. No matter what I do I keep...

How to get messages from googles Pub/Sub sytsem by using the current pubsub subsciber

I need to receive published messages from googles Pub/Sub system by using a python based subscriber. For this I did the following steps: On the web console I created a project, a registry, a...

Cuda Runtime Error cudaErrorNoDevice: no CUDA-capable device is detected

I am using Chainer, Cupy for CUDA 8.0 . I am trying to train machine learning model using python3.5 script, but I got this error: cupy.cuda.runtime.CUDARuntimeError: cudaErrorNoDevice: no...

How to create a letter spacing attribute with pycairo?

I'm using Pango + Cairo (through GObject) to render text with python3.7, and would like to set the letter spacing by creating an attribute and attaching that attribute to my pango layout. In the...

PyInstaller: StopIteration Error when I import geopandas

I am trying to execute PyInstaller on a my script. I installed all of the required packages and the .exe is succesfully created. But when I execute it on another machine, I get he Following...

ValueError: Namespace Gtk not available

When following the instructions 2. Getting Started — Python GTK+ 3 Tutorial 3.4 documentation Tries In [6]: import gi ...: gi.require_version('Gtk', '3.0') ...: from gi.repository import...

how to use gi in windows

i'm trying to run this code: import gi gi.require_version('Gst', '1.0') from gi.repository import Gst but is give me this error: Traceback (most recent call last): File...

pip install generates ERROR: Command errored out with exit status 1

I keep getting this while trying to install PyGObject for Python 3.7 in Pycharm. I at first got the error where cl.exe couldn't be found, but I did some research and would that apparently C++...

Does PyGobject have any reference books?

I'm trying to learn pygobject but could find any books. The reference manual in https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Window.html#Gtk.Window has syntax but no examples. is there a way...

Error with Python3 to connect to snowflake: snowflake.connector.errors.OperationalError::Failed to execute:'SSLSocket' object has no attribute 'conn

It seems there is some issue with latest snowflake connector . I am trying to install it on Ubuntu OS and trying to connect to snowflake but it gives error AttributeError: 'SSLSocket' object has...

Beware 'briefcase create' asks for cairo >= 1.15.10

I'm following Beeware tutorial and unable to 'briefcase create'. At some point it shows this: Collecting pygobject>=3.14.0 Downloading PyGObject-3.38.0.tar.gz (712 kB) ...

python, GTK4, Gtk.ListStore.append and "AttributeError: 'ListStore' object has no attribute 'insert_with_valuesv'"

I'm new to coding and this is probably a stupid question... I'm setting up a simple Gtk.ListStore(str) but as soon as I append(['whatever']) I get a "AttributeError: 'ListStore' object has no...

Im trying to build mediapipe on my jetson nano

So Im trying to build a mediapipe whl file for my jetson nano by following this guide https://github.com/jiuqiant/mediapipe_python_aarch64 I am successful on building it with my raspberry pi 4. By...

Getting segmentation fault in import gi.repository in Python PyGobject?

I have installed gstreamer from source using cerbero with the help of this link...

pycharm error happening at random time: Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

I am working with pycharm community on a tensorflow model with keras backend, sometimes this error appears in a random time, specially after I call pyplot and close the window: Exception ignored...