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.)

 >>> import gwy

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/[email protected]/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






On Wed, Apr 23, 2014 at 1:16 PM, YTC <[email protected]> wrote:

> Yeah, 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)
>
> Then I did the following:
>
> 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'.
>
>
>
>
> On Wed, Apr 23, 2014 at 4:02 AM, David Nečas (Yeti) <[email protected]>wrote:
>
>> On Wed, Apr 23, 2014 at 02:41:55AM -0700, YTC wrote:
>> > Also tried to build from source but at the end, "make install" got the
>> > following error:
>> >
>> > *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
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/gwyddion-users
>>
>
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to