Glade Forum http://www.peardrop.co.uk/forum/index.php? <![CDATA[Installing Glade on Mac OS X]]> http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1729
https://superuser.com/questions/282450/where-do-i-set-dyld-library-path-on-mac-os-x-and-is-it-a-good-idea

]]>
Mon, 27 Aug 2018 03:21:28 GMT http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1729
<![CDATA[Installing Glade on Mac OS X]]> http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1728
Keiths-MBP:MacOS keith$ otool -L glade
glade:
    /System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.10)

I believe you can control the framework search path using the env var DYLD_FRAMEWORK_PATH if you want it to pick up a non-standard python framework?

Then the module load path (sys.path) is set using the env var PYTHONPATH.]]>
Mon, 27 Aug 2018 03:17:04 GMT http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1728
<![CDATA[Installing Glade on Mac OS X]]> http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1727
Quote From : Keith August 26, 2018, 4:49 pm
When opening from the command line, you get the environment variables set in your .bash_profile. And presumably this is where you are setting PYTHONPATH.

Any reason why you have a 2.7.15 installation - the current version for an up to date MacOS is 2.7.10?


I am fairly certain that I could use 2.7.10 for my Glade scripts. However, my preference is not to develop using the Mac system installed Python. I believe the issues I am experiencing are the result of a conflict between Glade using the system installed Python and my script importing and using python libraries that are in a standard python installation. So I think the fix would be for me to either use the Python that shipped with my Mac for my Glade scripts or be able to configure Glade to use the standard python installation instead of the system installed Python that comes with the OS.

Is my understanding correct that Glade is linked to the Mac system python installation and there is no way to configure Glade to have it use a different python installation?

Thanks for your inputs. I really appreciate it.]]>
Mon, 27 Aug 2018 03:06:42 GMT http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1727
<![CDATA[Installing Glade on Mac OS X]]> http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1726
Any reason why you have a 2.7.15 installation - the current version for an up to date MacOS is 2.7.10?]]>
Sun, 26 Aug 2018 16:49:53 GMT http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1726
<![CDATA[Installing Glade on Mac OS X]]> http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1725
However, I receive a "ImportError: cannot import name _remove_dead_weakref" when I open Glade from the command line - "open glade.app". Interestingly, I've just realized that I do not receive this error when opening Glade from Finder.


Quote From : Keith August 26, 2018, 2:03 pm
Quote From : geoffatmuse August 25, 2018, 2:56 pm
Hello,
I wonder, is it possible for to link Glade to the subsequently installed Python, in this case 2.7.15, and its accompanying 3rd party modules, instead of linking to the MAC OS system Python.


Glade is built with the current Python version (in my case it is 2.7.10) but will use the site libraries of your installation, depending where PYTHONPATH is set to. 

Is there a particular issue you are encountering that is causing a problem with the default site libraries?
]]>
Sun, 26 Aug 2018 14:59:59 GMT http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1725
<![CDATA[Installing Glade on Mac OS X]]> http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1724
Quote From : geoffatmuse August 25, 2018, 2:56 pm
Hello,
I wonder, is it possible for to link Glade to the subsequently installed Python, in this case 2.7.15, and its accompanying 3rd party modules, instead of linking to the MAC OS system Python.


Glade is built with the current Python version (in my case it is 2.7.10) but will use the site libraries of your installation, depending where PYTHONPATH is set to. 

Is there a particular issue you are encountering that is causing a problem with the default site libraries?]]>
Sun, 26 Aug 2018 14:03:25 GMT http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1724
<![CDATA[Installing Glade on Mac OS X]]> http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1723
I wonder, is it possible for to link Glade to the subsequently installed Python, in this case 2.7.15, and its accompanying 3rd party modules, instead of linking to the MAC OS system Python.

Quote From : Keith May 7, 2012, 4:03 pm
First download from:

http://www.peardrop.co.uk/glade/glade4_mac64.tar.gz (64 bit only)

Unzip/untar to a directory of choice, then follow the instructions in the README.txt file. Note that for the embedded Python interpreter to work correctly you MUST set the env var PYTHONPATH to the directory where glade is installed, so it can find the ui.py module. The env var GLADE_HOME is recommended but not essential; Glade will attempt to locate the online html docs based on the app's location if this is not set.

NB prior to version 4.2.4, Glade was built with ActiveState Python. This caused several problems if you just tried to use the version of Python which comes with the Mac (thank you to the users who reported this!). So as of 4.2.4, Glade is linked to the Mac python (currently version 2.7).
]]>
Sat, 25 Aug 2018 14:56:54 GMT http://www.peardrop.co.uk/forum/index.php?tid=193&tpg=1#p1723
<![CDATA[Installing Glade on Linux]]> http://www.peardrop.co.uk/forum/index.php?tid=4&tpg=3#p1718
apt-get install python2.7-minimal

Should be all you need. ]]>
Tue, 14 Aug 2018 15:46:11 GMT http://www.peardrop.co.uk/forum/index.php?tid=4&tpg=3#p1718
<![CDATA[Version 4.6.51]]> http://www.peardrop.co.uk/forum/index.php?tid=402&tpg=1#p1717 Sat, 28 Jul 2018 07:36:04 GMT http://www.peardrop.co.uk/forum/index.php?tid=402&tpg=1#p1717 <![CDATA[Zoom to fit on refocus bug(?) on macOS 10.12.5]]> http://www.peardrop.co.uk/forum/index.php?tid=366&tpg=1#p1579
I was using 4.4.31. I upgraded to 4.6.8 and it works fine. Thanks! :)

Awesome tool, by the way.]]>
Wed, 02 Aug 2017 16:45:15 GMT http://www.peardrop.co.uk/forum/index.php?tid=366&tpg=1#p1579