Update: after some search, I did the following which made it go through
./configure CPPFLAGS="-I/opt/local/include
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/"
LDFLAGS="-L/opt/local/lib"
pygwy console is now available.
However, I am having another problem importing gwy in python shell outside
gwyddion. (As I often need to batch process many files, I prefer to do it
outside gwyddion, and it has been working well in Windows.)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: Cannot dlopen() libgwyddion2.so.
I had followed the instructions here (
https://www.mail-archive.com/gwyddion-***@lists.sourceforge.net/msg01251.html
)
set LD_LIBRARY_PATH (to include the lib directory), PYTHONPATH (to include
the site-packages directory containing gwy.so)
PATH is not set as I am not sure what to set
I couldn't find libgwyddion2.so in the gwyddion installation path. Should I
include more paths in any of the environmental variables?
Thanks
Post by YTCYeah, I got the same error when just running "make".
I believe everything is installed to /opt/local
pygtk is at /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/pygtk-2.0
where pygobject.h actually is
This seems a bit strange because there are a bunch of other .h files in
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
Also when I first run ./configure, it was not able to find pygtk at all as
the summary says pygwy will not be installed (pygtk2 is needed)
export
PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/
After this, ./configure was able to find pygtk2 and pygwy is listed as
'yes'.
Post by David NeÄas (Yeti)Also tried to build from source but at the end, "make install" got the
*pygwy.c:32:10: **fatal error: **'pygtk-2.0/pygobject.h' file not found*
#include <pygtk-2.0/pygobject.h>
though pygtk-2.0 is installed and pygobject.h does exist.
I don't know much about the Mac specifics but this is certainly odd.
I suppose you get the same error when you just run âmakeâ because
getting it only on âmake installâ makes no sense.
Could you please post (or send me) config.log? Do you have pygtk and
everything else from macports installed to the standard /opt/local?
Yeti
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Gwyddion-users mailing list
https://lists.sourceforge.net/lists/listinfo/gwyddion-users