Coder Social home page Coder Social logo

Comments (9)

QinrenK avatar QinrenK commented on June 16, 2024 1

Issue solved. Thanks a lot

from bitermplus.

maximtrp avatar maximtrp commented on June 16, 2024

Thank you for reporting! Have you tried the steps described here.

from bitermplus.

QinrenK avatar QinrenK commented on June 16, 2024

Thank you for reporting! Have you tried the steps described here.

Yes, tried all of them and the system seems have all the requirement. But the error still occurs.

Building wheel for bitermplus (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for bitermplus (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-310
creating build/lib.macosx-10.9-universal2-cpython-310/bitermplus
copying src/bitermplus/init.py -> build/lib.macosx-10.9-universal2-cpython-310/bitermplus
copying src/bitermplus/_util.py -> build/lib.macosx-10.9-universal2-cpython-310/bitermplus
running egg_info
writing src/bitermplus.egg-info/PKG-INFO
writing dependency_links to src/bitermplus.egg-info/dependency_links.txt
writing requirements to src/bitermplus.egg-info/requires.txt
writing top-level names to src/bitermplus.egg-info/top_level.txt
reading manifest file 'src/bitermplus.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'src/bitermplus.egg-info/SOURCES.txt'
copying src/bitermplus/_btm.c -> build/lib.macosx-10.9-universal2-cpython-310/bitermplus
copying src/bitermplus/_btm.pyx -> build/lib.macosx-10.9-universal2-cpython-310/bitermplus
copying src/bitermplus/_metrics.c -> build/lib.macosx-10.9-universal2-cpython-310/bitermplus
copying src/bitermplus/_metrics.pyx -> build/lib.macosx-10.9-universal2-cpython-310/bitermplus
running build_ext
building 'bitermplus._btm' extension
creating build/temp.macosx-10.9-universal2-cpython-310
creating build/temp.macosx-10.9-universal2-cpython-310/src
creating build/temp.macosx-10.9-universal2-cpython-310/src/bitermplus
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/usr/local/opt/libomp/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/bitermplus/_btm.c -o build/temp.macosx-10.9-universal2-cpython-310/src/bitermplus/_btm.o -Xpreprocessor -fopenmp
src/bitermplus/_btm.c:772:10: fatal error: 'omp.h' file not found
#include <omp.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 bitermplus
Failed to build bitermplus
ERROR: Could not build wheels for bitermplus, which is required to install pyproject.toml-based projects

from bitermplus.

maximtrp avatar maximtrp commented on June 16, 2024

Unfortunately, I do not have macOS at hand now. Just to be sure, you have exported the following vars, haven't you?

export LDFLAGS="-L/usr/local/opt/libomp/lib"
export CPPFLAGS="-I/usr/local/opt/libomp/include"

I am asking because there have been another related issue recently.

from bitermplus.

QinrenK avatar QinrenK commented on June 16, 2024

Thanks for getting back. Yes, I've exported the vars following the steps shown on another related issue. The error message persists.

from bitermplus.

maximtrp avatar maximtrp commented on June 16, 2024

Could you please post the output of brew info libomp?

from bitermplus.

QinrenK avatar QinrenK commented on June 16, 2024

ibomp: stable 15.0.5 (bottled) [keg-only]
LLVM's OpenMP runtime library
https://openmp.llvm.org/
/opt/homebrew/Cellar/libomp/15.0.5 (7 files, 1.6MB)
Poured from bottle on 2022-11-19 at 12:16:49
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libomp.rb
License: MIT
==> Dependencies
Build: cmake ✘, lit ✘
==> Caveats
libomp is keg-only, which means it was not symlinked into /opt/homebrew,
because it can override GCC headers and result in broken builds.

For compilers to find libomp you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/libomp/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libomp/include"

==> Analytics
install: 192,197 (30 days), 373,389 (90 days), 1,285,192 (365 days)
install-on-request: 24,388 (30 days), 48,013 (90 days), 164,666 (365 days)
build-error: 0 (30 days)

from bitermplus.

maximtrp avatar maximtrp commented on June 16, 2024

Please look at this section (the paths are different in your case):

# For compilers to find libomp you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/libomp/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libomp/include"

I hope exporting these vars will fix the error.

from bitermplus.

maximtrp avatar maximtrp commented on June 16, 2024

Thank you! I have updated the instructions for macOS in README.md.

from bitermplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.