Thank you Yeti! I found/had one other issue in gwy.c line 89 gchar *filename = g_strconcat(gwyddion_libs[i], ".", GWY_SHARED_LIBRARY_EXTENSION, ".0", NULL); the ".0" either should not be there or should be before the GWY_SHA... as it causes the libgwy not to load b/c of wrong file name.
delete the ,".0" and gwy now imports! Here is the install process for anyone who needs it: 1. Download <http://gwyddion.net/download.php#head> and extract <http://gwyddion.net/documentation/user-guide-en/installation-unix-source.html> latest dev snapshot 2. Apply patches: a. gwyddion-2.47-pygobject-include.patch Attached - copy into extracted gwyddion folder and run: patch -p0 < gwyddion-2.47-pygobject-include.patch b. Open gwy.c and delete , ".0" in line 90 3. run config ./configure PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python. framework/Versions/2.7/lib/pkgconfig/ DYLD_FALLBACK_LIBRARY_PATH="/ opt/local/lib" CPPFLAGS="-I/opt/local/include -I/opt/local/Library/ Frameworks/Python.framework/Versions/2.7/include/" LDFLAGS="-L/opt/local/lib" 4. make install (I needed sudo) 5. export PYTHONPATH=/usr/local/lib/python2.7/site-packages (I added this to my .bash_profile) 6. Either invoke gwyddion or import gwy in python Also - I am assuming this is normal but just incase it is not I get 3 duplicate warnings on import: ** (<unknown>:25137): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags' Cheers, Austin On Mon, Apr 3, 2017 at 12:01 AM, David Nečas (Yeti) <y...@gwyddion.net> wrote: > On Sun, Apr 02, 2017 at 07:08:28PM -0700, Austin Fox wrote: > > Now if I use the dev snapshot instead of the stable version I no longer > > have the sincos error > > Ah, sorry. There was a indeed bug in 2.47 (unguarded sincos()) – I was > checking the current source code where it is already corrected. > > > but the same issue as the 2014 on pygwy via macports > > <https://sourceforge.net/p/gwyddion/mailman/gwyddion- > users/thread/20140427111002.GA10822%40physics.muni.cz/#msg32273589> > > thread. > > With , on make: > > pygwy.c:31:10: fatal error: 'pygtk-2.0/pygobject.h' file not found > > > > That is with conf: > > ./configure PYTHON_SYSCFG_LINKFORSHARED='-u _PyMac_Error > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python' > > PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python. > framework/Versions/2.7/lib/pkgconfig/ > > DYLD_FALLBACK_LIBRARY_PATH="/opt/local/lib" > > CPPFLAGS="-I/opt/local/include-I/opt/local/Library/ > Frameworks/Python.framework/Versions/2.7/include/" > > LDFLAGS="-L/opt/local/lib" > > DYLD_FALLBACK_LIBRARY_PATH – I still do not know what to do about it. > > PYTHON_SYSCFG_LINKFORSHARED – has no longer any effect; you can drop it. > > CPPFLAGS – a space is missing before the second -I, at least that is how > it is formatted in the e-mail. You should certainly not need the second > part; we should be getting the Python include path from ‘python-config > --includes’. Although the path is different: you do not have the > ‘python2.7’ at the end there. > > Regarding the pygobject error, there is indeed a bug (and has been there > forever!): the ‘pygtk-2.0/’ does not belong there. Please see the > attached patch. > > I am glad someone started to complain – otherwise the problems would > never be fixed. > > Regards, > > Yeti > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gwyddion-users mailing list > Gwyddion-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gwyddion-users >
gwyddion-2.47-pygobject-include.patch
Description: Binary data
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Gwyddion-users mailing list Gwyddion-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gwyddion-users