emilydolson / phylotrackpy

Python phylogeny tracker for in silico evolution experiments
MIT License
10 stars 2 forks source link

Installation failure on macOS #97

Closed amlalejini closed 4 months ago

amlalejini commented 4 months ago

Describe the bug Installation failure (using pip) for macOS

To Reproduce Steps to reproduce the behavior:

python3 -m pyenv
source pyenv/bin/activate
pip3 install phylotrackpy

Output

Collecting phylotrackpy
  Using cached phylotrackpy-0.2.0.tar.gz (18 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: phylotrackpy
  Building wheel for phylotrackpy (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for phylotrackpy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-12-arm64-cpython-311
      creating build/lib.macosx-12-arm64-cpython-311/phylotrackpy
      copying phylotrackpy/__init__.py -> build/lib.macosx-12-arm64-cpython-311/phylotrackpy
      running build_ext
      building 'phylotrackpy.systematics' extension
      creating build/temp.macosx-12-arm64-cpython-311
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DVERSION_INFO=0.2.0 -DEMP_OPTIONAL_THROW_ON=1 -I/private/var/folders/lp/1hl9w82571572d7shskck5r0fr62d7/T/pip-build-env-_fkye0uv/overlay/lib/python3.11/site-packages/pybind11/include -I/Users/lalejina/devo_ws/alife-2024-phylo-tutorial/pyenv/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c systematics_bindings.cpp -o build/temp.macosx-12-arm64-cpython-311/systematics_bindings.o -fvisibility=hidden -g0 -std=c++20 -mmacosx-version-min=10.14
      systematics_bindings.cpp:12:10: fatal error: 'Empirical/include/emp/Evolve/Systematics.hpp' file not found
      #include "Empirical/include/emp/Evolve/Systematics.hpp"
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for phylotrackpy
Failed to build phylotrackpy
ERROR: Could not build wheels for phylotrackpy, which is required to install pyproject.toml-based projects

Computational environment (please complete the following information):

amlalejini commented 4 months ago

Fixed (by @emilydolson)! Installation using pip install phylotrackpy now working on my end.