Gaphor doesn't start

Bug #30344 reported by jon latorre
338
Affects Status Importance Assigned to Milestone
gaphor (Debian)
Fix Released
Unknown
gaphor (Ubuntu)
Fix Released
High
Unassigned

Bug Description

When I try to start gaphor it complais about some imported modules. The startup log is atached. I tried it in Ubuntu Dapper PPC

Related branches

Revision history for this message
jon latorre (moebius-etxea) wrote : gaphor startup error

gaphor startup error

Revision history for this message
Loic Pefferkorn (loic) wrote : Re: Gaphor 0.7.1-1 doesn't start

Confirmed on x86 too.

Changed in gaphor:
assignee: nobody → motu
status: Unconfirmed → Confirmed
Revision history for this message
MoMaT (momat) wrote :

New release of gaphor 0.8.1 from http://gaphor.sourceforge.net/download.php doesn't work in Dapper due to demand of newer python-diacanvas libs (0.14.4 available at http://sourceforge.net/projects/diacanvas):

Module 'diacanvas' found.
  Checking key 'diacanvas.diacanvas_version' >= 0.14.3... Failed (0.14.2)

Config failed.
The following modules can not be found or are to old:
  'diacanvas'

Revision history for this message
Barry deFreese (bddebian) wrote :

I don't get the above error but I do get an error that is should be using gnomecanvas module and not gnome.canvas

Revision history for this message
Sean Farrell (rioki) wrote :

I do not know if you are refering to the same bug but here is the diagnosis output if gaphor before dying.

(It seems that there are different problems and it may be that the actual bug is in diacanvas...)

sean@mars:~$ gaphor

** (gaphor:20057): WARNING **: couldn't make the type `CanvasGroup' ready
/usr/lib/python2.4/site-packages/diacanvas/__init__.py:13: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
  from _canvas import *
TypeError: Cannot create a consistent method resolution
order (MRO) for bases GObject, CanvasGroupableIface, CanvasGroupable
/usr/lib/python2.4/site-packages/diacanvas/__init__.py:19: DeprecationWarning: Module gnome.canvas is deprecated; please import gnomecanvas instead
  from view import *
/usr/lib/python2.4/site-packages/gaphor/undomanager.py:195: RuntimeWarning: Interface type UndoManager has no python implementation support
  gobject.type_register(UndoManager)
Traceback (most recent call last):
  File "/usr/bin/gaphor", line 10, in ?
    gaphor.main(model)
  File "/usr/lib/python2.4/site-packages/gaphor/__init__.py", line 48, in main
    import diagram
  File "/usr/lib/python2.4/site-packages/gaphor/diagram/__init__.py", line 56, in ?
    from classifier import ClassifierItem
  File "/usr/lib/python2.4/site-packages/gaphor/diagram/classifier.py", line 18, in ?
    from nameditem import NamedItem
  File "/usr/lib/python2.4/site-packages/gaphor/diagram/nameditem.py", line 9, in ?
    from elementitem import ElementItem
  File "/usr/lib/python2.4/site-packages/gaphor/diagram/elementitem.py", line 74, in ?
    initialize_item(ElementItem)
  File "/usr/lib/python2.4/site-packages/gaphor/diagram/__init__.py", line 39, in initialize_item
    if (diacanvas.CanvasItem in bases) or \
AttributeError: 'module' object has no attribute 'CanvasGroup'

Revision history for this message
Gauvain Pocentek (gpocentek) wrote :

This bug has been reported upstream (for a more recent release): http://sourceforge.net/tracker/index.php?func=detail&aid=1453249&group_id=42141&atid=432224

Revision history for this message
Aldo Nogueira (aldo-nogueira) wrote :

System: Dapper i386 32bits

I've tested gaphor 0.7.1 and 0.8.1 downloaded from sourceforge. The same problem described above of no attribute 'CanvasGroup'.
I've tried diacanvas2 0.14.3 and 0.14.4 with the same result.

Finally i've tested gaphor 0.7.0 (same as breezy version) and the result now was:

File "/home/aldo/tmp/gaphor-0.7.0/utils/msgfmt.py", line 91, in generate 0, 0) # size and offset of hash table
OverflowError: long int too large to convert to int

Who am i to blame: Gaphor or diacanvas?

