Skip to content

Trouble building gaffer on macOS #243

@freder

Description

@freder

I'm trying to use https://github.com/GafferHQ/dependencies/releases/download/6.0.0/gafferDependencies-6.0.0-macos.tar.gz to build gaffer on macos (13.4.1, arm64) — but I'm getting the following error:

dyld[40130]: Library not loaded: /Users/john/dev/gafferBuild/dependencies-6.0.0-source/gafferDependenciesBuild/lib/Python.framework/Versions/3.8/Python
  Referenced from: <929E5BBD-C923-3BD1-9561-6A47D2C41146> /Users/freder/projects/temp/gaffer/__build/lib/Python.framework/Versions/3.8/bin/python3.8
  Reason: tried: '/Users/john/dev/gafferBuild/dependencies-6.0.0-source/gafferDependenciesBuild/lib/Python.framework/Versions/3.8/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/john/dev/gafferBuild/dependencies-6.0.0-source/gafferDependenciesBuild/lib/Python.framework/Versions/3.8/Python' (no such file), '/Users/john/dev/gafferBuild/dependencies-6.0.0-source/gafferDependenciesBuild/lib/Python.framework/Versions/3.8/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.8/Python' (no such file, not in dyld cache)
CalledProcessError: Command '['/Users/freder/projects/temp/gaffer/__build/bin/python', '-c', "import sys; print( '{}.{}'.format( *sys.version_info[:2] ) )"]' died with <Signals.SIGABRT: 6>.:
  File "/Users/freder/projects/temp/gaffer/SConstruct", line 866:
    basePythonEnv["PYTHON_VERSION"] = subprocess.check_output(
  File "/Users/freder/miniconda3/envs/gaffer/lib/python3.8/subprocess.py", line 415:
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/Users/freder/miniconda3/envs/gaffer/lib/python3.8/subprocess.py", line 516:
    raise CalledProcessError(retcode, process.args,

trying to run the provided python binary directly:

dyld[40503]: Library not loaded: /Users/john/dev/gafferBuild/dependencies-6.0.0-source/gafferDependenciesBuild/lib/Python.framework/Versions/3.8/Python
  Referenced from: <929E5BBD-C923-3BD1-9561-6A47D2C41146> /Users/freder/projects/temp/gaffer/__build/lib/Python.framework/Versions/3.8/bin/python3.8
  Reason: tried: '/Users/john/dev/gafferBuild/dependencies-6.0.0-source/gafferDependenciesBuild/lib/Python.framework/Versions/3.8/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/john/dev/gafferBuild/dependencies-6.0.0-source/gafferDependenciesBuild/lib/Python.framework/Versions/3.8/Python' (no such file), '/Users/john/dev/gafferBuild/dependencies-6.0.0-source/gafferDependenciesBuild/lib/Python.framework/Versions/3.8/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.8/Python' (no such file, not in dyld cache)
[1]    40503 abort      __build/bin/python

Looks like there are a ton of places where /Users/john/dev/gafferBuild is referenced, when in fact it should be s.th. else. Or am I missing something?


Bonus question: How do I know which gaffer version is compatible with dependencies 6.0.0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions