Reputation: 309
I have recently stated a arduino project for my engineering class. I mange to get python to talk to arduino via serial communication. Now I can send data to the board, I want to be able to set up a graphical user interface GUI with GTK, so that the user and push a button in the GUI and a LED turns on. However, I am trying to install the GTK liberty and I am running into a lot of problems.
Problem: I download GTK via pyip, when I run the set up file in the command line it says you have to install pyobject. So i went back to pyip and download the pyobject module and run the set up file. When I run the set up file I get this error message "ERROR: Could not find pkg-config: Please check your PATH environment variable." I downloaded the pyconfig from pyip ran it and the set up ran fine. But when i went to install pyobject I keep getting this error. Can someone direct tell me how to install GTK properly or how to fix my problem. PS I try setting my windows environment to the location of my pkg-config file.
Error from Installer
CMD error :
Help would be deeply appreciated
Thanks
Sean From Boxing Studio Games
Upvotes: 1
Views: 5407
Reputation: 365767
I believe that your problem is that you're trying to find non-Python prerequisites via pip
.
You say "I download GTK via pyip", I don't know any package manager named pyip
. If you mean pip
, that only installs Python packages; it doesn't help get the DLLs and other files that are needed to build those Python packages. In particular, to install the Python bindings for Gtk+ and do anything useful with them, you have to have Gtk+ itself. You can get a nice installer package from the Gtk website.
Also, you have to be precise with names. If you're missing pkg-config
, installing something called pyconfig
isn't going to help; they have nothing to do with each other. Similarly, pip
is the Python package installer; pyip
is a library for dealing with raw IP packets; they have nothing to do with each other.
At any rate, the Gtk+ binaries should have all the prerequisites you need. Then pip
should be able to install the Python bindings… assuming you have a compiler set up properly. But somehow, I have a feeling that you don't have one set up, and don't know how.
Fortunately, Christoph Gohlke's repo has prebuilt binary wheels for almost anything you could want in Python that's hard to build for Windows. Just download the .whl
files you need from that package, and follow the instructions on the page to install them with pip
.
Upvotes: 0
Reputation: 1338
I would suggest that you use the latest all-in-one installer for pyGTK. You can find it here.
It should automagically install all of the dependencies for pyGTK.
Upvotes: 1