Comments (9)
I am having a very similar problem. OS X 10.9, Python 2.7.5, pip 1.5.5
from spacy.
Weird, no problem here with Conda 3.8.4 on OSX and Linux (Ubuntu) with spaCy 0.64 (rev. master). Maybe because I did change some settings in my local miniconda/lib/python2.7/_sysconfigdata.py
.
Anyway, Try to set CXXFLAGS
and LDFLAGS
before build.
export CXXFLAGS='-std=c++11 -stdlib=libc++ -mmacosx-version-min=10.8'
export LDFLAGS='-lc++'
from spacy.
not yet; exporting the flags above didn't help
from spacy.
Try again with CPPFLAGS instead of CXXFLAGS.
The version in master solves this, but in a brittle way. It changes the compile flags by asking whether the sys.platform is 'darwin'. However, this won't work if you're using GCC on OSX. I'm working on a better solution.
from spacy.
Dear coders,
I am running installation on Windows 7, Python 2.7.5 and I get the following error after trying to make this command: python -m spacy.en.download
cannot import name VisibleDeprecationWarning
What went wrong?
from spacy.
What went wrong
You used Windows.
Windows support is planned, and it's not fundamentally broken. But I don't have any easy way to test on a Windows machine, so it's difficult to make sure it works easily at the moment.
Please see #13 for clues.
from spacy.
@honnibal trying with CPPFLAGS flags instead and the current version in master I was able to install
and
from spacy.en import English
no longer throws an error. However,
python -m spacy.en.download
throws this error/traceback
Moving existing dir /Users/danielkrasner/REPOS/spacy/spacy/en/data to /tmp
100% [......................................................................] 204625920 / 204625920Traceback (most recent call last):
File "/Users/danielkrasner/anaconda/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/Users/danielkrasner/anaconda/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/danielkrasner/REPOS/spacy/spacy/en/download.py", line 60, in <module>
plac.call(main)
File "/Users/danielkrasner/anaconda/lib/python2.7/site-packages/plac_core.py", line 309, in call
cmd, result = parser_from(obj).consume(arglist)
File "/Users/danielkrasner/anaconda/lib/python2.7/site-packages/plac_core.py", line 195, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/Users/danielkrasner/REPOS/spacy/spacy/en/download.py", line 56, in main
install_data(data_url, path.dirname(DEST_DIR))
File "/Users/danielkrasner/REPOS/spacy/spacy/en/download.py", line 31, in install_data
t.extractall(dest_dir)
File "/Users/danielkrasner/anaconda/lib/python2.7/tarfile.py", line 2051, in extractall
self.extract(tarinfo, path)
File "/Users/danielkrasner/anaconda/lib/python2.7/tarfile.py", line 2088, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
File "/Users/danielkrasner/anaconda/lib/python2.7/tarfile.py", line 2164, in _extract_member
self.makefile(tarinfo, targetpath)
File "/Users/danielkrasner/anaconda/lib/python2.7/tarfile.py", line 2205, in makefile
copyfileobj(source, target)
File "/Users/danielkrasner/anaconda/lib/python2.7/tarfile.py", line 265, in copyfileobj
shutil.copyfileobj(src, dst)
File "/Users/danielkrasner/anaconda/lib/python2.7/shutil.py", line 49, in copyfileobj
buf = fsrc.read(length)
File "/Users/danielkrasner/anaconda/lib/python2.7/tarfile.py", line 818, in read
buf += self.fileobj.read(size - len(buf))
File "/Users/danielkrasner/anaconda/lib/python2.7/tarfile.py", line 736, in read
return self.readnormal(size)
File "/Users/danielkrasner/anaconda/lib/python2.7/tarfile.py", line 745, in readnormal
return self.fileobj.read(size)
File "/Users/danielkrasner/anaconda/lib/python2.7/gzip.py", line 261, in read
self._read(readsize)
File "/Users/danielkrasner/anaconda/lib/python2.7/gzip.py", line 308, in _read
self._read_eof()
File "/Users/danielkrasner/anaconda/lib/python2.7/gzip.py", line 347, in _read_eof
hex(self.crc)))
IOError: CRC check failed 0x8d6b7aa6 != 0x32c9a298L
from spacy.
Thanks, fixed the 0.7 data file --- the upload had failed. Try again.
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)
- Incorrect detection of sentence boundaries, if last sentence missing eos symbol for trf model
- Enable override of existing custom pipe HOT 1
- Check that filter_spans input is a Span HOT 3
- Tokenizer Incorrectly Splitting "M1M" HOT 1
- Version incompatibility between Spacy, Cuda, Pytorch and Python HOT 3
- Accessing private transformer models HOT 1
- Problems converting Doc object to/from json HOT 1
- The word transitions to the wrong prototype HOT 1
- Fuzzy Matching not working HOT 1
- Unable to finetune transformer based ner model after initial tuning
- Undesired whitespace normalization of Korean text
- Suggestion: Normalize or Translate the parsing labels for German and English dependency labelling
- Code example discrepancy for `Span.lemma_` in API docs HOT 1
- Signature docs error in API docs for `MorphAnalysis.__contains__` HOT 2
- Import broken python 3.9 HOT 1
- Luminous
- Converting into exe file through pyinstaller-> spacy cannot find factory for 'curated transformer' HOT 1
- Spacy problem with whitespace or punctuation HOT 1
- config.cfg error from spacy init config command
- Possible ORG misidentification 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 spacy.