YTC
2014-06-17 23:53:08 UTC
I wrote some scripts to batch process files in a python console outside
gwyddion on OSX. But it failed to load files.
c=gwy.gwy_file_load(fp, gwy.RUN_NONINTERACTIVE)
Error Output:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/py/PyCrust.py:1:
Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
#!/usr/bin/env python
And it cannot save as well. I have a separate module to load a custom data
file.
c=file_load() # returns a gwy container
......
data processing
......
gwy.gwy_file_save(c, 'test.gwy', gwy.RUN_NONINTERACTIVE)
Traceback (most recent call last):
File "<input>", line 1, in <module>
GError: No module can save to this file type.
executing the last line will crash the python console.
Both scripts work fine in windows, and in the built-in pygwy console on
Mac. I suspect it might be problems with loading the gwyddion libraries on
OSX, but have no ideas on how to track down the problem. Any help is much
appreciated.
gwyddion on OSX. But it failed to load files.
c=gwy.gwy_file_load(fp, gwy.RUN_NONINTERACTIVE)
Error Output:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/py/PyCrust.py:1:
Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
#!/usr/bin/env python
And it cannot save as well. I have a separate module to load a custom data
file.
c=file_load() # returns a gwy container
......
data processing
......
gwy.gwy_file_save(c, 'test.gwy', gwy.RUN_NONINTERACTIVE)
Traceback (most recent call last):
File "<input>", line 1, in <module>
GError: No module can save to this file type.
executing the last line will crash the python console.
Both scripts work fine in windows, and in the built-in pygwy console on
Mac. I suspect it might be problems with loading the gwyddion libraries on
OSX, but have no ideas on how to track down the problem. Any help is much
appreciated.