You are not logged in.

#1 2007-09-07 22:16:53

G_Syme
Member
Registered: 2007-01-04
Posts: 83

[SOLVED (finally!)] gaphor and its installation complications...

Hello, fellow PKGBUILD-writers (and everyone who wants to join, too smile ).

As some of you have noticed, the UML drawing tool gaphor in AUR has been pretty outdated for quite some time and quite a few seem to have tried to get the latest version up and running, without much success as it seems.

I've tried it, too. This is the provisional result so far:

pkgname=gaphor
pkgver=0.12.0
pkgrel=1
pkgdesc="An easy to use modeling environment for UML design"
arch=('i686' 'x86_64')
url="http://gaphor.sourceforge.net"
license=('GPL')
depends=('gnome-python' 'pycairo' 'pygtk')
makedepends=('setuptools>=0.6c5')
source=(http://pypi.python.org/packages/source/g/gaphor/$pkgname-$pkgver.tar.gz)
md5sums=('b3d38423def933b2a420257255ac07f9')

build() {
  cd $startdir/src/$pkgname-$pkgver
  python setup.py install --root=$startdir/pkg --prefix=/usr || return 1
}

The situation: Sometimes, it builds, and sometimes not. hmm
If I remove and then reinstall setuptools, it builds, but does not run, and if I then try to rebuild the package via makepkg (even after removing the src and pkg directories), it doesnt build any more, with the following error:

==> Starting build()...
warning: no files found matching 'ez_setup.py'
warning: no files found matching 'unit_tests/*/*/*/*/*.py'
zip_safe flag not set; analyzing archive contents...
nose.util: module references __file__
nose.importer: module references __file__
nose.importer: module references __path__
nose.suite: module references __path__
nose.loader: module references __path__
nose.inspector: module MAY be using inspect.findsource
nose.plugins.doctests: module references __file__
nose.plugins.cover: module references __file__
nose.ext.dtcompat: module references __file__
nose.ext.dtcompat: module MAY be using inspect.getsourcefile

Installed /home/demichan/abs/my-local/gaphor/src/gaphor-0.12.0/nose-0.10.0b1-py2.5.egg
/usr/lib/python2.5/site-packages/setuptools/dist.py:245: UserWarning: Module nose was already imported from /tmp/easy_install-BCOnz1/nose-0.10.0b1/nose/__init__.py, but /home/demichan/abs/my-local/gaphor/src/gaphor-0.12.0/nose-0.10.0b1-py2.5.egg is being added to sys.path
  working_set.add(dist)
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/gaphor
copying gaphor/event.py -> build/lib/gaphor
copying gaphor/action.py -> build/lib/gaphor
copying gaphor/__init__.py -> build/lib/gaphor
copying gaphor/parser.py -> build/lib/gaphor
copying gaphor/storage.py -> build/lib/gaphor
copying gaphor/application.py -> build/lib/gaphor
copying gaphor/transaction.py -> build/lib/gaphor
copying gaphor/core.py -> build/lib/gaphor
copying gaphor/i18n.py -> build/lib/gaphor
copying gaphor/interfaces.py -> build/lib/gaphor
creating build/lib/gaphor/diagram
copying gaphor/diagram/component.py -> build/lib/gaphor/diagram
copying gaphor/diagram/artifact.py -> build/lib/gaphor/diagram
copying gaphor/diagram/action.py -> build/lib/gaphor/diagram
copying gaphor/diagram/generalization.py -> build/lib/gaphor/diagram
copying gaphor/diagram/__init__.py -> build/lib/gaphor/diagram
copying gaphor/diagram/comment.py -> build/lib/gaphor/diagram
copying gaphor/diagram/textelement.py -> build/lib/gaphor/diagram
copying gaphor/diagram/elementitem.py -> build/lib/gaphor/diagram
copying gaphor/diagram/usecase.py -> build/lib/gaphor/diagram
copying gaphor/diagram/association.py -> build/lib/gaphor/diagram
copying gaphor/diagram/message.py -> build/lib/gaphor/diagram
copying gaphor/diagram/include.py -> build/lib/gaphor/diagram
copying gaphor/diagram/simpleitem.py -> build/lib/gaphor/diagram
copying gaphor/diagram/extension.py -> build/lib/gaphor/diagram
copying gaphor/diagram/commentline.py -> build/lib/gaphor/diagram
copying gaphor/diagram/extend.py -> build/lib/gaphor/diagram
copying gaphor/diagram/connector.py -> build/lib/gaphor/diagram
copying gaphor/diagram/nameditem.py -> build/lib/gaphor/diagram
copying gaphor/diagram/style.py -> build/lib/gaphor/diagram
copying gaphor/diagram/items.py -> build/lib/gaphor/diagram
copying gaphor/diagram/diagramline.py -> build/lib/gaphor/diagram
copying gaphor/diagram/font.py -> build/lib/gaphor/diagram
copying gaphor/diagram/flow.py -> build/lib/gaphor/diagram
copying gaphor/diagram/diagramitem.py -> build/lib/gaphor/diagram
copying gaphor/diagram/classifier.py -> build/lib/gaphor/diagram
copying gaphor/diagram/interaction.py -> build/lib/gaphor/diagram
copying gaphor/diagram/activitynodes.py -> build/lib/gaphor/diagram
copying gaphor/diagram/actor.py -> build/lib/gaphor/diagram
copying gaphor/diagram/dependency.py -> build/lib/gaphor/diagram
copying gaphor/diagram/lifeline.py -> build/lib/gaphor/diagram
copying gaphor/diagram/klass.py -> build/lib/gaphor/diagram
copying gaphor/diagram/package.py -> build/lib/gaphor/diagram
copying gaphor/diagram/node.py -> build/lib/gaphor/diagram
copying gaphor/diagram/implementation.py -> build/lib/gaphor/diagram
copying gaphor/diagram/interface.py -> build/lib/gaphor/diagram
copying gaphor/diagram/interfaces.py -> build/lib/gaphor/diagram
copying gaphor/diagram/feature.py -> build/lib/gaphor/diagram
copying gaphor/diagram/objectnode.py -> build/lib/gaphor/diagram
creating build/lib/gaphor/misc
copying gaphor/misc/signal.py -> build/lib/gaphor/misc
copying gaphor/misc/odict.py -> build/lib/gaphor/misc
copying gaphor/misc/__init__.py -> build/lib/gaphor/misc
copying gaphor/misc/aspects.py -> build/lib/gaphor/misc
copying gaphor/misc/gidlethread.py -> build/lib/gaphor/misc
copying gaphor/misc/console.py -> build/lib/gaphor/misc
copying gaphor/misc/ipair.py -> build/lib/gaphor/misc
copying gaphor/misc/logger.py -> build/lib/gaphor/misc
copying gaphor/misc/partial.py -> build/lib/gaphor/misc
copying gaphor/misc/errorhandler.py -> build/lib/gaphor/misc
copying gaphor/misc/xmlwriter.py -> build/lib/gaphor/misc
copying gaphor/misc/rattr.py -> build/lib/gaphor/misc
copying gaphor/misc/uniqueid.py -> build/lib/gaphor/misc
copying gaphor/misc/conf.py -> build/lib/gaphor/misc
creating build/lib/gaphor/services
copying gaphor/services/adapterloader.py -> build/lib/gaphor/services
copying gaphor/services/copyservice.py -> build/lib/gaphor/services
copying gaphor/services/__init__.py -> build/lib/gaphor/services
copying gaphor/services/diagramexportmanager.py -> build/lib/gaphor/services
copying gaphor/services/actionmanager.py -> build/lib/gaphor/services
copying gaphor/services/filemanager.py -> build/lib/gaphor/services
copying gaphor/services/properties.py -> build/lib/gaphor/services
copying gaphor/services/undomanager.py -> build/lib/gaphor/services
copying gaphor/services/helpservice.py -> build/lib/gaphor/services
copying gaphor/services/guimanager.py -> build/lib/gaphor/services
creating build/lib/gaphor/adapters
copying gaphor/adapters/grouping.py -> build/lib/gaphor/adapters
copying gaphor/adapters/relationships.py -> build/lib/gaphor/adapters
copying gaphor/adapters/propertypages.py -> build/lib/gaphor/adapters
copying gaphor/adapters/__init__.py -> build/lib/gaphor/adapters
copying gaphor/adapters/connectors.py -> build/lib/gaphor/adapters
copying gaphor/adapters/editors.py -> build/lib/gaphor/adapters
creating build/lib/gaphor/UML
copying gaphor/UML/event.py -> build/lib/gaphor/UML
copying gaphor/UML/element.py -> build/lib/gaphor/UML
copying gaphor/UML/__init__.py -> build/lib/gaphor/UML
copying gaphor/UML/diagram.py -> build/lib/gaphor/UML
copying gaphor/UML/uml2.py -> build/lib/gaphor/UML
copying gaphor/UML/properties.py -> build/lib/gaphor/UML
copying gaphor/UML/elementfactory.py -> build/lib/gaphor/UML
copying gaphor/UML/collection.py -> build/lib/gaphor/UML
copying gaphor/UML/umllex.py -> build/lib/gaphor/UML
copying gaphor/UML/interfaces.py -> build/lib/gaphor/UML
creating build/lib/gaphor/ui
copying gaphor/ui/accelmap.py -> build/lib/gaphor/ui
copying gaphor/ui/namespace.py -> build/lib/gaphor/ui
copying gaphor/ui/propertyeditor.py -> build/lib/gaphor/ui
copying gaphor/ui/event.py -> build/lib/gaphor/ui
copying gaphor/ui/diagramtab.py -> build/lib/gaphor/ui
copying gaphor/ui/wrapbox.py -> build/lib/gaphor/ui
copying gaphor/ui/__init__.py -> build/lib/gaphor/ui
copying gaphor/ui/toolbox.py -> build/lib/gaphor/ui
copying gaphor/ui/diagramtools.py -> build/lib/gaphor/ui
copying gaphor/ui/toplevelwindow.py -> build/lib/gaphor/ui
copying gaphor/ui/groupingtools.py -> build/lib/gaphor/ui
copying gaphor/ui/diagramview.py -> build/lib/gaphor/ui
copying gaphor/ui/stock.py -> build/lib/gaphor/ui
copying gaphor/ui/mainwindow.py -> build/lib/gaphor/ui
copying gaphor/ui/diagramtoolbox.py -> build/lib/gaphor/ui
copying gaphor/ui/diagrampainters.py -> build/lib/gaphor/ui
copying gaphor/ui/consolewindow.py -> build/lib/gaphor/ui
copying gaphor/ui/interfaces.py -> build/lib/gaphor/ui
creating build/lib/gaphor/plugins
copying gaphor/plugins/__init__.py -> build/lib/gaphor/plugins
creating build/lib/gaphor/tests
copying gaphor/tests/__init__.py -> build/lib/gaphor/tests
copying gaphor/tests/test_application.py -> build/lib/gaphor/tests
copying gaphor/tests/test_action.py -> build/lib/gaphor/tests
copying gaphor/tests/testcase.py -> build/lib/gaphor/tests
copying gaphor/tests/test_storage.py -> build/lib/gaphor/tests
creating build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_association.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_style.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_activitynodes.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_simpleitem.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_message.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/__init__.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_diagramitem.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_interfaces.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_class.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_action.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_objectnode.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_flow.py -> build/lib/gaphor/diagram/tests
copying gaphor/diagram/tests/test_interface.py -> build/lib/gaphor/diagram/tests
creating build/lib/gaphor/adapters/tests
copying gaphor/adapters/tests/test_connector.py -> build/lib/gaphor/adapters/tests
copying gaphor/adapters/tests/__init__.py -> build/lib/gaphor/adapters/tests
copying gaphor/adapters/tests/test_editor.py -> build/lib/gaphor/adapters/tests
creating build/lib/gaphor/UML/tests
copying gaphor/UML/tests/test_properties.py -> build/lib/gaphor/UML/tests
copying gaphor/UML/tests/test_elementfactory.py -> build/lib/gaphor/UML/tests
copying gaphor/UML/tests/__init__.py -> build/lib/gaphor/UML/tests
copying gaphor/UML/tests/test_umllex.py -> build/lib/gaphor/UML/tests
copying gaphor/UML/tests/test_uml2.py -> build/lib/gaphor/UML/tests
creating build/lib/gaphor/ui/tests
copying gaphor/ui/tests/test_namespace.py -> build/lib/gaphor/ui/tests
copying gaphor/ui/tests/__init__.py -> build/lib/gaphor/ui/tests
copying gaphor/ui/tests/test_handletool.py -> build/lib/gaphor/ui/tests
copying gaphor/ui/tests/test_consolewindow.py -> build/lib/gaphor/ui/tests
copying gaphor/ui/tests/test_diagramtab.py -> build/lib/gaphor/ui/tests
copying gaphor/ui/tests/test_mainwindow.py -> build/lib/gaphor/ui/tests
copying gaphor/ui/tests/test_diagramtoolbox.py -> build/lib/gaphor/ui/tests
creating build/lib/gaphor/plugins/xmiexport
copying gaphor/plugins/xmiexport/__init__.py -> build/lib/gaphor/plugins/xmiexport
copying gaphor/plugins/xmiexport/exportmodel.py -> build/lib/gaphor/plugins/xmiexport
creating build/lib/gaphor/plugins/pynsource
copying gaphor/plugins/pynsource/pynsource.py -> build/lib/gaphor/plugins/pynsource
copying gaphor/plugins/pynsource/__init__.py -> build/lib/gaphor/plugins/pynsource
copying gaphor/plugins/pynsource/keywords.py -> build/lib/gaphor/plugins/pynsource
copying gaphor/plugins/pynsource/engineer.py -> build/lib/gaphor/plugins/pynsource
creating build/lib/gaphor/plugins/alignment
copying gaphor/plugins/alignment/__init__.py -> build/lib/gaphor/plugins/alignment
creating build/lib/gaphor/plugins/liveobjectbrowser
copying gaphor/plugins/liveobjectbrowser/__init__.py -> build/lib/gaphor/plugins/liveobjectbrowser
copying gaphor/plugins/liveobjectbrowser/browser.py -> build/lib/gaphor/plugins/liveobjectbrowser
creating build/lib/gaphor/plugins/checkmetamodel
copying gaphor/plugins/checkmetamodel/__init__.py -> build/lib/gaphor/plugins/checkmetamodel
copying gaphor/plugins/checkmetamodel/checkmodel.py -> build/lib/gaphor/plugins/checkmetamodel
copying gaphor/plugins/checkmetamodel/checkmodelgui.py -> build/lib/gaphor/plugins/checkmetamodel
creating build/lib/gaphor/plugins/diagramlayout
copying gaphor/plugins/diagramlayout/__init__.py -> build/lib/gaphor/plugins/diagramlayout
copying gaphor/plugins/diagramlayout/toposort.py -> build/lib/gaphor/plugins/diagramlayout
running egg_info
writing requirements to gaphor.egg-info/requires.txt
writing gaphor.egg-info/PKG-INFO
writing top-level names to gaphor.egg-info/top_level.txt
writing dependency_links to gaphor.egg-info/dependency_links.txt
writing entry points to gaphor.egg-info/entry_points.txt
reading manifest file 'gaphor.egg-info/SOURCES.txt'
writing manifest file 'gaphor.egg-info/SOURCES.txt'
copying gaphor/transaction.txt -> build/lib/gaphor
copying gaphor/diagram/README -> build/lib/gaphor/diagram
creating build/lib/gaphor/services/tests
copying gaphor/services/tests/test_actionmanager.py -> build/lib/gaphor/services/tests
copying gaphor/services/tests/test_copyservice.py -> build/lib/gaphor/services/tests
copying gaphor/services/tests/test_diagramexportmanager.py -> build/lib/gaphor/services/tests
copying gaphor/services/tests/test_filemanager.py -> build/lib/gaphor/services/tests
copying gaphor/services/tests/test_properties.py -> build/lib/gaphor/services/tests
copying gaphor/services/tests/test_undomanager.py -> build/lib/gaphor/services/tests
copying gaphor/UML/uml2.gaphor -> build/lib/gaphor/UML
copying gaphor/UML/uml2.override -> build/lib/gaphor/UML
copying gaphor/ui/icons.xml -> build/lib/gaphor/ui
creating build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/action24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/activityfinalnode.xcf -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/activityfinalnode24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/actor24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/artifact.xcf -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/artifact24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/assembly-connector.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/assembly-connector.svg -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/association24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/attribute24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/box24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/class.svg -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/class24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/comment24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/commentline24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/component.xcf -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/component24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/connector.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/connector.svg -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/controlflow24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/decisionnode24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/dependency24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/diagram16.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/ellipse24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/extend24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/extension24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/flowfinalnode.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/flowfinalnode.svg -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/forknode.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/forknode.svg -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/generalization24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/implementation24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/include24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/initialnode24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/interaction.xcf -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/interaction24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/interface24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/lifeline.xcf -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/lifeline24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/line24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/logo.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/message24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/node.xcf -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/node24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/objectnode.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/objectnode.svg -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/operation24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/operations.xcf -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/package.svg -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/package24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/pointer.xcf -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/pointer24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/profile24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/stereotype24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/uml_icons.xcf -> build/lib/gaphor/ui/pixmaps
copying gaphor/ui/pixmaps/usecase24.png -> build/lib/gaphor/ui/pixmaps
copying gaphor/plugins/pynsource/Readme.txt -> build/lib/gaphor/plugins/pynsource
creating build/lib/gaphor/plugins/diagramlayout/tests
copying gaphor/plugins/diagramlayout/tests/test_diagramlayout.py -> build/lib/gaphor/plugins/diagramlayout/tests
running build_mo
creating build/lib/gaphor/data
creating build/lib/gaphor/data/locale
creating build/lib/gaphor/data/locale/ca
creating build/lib/gaphor/data/locale/ca/LC_MESSAGES
converting po/ca.po -> build/lib/gaphor/data/locale/ca/LC_MESSAGES/gaphor.mo
creating build/lib/gaphor/data/locale/es
creating build/lib/gaphor/data/locale/es/LC_MESSAGES
converting po/es.po -> build/lib/gaphor/data/locale/es/LC_MESSAGES/gaphor.mo
creating build/lib/gaphor/data/locale/nl
creating build/lib/gaphor/data/locale/nl/LC_MESSAGES
converting po/nl.po -> build/lib/gaphor/data/locale/nl/LC_MESSAGES/gaphor.mo
creating build/lib/gaphor/data/locale/sv
creating build/lib/gaphor/data/locale/sv/LC_MESSAGES
converting po/sv.po -> build/lib/gaphor/data/locale/sv/LC_MESSAGES/gaphor.mo
running build_uml
generating gaphor/UML/uml2.py from gaphor/UML/uml2.gaphor...
  (warnings can be ignored)
Traceback (most recent call last):
  File "setup.py", line 195, in <module>
    **platform_setup
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools/command/install.py", line 56, in run
    return _install.run(self)
  File "/usr/lib/python2.5/distutils/command/install.py", line 506, in run
    self.run_command('build')
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "./utils/command/build_uml.py", line 44, in run
    self.generate_uml2()
  File "./utils/command/build_uml.py", line 62, in generate_uml2
    gen_uml.generate(model, outfile, overrides)
  File "./utils/command/gen_uml.py", line 326, in generate
    all_elements = parse(filename)
  File "./gaphor/parser.py", line 301, in parse
    for x in parse_generator(filename, loader):
  File "./gaphor/parser.py", line 318, in parse_generator
    for percentage in parse_file(filename, parser):
  File "./gaphor/parser.py", line 326, in parse_file
    if isinstance(filename, file):
TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types
==> ERROR: Build Failed.  Aborting...

And as far as the sometimes build but always defect package is concerned:

$ gaphor
Traceback (most recent call last):
  File "/usr/bin/gaphor", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2479, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 585, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 483, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: zope.testing>=3.3.0

The gaphor homepage itself states only python, pygtk, pycairo and setuptools as dependencies, mentioning that "Python dependencies will be downloaded when you install Gaphor".
But the the same site also mentions Gaphas (Gaphor's canvas component), but not as a dependency...
Anyhow I've made a package for it and sent it to AUR.
But even installing this package couldn't convince gaphor to think over its obstinate behavior.

The error message above also mentions zope, but installing zope-3.3.1 didn't have any effect at all.

Anybody any ideas how to get gaphor running again?

Thanks in advance!

Last edited by G_Syme (2007-12-22 16:57:32)


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#2 2007-09-08 21:56:49

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [SOLVED (finally!)] gaphor and its installation complications...

Try installing zope-interface.

Offline

#3 2007-09-08 23:09:38

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: [SOLVED (finally!)] gaphor and its installation complications...

Thanks for the tip, Snowman! But unfortunately it didn't solve the problems. The errors are the same as before...

In the meantime I've tried to find a solution by looking at some other distros:
Unfortunately Gentoo doesn't have an ebuild for gaphor (yet?), but debian has one (really old) version (0.8.1) in unstable and one in experimental (0.10.4, one of the newer versions that also doesn't build here).
Both packages require python 2.4* as a dependency, so maybe gaphor might be incompatible with python 2.5*.

But on the other hand the old version 0.9.1 in AUR runs fine with python 2.5, and I can't imagine why it should suddenly be incompatible with 2.5...
The only other dependency mentioned there in the new version (apart from zope and gaphas) is python-support, but AFAICT it's a debian specific tool for managing multiple versions of python on the same system, so no real option for us...


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#4 2007-12-22 16:56:23

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: [SOLVED (finally!)] gaphor and its installation complications...

Good evening,

I've finally succeeded to make a package for gaphor, or to be more precise, make packages for all the new dependencies.
The missing dependencies are all in AUR now, and I've also left a comment for encelo on the gaphor AUR page containing the new PKGBUILD.
But as encelo has marked himself inactive, maybe some TU wants to update the package in the meantime until he/she returns.

And this is how it looks now:

pkgname=gaphor
pkgver=0.12.4
pkgrel=1
pkgdesc="An easy to use modeling environment for UML design"
arch=('i686' 'x86_64')
url="http://gaphor.sourceforge.net"
license=('GPL')
depends=('gaphas' 'pycairo' 'python-decorator' 'pygtk' \
         'zope-component' 'zope-deferredimport' 'zope-deprecation' \
         'zope-event' 'zope-interface' 'zope-proxy' 'zope-testing')
makedepends=('setuptools>=0.6c5')
source=(http://pypi.python.org/packages/source/g/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('0ee1d17d4fb75a7113b1e496c3c31372')
sha512sums=('a31073ee237b53b626f17d4e99f4211a1a660659f965569a9639705d084de291254ffb44cfab93d0e19fc43b54c579acf62523430154c5f872d30cf1d1de25fb')

build() {
  cd $startdir/src/$pkgname-$pkgver
  python setup.py install --root=$startdir/pkg --prefix=/usr || return 1
}

Happy hacking to you all!


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

Board footer

Powered by FluxBB