Gaphor using Python 2.4 instead of 2.6

Bug #329240 reported by lunarok
4
Affects Status Importance Assigned to Milestone
gaphor (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gaphor

Hi,

Gaphor is still using Python 2.4 under Jaunty and it's creating problem of dependencies.
When I try to start it, there is this error :
cedric@prophet:~$ gaphor
Traceback (most recent call last):
  File "/usr/bin/gaphor", line 7, in ?
    sys.exit(
  File "/var/lib/python-support/python2.4/gaphor/__init__.py", line 57, in main
    launch()
  File "/var/lib/python-support/python2.4/gaphor/__init__.py", line 36, in launch
    from gaphor.application import Application
  File "/var/lib/python-support/python2.4/gaphor/application.py", line 16, in ?
    import gaphor.UML
  File "/var/lib/python-support/python2.4/gaphor/UML/__init__.py", line 3, in ?
    from gaphor.UML.uml2 import *
  File "/var/lib/python-support/python2.4/gaphor/UML/uml2.py", line 94, in ?
    from diagram import Diagram
  File "/var/lib/python-support/python2.4/gaphor/UML/diagram.py", line 12, in ?
    import gobject
ImportError: No module named gobject

I have already check before, the gobject is ok with python 2.5 but not anymore with 2.4, soluce will be to have gaphor compiled with 2.5 as it must be of python program for next release

Related branches

Revision history for this message
Gabriel Ruiz (anakron) wrote : Re: [Bug 329240] [NEW] Gaphor using Python 2.4 instead 2.5

Other solution could be that the program must look for python, at least
version 2.4 for jaunty, or add python2.5 as depends. I can do it

Revision history for this message
Scott Kitterman (kitterman) wrote :

Last I looked gaphor needed zope and zope only worked on 2.4. Has that
changed?

Revision history for this message
Emmet Hikory (persia) wrote : Re: Gaphor using Python 2.4 instead 2.5

zope has been ported to python 2.5 upstream, and there's a 3.4.0 preview package in experimental (3.4.0~c1-1). This bug really needs someone familiar with zope to examine it: we've had several releases in the past where gaphor was broken, and I'm not tempted to break all of zope (without any knowledge of zope) just to get gaphor to use 2.5 (or work in Jaunty).

So, solutions for this bug include 1) investigating the possibility of a transition to 2.5 for zope3 or 2) investigation of a patch for gobject that preserves compatibility with both 2.4 and 2.5. In the former case, gaphor also needs modification to remove the various means by which it forces the use of 2.4.

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 329240] Re: Gaphor using Python 2.4 instead 2.5

it's a goal for Jaunty to drop 2.4, so working towards 2.5 is probably
best.

Revision history for this message
Ara Pulido (ara) wrote : Re: Gaphor using Python 2.4 instead 2.5

I am also getting this bug in updated Jaunty.

Changed in gaphor:
status: New → Confirmed
Revision history for this message
Emmet Hikory (persia) wrote :

Note that zope3 3.4.0 has since been updated in jaunty, but it still depends on python 2.4: it may be worth investigating to determine if this restriction is still required.

Revision history for this message
Vlad (b100dian) wrote :

I have the same problem: gaphor pulled python 2.4, but by default the `gaphor' script does not work out of the box. ("ImportError: No module named pkg_resources" - pkg-resources is probably not installed for 2.4)

However, "python2.5 `which gaphor`" works to run gaphor.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Ack from motu-release for upload.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gaphor - 0.13.0-1ubuntu1

---------------
gaphor (0.13.0-1ubuntu1) jaunty; urgency=low

  * Build using python2.5. LP: #329240.

 -- Matthias Klose <email address hidden> Sun, 12 Apr 2009 13:02:16 +0200

Changed in gaphor (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
lunarok (lunarok) wrote :

I see the package 0.13.0-1ubuntu1 is avalaible only for i386, will it be submited soon for 64bits (I'm running 64 not 32) ?

Thans at least to have a fix, I will enjoy it for sure soon

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 329240] Re: Gaphor using Python 2.4 instead of 2.6

It's an arch all package so you should be able to use it.

Revision history for this message
lunarok (lunarok) wrote :

Yes in fact, the buil is all architecture, and I have try it with success. Thanks a lot, was really missing gaphor in jaunty :)

Revision history for this message
Vlad (b100dian) wrote :

Wow, that was fast!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.