Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8033951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:51:54+00:00 2026-06-05T01:51:54+00:00

I have a application which is stuck at python2.6. I cannot port it to

  • 0

I have a application which is stuck at python2.6. I cannot port it to python2.7 due to specific and complicated extensions.

The probleme is that 12.04 removes pygtk for python2.6 as python2.7 becomes the default python version.

I need then to build pygtk for python2.6 from source. I have followed the readme but I am doing something wrong. (the doc is quite succinct)

The build looks ok, as I can import gtk if I am in the decompressed archive folder (I do a python -c ‘import gtk’).
But the make install doesn’t work properly.

AFAICT, I have export’ed PYTHON & PYTHONPATH variables to the proper path.

PYTHONPATH=/usr/lib/python2.6/dist-packages
PYTHON=/usr/bin/python2.6

Any idea on what’s wrong with this config ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:51:56+00:00Added an answer on June 5, 2026 at 1:51 am

    I don’t know if I’m getting farther than you are, but here’s what I’m doing so far. Maybe we can figure this out together.

    $ sudo su
    # pip install pygtk
    

    This generates a bunch of errors, including “To build PyGTK in a supported way, read the INSTALL file.” After reading that and other things, I tried this:

    # cd build/pygtk
    # chmod 755 configure
    # PYTHON=/usr/bin/python2.6 ./configure --prefix=/usr
    

    This finds the right version of Python, but now can’t find GLIB. Errors include, “This usually means GLIB is incorrectly installed.” When I look in config.log I find this error, “fatal error: glib.h: No such file or directory”. I found a help page that suggested you might get this error if you haven’t installed a development version of GLIB.

    # apt-get install libglib2.0-dev
    # PYTHON=/usr/bin/python2.6 ./configure --prefix=/usr
    

    Progress! I now see a new error, “No package ‘pygobject-2.0’ found”. That error appears in a forum post with a suggestion to install python-gobject-dev.

    # apt-get install python-gobject-dev
    # PYTHON=/usr/bin/python2.6 ./configure --prefix=/usr
    

    No errors, so I try running make and make install. The first one works, but the install fails with an error, “/bin/bash: line 16: ../py-compile: Permission denied”. Permission denied is weird when running as root. After flailing for a while, I go back to the output of the configure script and see a message, “checking for PYCAIRO… no”, followed by another, “not checking for gtk due to missing pycairo”. A little guesswork leads me to install another module.

    # apt-get install python-cairo-dev
    # PYTHON=/usr/bin/python2.6 ./configure --prefix=/usr
    

    That solves the pycairo complaint, but there are a bunch more, including GTK.

    # apt-get install python-gtk2-dev
    # PYTHON=/usr/bin/python2.6 ./configure --prefix=/usr
    

    That solved most of the complaints, just LIBGLADE is missing.

    # apt-get install libglade2-dev
    # PYTHON=/usr/bin/python2.6 ./configure --prefix=/usr
    

    OK, all the modules will be built, but it says, “Numpy support: no”.

    # make
    # make install
    

    This fails with the same error I saw earlier, “/bin/bash: line 16: ../py-compile: Permission denied”.

    I’m going to leave it here for now and come back to it later.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view based application which has some textboxes that I'm trying to
I have application which needs to use a dll (also written by me) which
I have an application which i try to dev with the sencha touch 2
I have an application which is having a dictionary returned from a webservice.and i
I have an application which consists mainly in a JList being displayed on the
I have an application which displays html file from assets folder. Now the issue
I have an application which receives data from a news website (through rss) and
I have an application which (among other things) needs to call the New-MailContact cmdlet
i have Web Application which should use JSF 2.0 libraries included in WEB-INF/lib... but
I have an application which resides in the system tray, and instead of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.