Comments (7)
Thanks for bringing this here. I'll summarize what I said out-of-band in case anyone else can help.
- I'd like to support Windows
- Have no access to Windows box
- No experience running a compiler on Windows
The MurmurHash headers are being installed from here: https://github.com/syllog1sm/headers_workaround . I created this to install headers via pip, as a workaround to a bug in setuptools.
If the problem is indeed with MurmurHash headers, we can either patch the files directly, or we can fork the files and decide which to install in headers_workaround.
To verify that the problem is here, you can try installing any of these packages, either over pip or by cloning their repo and building:
- cymem: Cython, but no MurmurHash or C headers. We expect success.
- preshed: Cython, with MurmurHash. We expect fail
- preshed: Cython, with MurmurHash. We expect fail
from spacy.
A user on reddit writes:
Just an FYI because I see that you hope to support Windows and I managed to hack my way through to a 64bit Python 2.7.9 Windows build. Not especially elegant but here's what seems to have worked for me: - Installed Microsoft Visual C++ Compiler for Python 2.7; - Copied stdint.h from a mingw include folder over to the Visual C++ include folder; - Commented out the uint32_t and uint64_t typedefs in stdint.h; - Added the uint32_t and uint64_t typedefs to the various .cpp files in thinc, preshed, and spacy that used them in declarations(~ spacy\morphology.cpp spacy\en\attrs.cpp spacy\syntax\arc_eager.cpp thinc\weights.cpp thinc\search.cpp tests\c_test_search.cpp preshed\maps.c preshed\counter.c murmurhash\mrmr.cpp? ); - python setup.py install for thinc, preshed, spacy respectively.
I have reproduced the example usage etc. with this build.
You can try the work-around above for now, but in future it looks like proper Windows support won't be too difficult.
from spacy.
This happens because MSVC is not C99 compatible prior to 2010 version.
There is a version of stdin.h for MSVC that was properly maintained : http://msinttypes.googlecode.com/svn/trunk/stdint.h
from spacy.
This issue requires a change to headers_workaround -- available at https://github.com/maxirmx/headers_workaround for now.
Please pay attention to README-MSVC.txt
from spacy.
All builds now pass.
from spacy.
Update: We are now shipping stdint.h
together with spaCy, see https://github.com/spacy-io/spaCy/tree/master/include/msvc9.
from spacy.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from spacy.
Related Issues (20)
- Calling Spacy from Matlab throws errors HOT 2
- Fail to call Python code using Matlab HOT 1
- BLIS_ARCH="generic" tip -maybe put it in some config ot setup.py?
- can't not use wordpieces in Spacy 3.7.5 with en_core_web_trf
- Config validation error for es-core-web-sm HOT 1
- ImportError: cannot import name symnols HOT 2
- How to change alignment_mode in a hf pipelines in code? HOT 1
- Spacy 3.7.5 not working with python 3.12.4 HOT 6
- Italian & Spanish NER shouldn't extract "Google" or "Facebook"? HOT 1
- Wrong POS tagging in Italian HOT 1
- Cannot compile with AUR helper. HOT 2
- Issue template link points to wrong address
- [BUG] -- Arguments `enable` and `disable` not working as expected in `spacy.load`
- GPU and multiprocessing error with flask HOT 2
- Document good practices for caching spaCy models in CI setup
- Chinese segmentation is not separating quotation marks correctly
- Not able to install spacy version 2.1.9 HOT 6
- Can't install spacy package as a module HOT 4
- catalogue.RegistryError: [E893] Could not find function 'spacy.Tok2Vec.v1' in function registry 'architectures'. HOT 1
- Cannot complete a Docker image build with spaCy 3.7.6 HOT 7
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 spacy.