Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 06-11-2005, 10:06 PM   #1
LQ Newbie
Registered: Jun 2005
Distribution: MEPIS 3.3
Posts: 16

Rep: Reputation: 0
Angry problems with Python

synaptic says the latest version of python is 2.4.1-0, and that I have it installed... I am missing python.h and when I try installing a python package, it tells me that i need python version 2.4.1-2

Unpacking python2.4-dev (from .../python2.4-dev_2.4.1-2_i386.deb) ...
dpkg: dependency problems prevent configuration of python2.4-dev:
python2.4-dev depends on python2.4 (= 2.4.1-2); however:
Version of python2.4 on system is 2.4.1-0.
dpkg: error processing python2.4-dev (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:

That is the result I get.

I need python.h installed, but I cant install it due to not having the most recent python installed, which according to synaptic, I do. Please help.
Old 06-11-2005, 10:46 PM   #2
LQ Newbie
Registered: Jun 2005
Distribution: MEPIS 3.3
Posts: 16

Original Poster
Rep: Reputation: 0
actually, i just fixed that, however another problem has come up...

checking /usr/include/python2.4/Python.h usability... yes
checking /usr/include/python2.4/Python.h presence... yes
checking for /usr/include/python2.4/Python.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking for pygtk-2.0 >= 2.4.0 pyorbit-2 >= 2.0.1 gnome-python-2.0 >= 2.6.0... Package pygtk-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pygtk-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pygtk-2.0' found

configure: error: Library requirements (pygtk-2.0 >= 2.4.0 pyorbit-2 >= 2.0.1 gnome-python-2.0 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

what to do now?
Old 06-14-2005, 11:12 PM   #3
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Well, it would seem that you have to make sure the developer files for that library is installed, and then set the environment variable PKG_CONFIG_PATH to point to it if it's not in your normal library path.
Old 06-15-2005, 09:33 PM   #4
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128

Rep: Reputation: 16


Do you mind sharing how you managed to get around the Python.h file problem??

I am currently trying to compile a program from source and one of the errors i get is that Python.h cannot be found. But, I do have Python.h in the /usr/include/python2.4/ path.

Do I have to add this path to some type of environment variable?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with python: what else is new??? mrchaos Linux - Software 4 05-13-2005 02:43 PM
Problems with Python applications krajzega *BSD 0 08-24-2004 06:46 AM
Python ftplib problems p-static Programming 0 08-08-2004 10:42 AM
python problems with fluxspace Tyir Linux - General 1 12-19-2003 04:51 AM
GNUCash/Python Problems odavis Linux - General 1 02-01-2002 01:48 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration