ActiveState Community

Macro in python ImportError: No module named blah blah

Posted by ozon on 2008-05-25 07:24
OS: Gentoo

In want create a new Macro in python. Some stuff works...
sample "import urllib, os, sys, re, getopt, select, xml.dom.minidom, gettext, komodo" work.
But when i want import other module (dbus or pydcop) then make Komodo a error.

ImportError: No module named dbus

In a python shell work import dbus.
In Komdo self works the Modul dbus but why not in a Macro?
What can i do?

ToddW | Sun, 2008-05-25 09:13

These are two different Python installations.

Komodo has it's own separate Python installation that it is using for the Komodo runtime (which includes the macros feature) which will contain different modules to your locally installed Python (i.e. the Python shell).

Komodo's Python installation only includes the standard Python library modules.

Cheers,
Todd