Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: pydensecrf fails within mac m1 #599

Open
AhnafS opened this issue Apr 2, 2024 · 1 comment
Open

[Bug]: pydensecrf fails within mac m1 #599

AhnafS opened this issue Apr 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@AhnafS
Copy link

AhnafS commented Apr 2, 2024

Issue

pip install git+https://github.com/kodalli/pydensecrf.git
Collecting git+https://github.com/kodalli/pydensecrf.git
  Cloning https://github.com/kodalli/pydensecrf.git to /private/var/folders/f3/y5dbxvqj3x1fb2r4k3rylkj00000gn/T/pip-req-build-cqgal2zh
  Running command git clone --filter=blob:none --quiet https://github.com/kodalli/pydensecrf.git /private/var/folders/f3/y5dbxvqj3x1fb2r4k3rylkj00000gn/T/pip-req-build-cqgal2zh
  Resolved https://github.com/kodalli/pydensecrf.git to commit e22f579af72688a3dbd3192f43918f6e9879cb4f
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pydensecrf
  Building wheel for pydensecrf (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pydensecrf (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-x86_64-cpython-39
      creating build/lib.macosx-10.9-x86_64-cpython-39/pydensecrf
      copying pydensecrf/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/pydensecrf
      copying pydensecrf/utils.py -> build/lib.macosx-10.9-x86_64-cpython-39/pydensecrf
      running build_ext
      building 'pydensecrf.eigen' extension
      creating build/temp.macosx-10.9-x86_64-cpython-39
      creating build/temp.macosx-10.9-x86_64-cpython-39/pydensecrf
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/ahnafs/miniconda3/include -fPIC -O2 -isystem /Users/ahnafs/miniconda3/include -Ipydensecrf/densecrf/include -Ipydensecrf -I/Users/ahnafs/Documents/Code/manga-image-translator/venv/include -I/Users/ahnafs/miniconda3/include/python3.9 -c pydensecrf/eigen.cpp -o build/temp.macosx-10.9-x86_64-cpython-39/pydensecrf/eigen.o
      In file included from pydensecrf/eigen.cpp:28:
      In file included from /Users/ahnafs/miniconda3/include/python3.9/Python.h:25:
      /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stdio.h:107:15: fatal error: 'stdio.h' file not found
      #include_next <stdio.h>
                    ^~~~~~~~~
      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 pydensecrf
Failed to build pydensecrf
ERROR: Could not build wheels for pydensecrf, which is required to install pyproject.toml-based projects

Command Line Arguments

pip install git+https://github.com/kodalli/pydensecrf.git

Console logs

No response

@AhnafS AhnafS added the bug Something isn't working label Apr 2, 2024
@jokester
Copy link
Contributor

If miniconda + py3.9 + the mac toolchain fails, maybe try other combinations? This seems not a pydensecrf-specific build error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants