Gregory, Thanks for taking a look at this. Here's what I put into the console (straight out of the Google api sample file.) This works if I run it from the Python command line interpreter.
<code> try: from xml.etree import ElementTree except ImportError: from elementtree import ElementTree import gdata.calendar.data import gdata.calendar.client import gdata.acl.data import atom import getopt import sys import string import time </code> And the Scribus console returns this: 'Scribus Python Console\n\nThis is a standard Python console with some \nknown limitations. Please consult the Scribus \nScripter documentation for futher information. ' File "<console>", line 5 import gdata.calendar.data ^ SyntaxError: invalid syntax Traceback (most recent call last): File "<console>", line 1, in ? ImportError: No module named gdata.calendar.client Traceback (most recent call last): File "<console>", line 1, in ? ImportError: No module named gdata.acl.data Traceback (most recent call last): File "<console>", line 1, in ? ImportError: No module named atom So this caused me to go look at versioning, and found that Scribus is using Python 2.3, rather than going after the latest Python 2.7 install. Thanks, Steve On Mon, Oct 17, 2011 at 10:27 AM, Gregory Pittman <gregp_ky at yahoo.com>wrote: > On 10/17/2011 10:05 AM, Steve Wright wrote: > >> Dear scripting gurus, >> >> I have some modules that I have installed on my machine, (atom and gdata >> for >> Google Calendar API stuff) that work when I call them from the an external >> script, but when I try to run them from the Scribus console or directly >> from >> the script menu, the import doesn't work and the script fails. Is there a >> place to explicitly set the path for an imported module? Any other >> suggestions? >> >> > Do you get any sort of traceback message? > > I'm not sure of what sort of import commands you might need for these. > For example, when you use the > import scribus > command, > > then your commands look like > > scribus.getText() > > Greg > > > ___ > Scribus Mailing List: scribus at lists.scribus.net > Edit your options or unsubscribe: > http://lists.scribus.net/**mailman/listinfo/scribus<http://lists.scribus.net/mailman/listinfo/scribus> > See also: > http://wiki.scribus.net > http://forums.scribus.net > -- When I could find voice, I shrieked aloud in agony, "Either this is madness or it is Hell." "It is neither," calmly replied the voice of the Sphere, "it is Knowledge." *Flatland*, by Edwin A. Abbott -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.scribus.net/pipermail/scribus/attachments/20111017/f46d6565/attachment.html>