Revision history for this message
Aanjhan Ranganathan (aanjhan) wrote :

Yes I am also able to reproduce it on my Dapper up-todate system on x86.

Revision history for this message
lmierzej (lmierzej) wrote :

Is this only Ubuntu related bug? Anyone managed to launch Gaphor 0.7.1 or 0.8.1 on other linux distro?

Revision history for this message
Gustavo Carneiro (gjc) wrote :

Confirmed for edgy amd64. Though I get a segfault here... (sorry, no debugging symbols here).

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

gaphor runs in Debian etch with the following package versions.

Package: gaphor
Version: 0.8.1-4

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages gaphor depends on:
ii python 2.4.3-11 An interactive high-level object-o
ii python-diacanvas2 0.14.4-4 DiaCanvas2 library support for Pyt
ii python-gnome2 2.12.4-5 Python bindings for the GNOME desk
ii python-support 0.5.4 automated rebuilding support for p
ii python2.4 2.4.3-8 An interactive high-level object-o

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

Here is an apport crash report

Revision history for this message
Matthias Klose (doko) wrote :

please consider an update to gaphor 0.9.0, which doesn't use diacanvas anymore.

release announcement:
http://sourceforge.net/mailarchive/forum.php?thread_id=31477795&forum_id=7261

Changed in gaphor:
status: Confirmed → Needs Info
importance: Medium → High
Revision history for this message
Michael Gratton (mjog) wrote :

Just downloaded 0.9.1 and it ran fine on an Edgy machine using the included run-gaphor.sh script. There was an error loading the one diagram file I tried, but creating a new diagram seems to work fine. That is more than Gaphor has been able to do in the last two Ubuntu releases for me.

Revision history for this message
Kudryashov (antiquadr) wrote : Re: [Bug 30344] Re: Gaphor doesn't start

> please consider an update to gaphor 0.9.0, which doesn't use diacanvas
> anymore.
This version works well, I am much obliged to you!

Andrew

Revision history for this message
Kudryashov (antiquadr) wrote :

> That is more than Gaphor has been able to do in the last two Ubuntu
> releases for me.
>
I'm agree, thank you, I have seen.

Andrew

William Grant (wgrant)
Changed in gaphor:
assignee: motu → nobody
status: Needs Info → Confirmed
Revision history for this message
Pedro Sousa (pasousa-isr) wrote :

In Ubuntu version 7.04 the bug continues, as the "0.8.1-5.1ubuntu1" version is still provided.

Is there any repository with a 0.9.0 compiled version package for Fiest Fawn. And for the new version, 0.10?

Revision history for this message
Emmet Hikory (persia) wrote :

Working on an updated package

Changed in gaphor:
assignee: nobody → persia
status: Confirmed → In Progress
Changed in gaphor:
status: Unknown → Unconfirmed
Revision history for this message
Jean Jordaan (jean-jordaan) wrote :

Any progress? On Linux klippie 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux, Ubuntu 7.04:

jean@klippie:~$ gaphor

** (gaphor:19603): WARNING **: couldn't make the type `CanvasGroup' ready
TypeError: Cannot create a consistent method resolution
order (MRO) for bases GObject, CanvasGroupableIface, CanvasGroupable
Segmentation fault (core dumped)

Revision history for this message
Emmet Hikory (persia) wrote :

Yes. I have it working locally, but the package isn't finished yet. Should be done by the end of the month.

Revision history for this message
Emmet Hikory (persia) wrote :

There is now effort under way to release a gaphor 0.10 (with gaphas) in Debian, so the upload of 0.9.2 is being deferred in hopes that a 0.10 release will be included in the next Ubuntu release.

Revision history for this message
Martin Kaffanke (martin-kaffanke) wrote :

Why can't we have 0.10 right now in ubuntu feisty (or any getdeb.net release) for all the people which cannot work with gaphor in the current state?

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

