Skip to content

OSX build fails with undefined PYENV_VERSION environment variable #4

Description

@jdykstra

At release-4.6.1:

./build.sh
cargo 1.73.0 (9c4383fb5 2023-08-26)
Traceback (most recent call last):
File "/Users/jwd/nobackup-cs/quodlibet/dev-utils/osx_bundle/_jhbuild/jhbuild/config.py", line 194, in load
execfile(filename, config)
File "/Users/jwd/nobackup-cs/quodlibet/dev-utils/osx_bundle/_jhbuild/jhbuild/utils/compat.py", line 67, in execfile
exec(code, globals, locals)
File "/Users/jwd/nobackup-cs/quodlibet/dev-utils/osx_bundle/_home/.jhbuildrc", line 639, in
os.environ['PYENV_VERSION'], 'lib')
~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "", line 679, in getitem
KeyError: 'PYENV_VERSION'
jhbuild: could not load config file

The failing code is in jhbuildrc-gtk-osx, and comments on it say that PYENV_VERSION is defined by pyenv. This is incorrect (https://github.com/pyenv/pyenv#environment-variables).

As a workaround, manually define PYENV_VERSION.

This error started hitting after I reinstalled pyenv, Xcode and used homebrew to reinstall a bunch of packages. I don't know what previously defined PYENV_VERSION.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions