compas-dev / compas_cgal

COMPAS package for working with CGAL.
https://compas.dev/compas_cgal
GNU Lesser General Public License v3.0
23 stars 5 forks source link

pip install fails #6

Closed Achillx closed 3 years ago

Achillx commented 3 years ago

Describe the bug Running pip install -e . fails.

To Reproduce Steps to reproduce the behavior:

  1. Create a new conda environment
  2. Clone compas_cgal on your computer
  3. Open terminal and navigate to the compas_cgal folder
  4. Activate the environment created in step 1.
  5. Run pip install -e .

Expected behavior Install compas_cgal with no errors.

Desktop (please complete the following information):

Additional context This is the error output:

(cgal) ➜  compas_cgal git:(master) pip install -e .
Obtaining file:///Users/axydis/PROJECTS/python/compas_cgal
Installing collected packages: compas-cgal
  Running setup.py develop for compas-cgal
    ERROR: Command errored out with exit status 1:
     command: /Users/axydis/anaconda2/envs/cgal/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/axydis/PROJECTS/python/compas_cgal/setup.py'"'"'; __file__='"'"'/Users/axydis/PROJECTS/python/compas_cgal/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: /Users/axydis/PROJECTS/python/compas_cgal/
    Complete output (41 lines):
    running develop
    running egg_info
    writing src/compas_cgal.egg-info/PKG-INFO
    writing dependency_links to src/compas_cgal.egg-info/dependency_links.txt
    writing top-level names to src/compas_cgal.egg-info/top_level.txt
    reading manifest file 'src/compas_cgal.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching '.github'
    no previously-included directories found matching '.vscode'
    no previously-included directories found matching 'data'
    no previously-included directories found matching 'docs'
    no previously-included directories found matching 'ext'
    no previously-included directories found matching 'scripts'
    no previously-included directories found matching 'temp'
    no previously-included directories found matching 'tests'
    no previously-included directories found matching 'var'
    no previously-included directories found matching 'wheels'
    warning: no previously-included files found matching 'requirements-dev.txt'
    warning: no previously-included files found matching 'pytest.ini'
    warning: no previously-included files found matching '.bumpversion.cfg'
    warning: no previously-included files found matching '.editorconfig'
    warning: no previously-included files found matching 'tasks.py'
    warning: no previously-included files found matching 'CONTRIBUTING.md'
    warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
    warning: no previously-included files matching '__pycache__' found anywhere in distribution
    warning: no previously-included files matching '*.dylib' found anywhere in distribution
    warning: no previously-included files matching '*.nb[ic]' found anywhere in distribution
    warning: no previously-included files matching '.DS_Store' found anywhere in distribution
    writing manifest file 'src/compas_cgal.egg-info/SOURCES.txt'
    running build_ext
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/axydis/anaconda2/envs/cgal/include -arch x86_64 -I/Users/axydis/anaconda2/envs/cgal/include -arch x86_64 -I/Users/axydis/anaconda2/envs/cgal/include/python3.8 -c /var/folders/01/s2hrx_291sx8c2jpl2c70z1w0000gq/T/tmp2g4c4clp.cpp -o var/folders/01/s2hrx_291sx8c2jpl2c70z1w0000gq/T/tmp2g4c4clp.o -std=c++14
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/axydis/anaconda2/envs/cgal/include -arch x86_64 -I/Users/axydis/anaconda2/envs/cgal/include -arch x86_64 -I/Users/axydis/anaconda2/envs/cgal/include/python3.8 -c /var/folders/01/s2hrx_291sx8c2jpl2c70z1w0000gq/T/tmpra24vjbf.cpp -o var/folders/01/s2hrx_291sx8c2jpl2c70z1w0000gq/T/tmpra24vjbf.o -fvisibility=hidden
    building 'compas_cgal._cgal' extension
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/axydis/anaconda2/envs/cgal/include -arch x86_64 -I/Users/axydis/anaconda2/envs/cgal/include -arch x86_64 -DVERSION_INFO="0.1.1" -I./include -I/Users/axydis/anaconda2/envs/cgal/include/eigen3 -I/Users/axydis/anaconda2/envs/cgal/include -I/Users/axydis/anaconda2/envs/cgal/include/python3.8 -c src/booleans.cpp -o build/temp.macosx-10.9-x86_64-3.8/src/booleans.o -stdlib=libc++ -mmacosx-version-min=10.14 -DVERSION_INFO="0.1.1" -std=c++14 -fvisibility=hidden -DCGAL_DEBUG=1
    In file included from src/booleans.cpp:1:
    In file included from src/booleans.h:4:
    ./include/compas.h:4:10: fatal error: 'pybind11/eigen.h' file not found
    #include <pybind11/eigen.h>
             ^~~~~~~~~~~~~~~~~~
    1 error generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/axydis/anaconda2/envs/cgal/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/axydis/PROJECTS/python/compas_cgal/setup.py'"'"'; __file__='"'"'/Users/axydis/PROJECTS/python/compas_cgal/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
tomvanmele commented 3 years ago

the installation instructions are outdated. compas_cgal is available on conda-forge and can be installed with conda

conda install compas_cgal