On Mon, Feb 21, 2011 at 10:11:38AM -0500, Joshua Smith wrote:
> I am either misunderstanding something about pygwy, or my install is
> not working. The main issue is that I want to batch process several
> STM files by writing a python script without opening the main gwyddion
> GUI. I am getting the following error in ipython:
> 
> In [1]: import gwy
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
> 
> /home/jrsmith3/<ipython console> in <module>()
> 
> ImportError: No module named gwy

This is because there is no ‘real’ module called gwy, it is created on
the fly in the running Gwyddion by the pygwy module.  So it exists only
for the Python interpreter embedded there.

Hence I'm afraid what you are trying to do is not possible.

More precisely, it is not possible without writing some C code and
figuring out some things.

Either someone will figure out how to create a persisent gwy module (and
perform all the necessary run-time setup so that the script will run in
an environment similar to actually running within Gwyddion).
Alternatively, someone will write a small Gwyddion application with the
only purpose of running some Python script after performing the setup.
IIRC I have posted some general-purpose sample application source but
the key part is the pygwy stuff here.  Either would be probably
appreciated by Gwyddion users...

Regards,

Yeti


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to