On Thu, Sep 06, 2012 at 09:09:30AM +0100, Andrés Muñiz Piniella wrote: > Sorry if this question is too basic and maybe related of my lack of > knowledge in python. > > I am at a windows xp machine. I have Python 2.3 and pyton 2.7 installed I > also have the pygtk 2.24 for wind32 py2.7. I installed the upto date > windows gwyddion 2.29-1. > > I then go to the python console and > >>>import gwy > > (for both 2.3 and 2.7) and it cannot find it.
This is not because you are doing something wrong but because the standalone gwy module does not work on MS Windows. The cross-compilation can produce some ‘gwy.dll’ that would be the module. But it should be called ‘gwy.pyd’ on MS Windows. Please try renaming it and putting to the python search path. Well, except it also needs to find the Gwyddion libraries which it, as far as I understand DLL searching on MS Windows, will not find. So what might work (if the DLL is otherwise correct) is renaming it, moving to ‘bin’ subdirectory of Gwyddion and extending Python search path to include this directory. Regards, Yeti ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gwyddion-users mailing list Gwyddion-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gwyddion-users