Comments (9)
Issue solved. Thanks a lot
from bitermplus.
Thank you for reporting! Have you tried the steps described here.
from bitermplus.
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.
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.
Thanks for getting back. Yes, I've exported the vars following the steps shown on another related issue. The error message persists.
from bitermplus.
Could you please post the output of brew info libomp
?
from bitermplus.
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.
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.
Thank you! I have updated the instructions for macOS in README.md.
from bitermplus.
Related Issues (20)
- Is it possible to contain only those words that occur in minimum 90% of documents or
- Is it possible to contain only those words that occur in max 90% and min 10% of documents in function X, vocabulary, vocab_dict = btm.get_words_freqs() HOT 1
- Cannot find Closest topics and Stable topics HOT 4
- How to give each feature a weight value?
- Questions regarding Perplexity and Model Comparison with C++ HOT 3
- get_top_topic_words yields unreasonable results HOT 1
- Implementation Guide HOT 2
- Getting the error 'CountVectorizer' object has no attribute 'get_feature_names_out' HOT 4
- The vocabularies input into BTM HOT 1
- Got an unexpected result in marked sample HOT 7
- Calculation of nmi,ami,ri HOT 2
- Failed building wheel for bitermplus HOT 2
- failed building wheels HOT 2
- Calculating wrong perplexity? HOT 2
- Using `biterm.perplexity()` for Calculating Perplexity of Other Topic Models HOT 1
- Visualization poblem HOT 7
- Installation errors with Mac OS HOT 2
- Topics' names? HOT 3
- Linux Installation of pythonx.x-dev needed if installing in a virtual environment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitermplus.