Code Monkey home page Code Monkey logo

Comments (9)

jagill avatar jagill commented on April 27, 2024

I am having a very similar problem. OS X 10.9, Python 2.7.5, pip 1.5.5

from spacy.

geovedi avatar geovedi commented on April 27, 2024

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.

dkrasner avatar dkrasner commented on April 27, 2024

not yet; exporting the flags above didn't help

from spacy.

honnibal avatar honnibal commented on April 27, 2024

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.

muzaluisa avatar muzaluisa commented on April 27, 2024

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.

honnibal avatar honnibal commented on April 27, 2024

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.

dkrasner avatar dkrasner commented on April 27, 2024

@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.

honnibal avatar honnibal commented on April 27, 2024

Thanks, fixed the 0.7 data file --- the upload had failed. Try again.

from spacy.

lock avatar lock commented on April 27, 2024

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)

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.