Você está sentindo falta do GObject for Python 2.5.
Executar:
sudo port install py25-gobject
O Gaphor deve funcionar depois disso.
Eu pareço instalar o Gaphor com sucesso pelo Easy_install
$ sudo easy_install gaphor
Searching for gaphor
Best match: gaphor 0.14.0
Processing gaphor-0.14.0-py2.5.egg
gaphor 0.14.0 is already the active version in easy-install.pth
Installing gaphorconvert script to /usr/local/bin
Installing gaphor script to /usr/local/bin
Using /Library/Python/2.5/site-packages/gaphor-0.14.0-py2.5.egg
Processing dependencies for gaphor
Finished processing dependencies for gaphor
Eu corri sem sucesso por
$ gaphor
Traceback (most recent call last):
File "/usr/local/bin/gaphor", line 8, in <module> load_entry_point('gaphor==0.14.0', 'console_scripts', 'gaphor')()
File "/Library/Python/2.5/site-packages/gaphor-0.14.0-py2.5.egg/gaphor/__init__.py", line 65, in main launch()
File "/Library/Python/2.5/site-packages/gaphor-0.14.0-py2.5.egg/gaphor/__init__.py", line 36, in launch from gaphor.application import Application
File "/Library/Python/2.5/site-packages/gaphor-0.14.0-py2.5.egg/gaphor/application.py", line 16, in <module> import gaphor.UML
File "/Library/Python/2.5/site-packages/gaphor-0.14.0-py2.5.egg/gaphor/UML/__init__.py", line 3, in <module>
from gaphor.UML.uml2 import *
File "/Library/Python/2.5/site-packages/gaphor-0.14.0-py2.5.egg/gaphor/UML/uml2.py", line 97, in <module>
from diagram import Diagram
File "/Library/Python/2.5/site-packages/gaphor-0.14.0-py2.5.egg/gaphor/UML/diagram.py", line 12, in <module> import gobject
ImportError: No module named gobject
Eu então instalo o gobject e executo sudo port install py26-gobject
. No entanto, o mesmo problema persiste.
Como você pode instalar o Gaphor no OS X da MacPorts?
Você não instalou com o MacPorts, instalado com a instalação do sistema Python.
em vez disso, tente
sudo /opt/local/bin/easy_install gaphor
Como Mike disse, você pode precisar de bibliotecas de suporte instaladas com macports
Tags python