Re: Problems in python importing dia



At 21.09.2011 12:42, Pierre-Louis Bonicoli wrote:
On 21/09/2011 12:00, Ottavio Campana wrote:
[...]
import dia
Traceback (most recent call last):
   File "<stdin>", line 1, in<module>
ImportError: No module named dia

[...]
There are two python plugins:

Not quite, but close. There is only one Dia python plug-in.

- pydia (available when built with '--with-python')
  - http://mail.gnome.org/archives/dia-list/2009-January/msg00078.html
  "'import dia' will only work inside of Dia."

Yes.

- swig (available when built with '--with-python --with-swig')
  - http://mail.gnome.org/archives/dia-list/2007-March/msg00092.html
  - http://hans.breuer.org/dia/bindings/index.html
  As far as i know, "import dia" doesn't work with this plugin too.

Quite some PyDia plug-ins are indeed working unchanged either as standalone version or within the Dia application. See:
        http://git.gnome.org/browse/dia/tree/bindings/test.py
how to call them stand-alone.

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]