Once the package is worked out for Gutsy (and it's still a work in progress),
there will be a backport request for earlier releases.

Revision history for this message
mspanc (mspanc) wrote :

Error in feisty:

marcin@saepia:~$ gaphor

** (gaphor:9411): WARNING **: couldn't make the type `CanvasGroup' ready
TypeError: Cannot create a consistent method resolution
order (MRO) for bases GObject, CanvasGroupableIface, CanvasGroupable
Segmentation fault (core dumped)

Revision history for this message
Rogelio Castillo A. (rogelio2k) wrote :

** (gaphor:9363): WARNING **: couldn't make the type `CanvasGroup' ready
TypeError: Cannot create a consistent method resolution
order (MRO) for bases GObject, CanvasGroupableIface, CanvasGroupable
Fallo de segmentación (core dumped)

Linux musica 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux

Revision history for this message
Alessio Treglia (quadrispro) wrote :

I confirm the bug

** (gaphor:7039): WARNING **: couldn't make the type `CanvasGroup' ready
TypeError: Cannot create a consistent method resolution
order (MRO) for bases GObject, CanvasGroupableIface, CanvasGroupable
Segmentation fault (core dumped)

Ubuntu 7.04 Feisty Fawn (amd64)
kernel version 2.6.20-16-generic

Revision history for this message
Martin Kaffanke (martin-kaffanke) wrote :

But it's interesting that a

sudo easy_install gaphor

works. So we have a working gaphor. The only thing is, that the files are not registerd in apt.

Revision history for this message
Barry deFreese (bddebian) wrote :

Gaphor 0.10.4-1 is now in Gutsy. Does this version resolve this issue? Obviously that doesn't help the Feisty users but it would be nice to know that the issue is at least resolved.

Changed in gaphor:
status: In Progress → Incomplete
Revision history for this message
Ilmari Vacklin (wolverian) wrote :

On Sat, Aug 18, 2007 at 03:14:46PM -0000, Barry deFreese wrote:
> Gaphor 0.10.4-1 is now in Gutsy. Does this version resolve this issue?
> Obviously that doesn't help the Feisty users but it would be nice to
> know that the issue is at least resolved.

$ sudo apt-get install gaphor
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  gaphor: Depends: python-gaphas but it is not installable
E: Broken packages

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

Thanks for the update. I'm requesting python-gaphas be synced from Debian
now.

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

or rather I'm not because someone else already did it. See Bug #133356.

Revision history for this message
Piotr Gaczkowski (doomhammer) wrote :

$ gaphor
Traceback (most recent call last):
  File "/usr/bin/gaphor", line 8, in <module>
    load_entry_point('gaphor==0.10.4', 'console_scripts', 'gaphor')()
  File "/var/lib/python-support/python2.5/gaphor/__init__.py", line 75, in main
    import ui
  File "/var/lib/python-support/python2.5/gaphor/ui/__init__.py", line 18, in <module>
    import stock
  File "/var/lib/python-support/python2.5/gaphor/ui/stock.py", line 9, in <module>
    from gaphor import UML
  File "/var/lib/python-support/python2.5/gaphor/UML/__init__.py", line 3, in <module>
    from gaphor.UML.uml2 import *
  File "/var/lib/python-support/python2.5/gaphor/UML/uml2.py", line 3, in <module>
    from properties import association, attribute, enumeration, derivedunion, redefine
  File "/var/lib/python-support/python2.5/gaphor/UML/properties.py", line 30, in <module>
    from zope import component
ImportError: cannot import name component

Revision history for this message
Stéphane Démurget (stephane-demurget-free) wrote :

I've got the same problem as DoomHammer, but to get to this point I had to install python-setupttools, which seems to be a missing dependency.

Revision history for this message
John Shaffer (jshaffer) wrote :

Zope does not support Python 2.5. Gaphor works when run with Python 2.4.

Revision history for this message
Matthias Klose (doko) wrote :

John Shaffer schrieb:
> Zope does not support Python 2.5. Gaphor works when run with Python 2.4.

which is wrong. zope2.x doesn't support python2.5, zope3.x does.

Revision history for this message
Jan Claeys (janc) wrote :

I can confirm the traceback posted by Piotr when using python 2.5, wile Gaphor works when run as:

python2.4 `which gaphor`

I suspect the zope (sub)module that it uses is part of zope2 then?

Revision history for this message
Tantrik (danielb-mundo-r) wrote :

I confirm that not work in Ubuntu 7.10 x86.

Traceback (most recent call last):
  File "/usr/bin/gaphor", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

Revision history for this message
CyberK (cyberkm) wrote :

Traceback (most recent call last):
  File "/usr/bin/gaphor", line 8, in <module>
    load_entry_point('gaphor==0.10.4', 'console_scripts', 'gaphor')()
  File "/var/lib/python-support/python2.5/gaphor/__init__.py", line 75, in main
    import ui
  File "/var/lib/python-support/python2.5/gaphor/ui/__init__.py", line 18, in <module>
    import stock
  File "/var/lib/python-support/python2.5/gaphor/ui/stock.py", line 9, in <module>
    from gaphor import UML
  File "/var/lib/python-support/python2.5/gaphor/UML/__init__.py", line 3, in <module>
    from gaphor.UML.uml2 import *
  File "/var/lib/python-support/python2.5/gaphor/UML/uml2.py", line 3, in <module>
    from properties import association, attribute, enumeration, derivedunion, redefine
  File "/var/lib/python-support/python2.5/gaphor/UML/properties.py", line 30, in <module>
    from zope import component
ImportError: cannot import name component

Revision history for this message
Ali Sabil (asabil) wrote :

The error message says it all, gaphor depends on zope3, and zope3 installs its packages/modules for python 2.4, and not python 2.5, while gaphor is installed with python 2.5

Changed in gaphor:
status: Incomplete → New
Emmet Hikory (persia)
Changed in gaphor:
assignee: persia → nobody
status: New → Triaged
Revision history for this message
Marco Matijevic (matijevic) wrote :

I confirm Tantrik's error message for Ubuntu 7.10. I think that's a missing dependency in gaphor's installation file.
After installing python-setuptools 0.6c6-1 modules /usr/lib/python-packages/pkg_resources.py and /usr/lib/python-packages/pkg_resources.pyc appeared and Tantriks's error message vanished.

Instead of Tantrik's error message I got CyberK's Traceback.

There is a directory component in /usr/lib/python2.4/site-packages/zope .
The directory /usr/lib/python2.5/site-packages/zope is almost empty besides a directory interface provided by package python-zopeinterface for both python2.4 and python2.5

Ali Sabil is right. The zope3 3.3.1-3build2 package provides files for python2.4 but none for python2.5

Revision history for this message
Marco Matijevic (matijevic) wrote :

@CyberK: Try this:

cd /usr/lib/python2.5/site-packages
sudo mv zope zope.bak
sudo ln -s /usr/lib/python2.4/site-packages/zope ./zope

Revision history for this message
SqUe (sque) wrote :

In gutsy I installed with synaptic and I cant start with this error:
Traceback (most recent call last):
  File "/usr/bin/gaphor", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

after installing python-setuptools something like that (can't remember exactly) I am getting new error!

Traceback (most recent call last):
  File "/usr/bin/gaphor", line 8, in <module>
    load_entry_point('gaphor==0.10.4', 'console_scripts', 'gaphor')()
  File "/var/lib/python-support/python2.5/gaphor/__init__.py", line 75, in main
    import ui
  File "/var/lib/python-support/python2.5/gaphor/ui/__init__.py", line 18, in <module>
    import stock
  File "/var/lib/python-support/python2.5/gaphor/ui/stock.py", line 9, in <module>
    from gaphor import UML
  File "/var/lib/python-support/python2.5/gaphor/UML/__init__.py", line 3, in <module>
    from gaphor.UML.uml2 import *
  File "/var/lib/python-support/python2.5/gaphor/UML/uml2.py", line 3, in <module>
    from properties import association, attribute, enumeration, derivedunion, redefine
  File "/var/lib/python-support/python2.5/gaphor/UML/properties.py", line 30, in <module>
    from zope import component
ImportError: cannot import name component

Can't understand why there isn't a proper version of gaphor so many dist versions now, this package must be reviewed by someone plz

Revision history for this message
Baruch (baruch-blessedb) wrote : Unsubscribe

Unsubscribe

----- Original Message -----
Subject: [Bug 30344] Re: Gaphor doesn't start
Date: Thu, December 13, 2007 17:42
From: "SqUe" <email address hidden>

> In gutsy I installed with synaptic and I cant start with this error:
> Traceback (most recent call last):
> File "/usr/bin/gaphor", line 5, in <module>
> from pkg_resources import load_entry_point
> ImportError: No module named pkg_resources
>
> after installing python-setuptools something like that (can't remember
> exactly) I am getting new error!
>
> Traceback (most recent call last):
> File "/usr/bin/gaphor", line 8, in <module>
> load_entry_point('gaphor==0.10.4', 'console_scripts', 'gaphor')()
> File "/var/lib/python-support/python2.5/gaphor/__init__.py", line 75,
in main
> import ui
> File "/var/lib/python-support/python2.5/gaphor/ui/__init__.py", line
18, in <module>
> import stock
> File "/var/lib/python-support/python2.5/gaphor/ui/stock.py", line 9,
in <module>
> from gaphor import UML
> File "/var/lib/python-support/python2.5/gaphor/UML/__init__.py", line
3, in <module>
> from gaphor.UML.uml2 import *
> File "/var/lib/python-support/python2.5/gaphor/UML/uml2.py", line 3,
in <module>
> from properties import association, attribute, enumeration,
derivedunion, redefine
> File "/var/lib/python-support/python2.5/gaphor/UML/properties.py",
line 30, in
> <module>
> from zope import component
> ImportError: cannot import name component
>
>
> Can't understand why there isn't a proper version of gaphor so many dist
versions
> now, this package must be reviewed by someone plz
>
> --
> Gaphor doesn't start
> https://bugs.launchpad.net/bugs/30344
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
>
>

Revision history for this message
Elie De Brauwer (elie) wrote :

I just did a plain apt-get install gaphor on gutsy as well with the following result:

edb@lapedb:~$ gaphor
Traceback (most recent call last):
  File "/usr/bin/gaphor", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

Revision history for this message
ajkain (ajkain) wrote :

gaphor 0.10.4 works with python 2.4.
I patch /usr/bin/gaphor file.

I change the first line

#!/usr/bin/python

to

#!/usr/bin/python2.4

It work for me.

Revision history for this message
Tim Caswell (tim-creationix) wrote :

Changing the python version doesn't work for me, I'm in Hardy updated to 2008-01-03

Revision history for this message
Tim Caswell (tim-creationix) wrote :

Although installing python-setuptools as noted above did help, still in Hardy and using python 2.4, python 2.5 still complains about zope dependencies.

Revision history for this message
jonny (jonny-jonespenarth) wrote :

Summarizing the above, I can confirm that the workaround for 7.10 AMD64 is as follows:

1. Manually install the missing dependency python-setuptools
2. Edit /usr/bin/gaphor and change the first line to #!/usr/bin/python2.4

Gaphor then appears to run properly, although I haven't yet used it in anger.

Changed in gaphor:
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gaphor - 0.12.4-2ubuntu1

---------------
gaphor (0.12.4-2ubuntu1) hardy; urgency=low

  * Merge from Debian unstable. Remaining changes:
    - Updated Maintainer Field
    - Added Build-Depends-Indep to fix FTBFS
  * Force use of python2.4 to match zope3 (LP: #30344)
  * Block use of ez_setup and build-depend-indep on python-nose

gaphor (0.12.4-2) unstable; urgency=low

  * This time, really upload to unstable ...

gaphor (0.12.4-1) experimental; urgency=low

  * New upstream release, upload to unstable
      Closes: #444864 -- Version in debian is too old
      Closes: #415970 -- A new upstream version is available
  * No more use diacanvas2, but depends on gaphas
      Closes: #458104 -- gaphor segfaults and does not start
      Closes: #423515 -- gaphor segfaults after upgrading python-diacanvas2

 -- Emmet Hikory <email address hidden> Thu, 17 Jan 2008 02:02:12 +0900

Changed in gaphor:
status: Triaged → Fix Released
Revision history for this message
dinka (mourothelene) wrote :

I fixed this problem by installing gaphor with easy_install (http://gaphor.devjavu.com/wiki/Download)

edb@lapedb:~$ gaphor
Traceback (most recent call last):
  File "/usr/bin/gaphor", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

Work for Gutsy

Revision history for this message
Daniel Botelho (botelho-daniel) wrote :

I'm also receiving:
$ gaphor
Traceback (most recent call last):
  File "/usr/bin/gaphor", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

I'm using Gutsy and have installed it using synaptic

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

Other bug subscribers

Related questions

Remote bug watches

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