geoffatmuse

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Installing Glade on Mac OS X #2207
    geoffatmuse
    Participant
    Quote:
    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.

    in reply to: Installing Glade on Mac OS X #2205
    geoffatmuse
    Participant

    I believe I am encountering a compatibility issue between python 2.7.10 and the python requests library with python 2.7.15. I have set PYTHONPATH to the python 2.7.15 directory and that is all working swimmingly.

    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:
    Quote:
    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?

    in reply to: Installing Glade on Mac OS X #2203
    geoffatmuse
    Participant

    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.

    Quote:
    First download from:

    https://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).

Viewing 3 posts - 1 through 3 (of 3 total)