-
Notifications
You must be signed in to change notification settings - Fork 16
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
Problem with installing on macOS Catalina #68
Comments
Can you check whether this fixes your issue: greg7mdp/sparsepp#40 |
I have updated sparsepp to the latest version now. Use |
Now I'm getting a different error: ========== ========== |
Well this is progress :) Does that work? |
The latest commit should be a proper fix. |
thanks for your answers. ========= ... ========= |
I guess it's the same issue again. Looking at |
Thank you! Adding |
I encountered this issue as well and it took me awhile to find this bug. Could you please add an explanation or link from the Mac section of the README? Thanks |
Thanks for the reminder. I committed a fix; however, I do not have a mac to test with. Could you confirm for me that this fixes the issue? Thanks in advance. |
Hi, Let me know if you need more details. |
I had to make both changes on macOS Monterey. |
@AneesHl @nschneid thanks for testing. |
Thanks. @BrettRey is trying to install on his M1 MacBook and is running into the following issue with the roaringbitmap library (in requirements.txt)—any suggestions? https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1/66333485 |
I see there is also https://github.com/Ezibenroc/PyRoaringBitMap in case that helps |
I can now confirm that installation on my Intel-mac now works (aside from the warnings as in the log file attached to my previous comment.) Unfortunately, I don't have an M1-mac to try to reproduce the issue that @BrettRey is having. |
@nschneid feel free to open an issue in the roaringbitmap repo. Perhaps |
|
Yes, pip has no such option, I was referring to setup.py of roaringbitmap. If you encounter further issues, let's discuss them in an issue on the roaringbitmap repo. |
Sorry I'm confused - do you mean https://github.com/RoaringBitmap/RoaringBitmap? I don't see setup.py there. |
I mean https://github.com/andreasvc/roaringbitmap which is listed in requirements.txt. The others are implementations of the same data structure with different APIs. |
when I run
env CC=gcc sudo python3 setup.py install
I get the following error:
running install
running bdist_egg
running egg_info
writing disco_dop.egg-info/PKG-INFO
writing dependency_links to disco_dop.egg-info/dependency_links.txt
writing entry points to disco_dop.egg-info/entry_points.txt
writing requirements to disco_dop.egg-info/requires.txt
writing top-level names to disco_dop.egg-info/top_level.txt
reading manifest file 'disco_dop.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.c' under directory 'discodop'
warning: no previously-included files matching '.pyx' found under directory 'discodop'
warning: no previously-included files matching '.pxi' found under directory 'discodop'
warning: no previously-included files matching '.pxd' found under directory 'discodop'
warning: no previously-included files matching '*' found under directory 'web/grammars'
writing manifest file 'disco_dop.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_py
running build_ext
building 'discodop._fragments' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Idiscodop -I./discodop -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c discodop/_fragments.cpp -o build/temp.macosx-10.9-x86_64-3.8/discodop/_fragments.o -Isparsepp/ -Wno-strict-prototypes -Wno-unused-function -Wno-unreachable-code -Wno-sign-compare -D__STDC_LIMIT_MACROS -O3 -march=native -DNDEBUG
In file included from discodop/_fragments.cpp:664:
In file included from discodop/_containers.h:11:
In file included from discodop/../sparsepp/sparsepp/spp.h:65:
discodop/../sparsepp/sparsepp/spp_utils.h:87:17: fatal error: 'tr1/unordered_map' file not found
#include <tr1/unordered_map>
^~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
I found this hint online, but I don't know how to implement it or if it'll actually work:
Any help would be much appreciated. Thnx
The text was updated successfully, but these errors were encountered: