Re: Problems in python importing dia



On 21/09/2011 12:00, Ottavio Campana wrote:
Hi everybody

I am trying to write a plugin in python for dia to export my data. I
already wrote three others plugins which worked fine in Debian 5, but
now in my new environment (Debian testing) I fail at the very first step.

ottavio magritte:/tmp$ python
Python 2.6.7 (r267:88850, Jul 10 2011, 08:11:54)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import dia
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named dia


Have you ever seen this problem? Is still importing dia the way to
interact with newer versions of dia?

Can you please give me a hint?

Thank you,

Ottavio



There are two python plugins:

- 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."

- 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.

Pierre-Louis



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