Skip to content
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

Error installing / loading english model #925

Closed
Ognnav opened this issue Mar 26, 2017 · 2 comments
Closed

Error installing / loading english model #925

Ognnav opened this issue Mar 26, 2017 · 2 comments
Labels
install Installation issues windows Issues related to Windows

Comments

@Ognnav
Copy link

Ognnav commented Mar 26, 2017

Using Conda install of Python 2.7 on Windows 64bit.

python -m spacy download en yields the following error:
File "C:\Anaconda2\lib\site-packages\pathlib.py", line 1167, in symlink_to
self._accessor.symlink(target, self, target_is_directory)
TypeError: symlink() takes exactly 3 arguments (4 given)

Screenshot:
capture

Found old thread that suggested to comment out the line in pathlib.py's symlink_to function. This allows the download to complete, but then the data folder is empty, resulting in error: No such file or directory: 'C:\Anaconda2\lib\site-packages\spacy\data\en\vocab\strings.json'
The data directory indeed does not contain the "en" subfolder.

@ines ines added windows Issues related to Windows install Installation issues labels Mar 26, 2017
@ines
Copy link
Member

ines commented Mar 26, 2017

I think this may indeed be related to the pathlib bug or more generally, symlink issues on Windows (see #909). This is already fixed on master – if Windows and Python 2 is detected, it now uses mklink.

This fix will be included in the next release, coming very soon. In the meantime, you can either use the spaCy version currently on master, copy-paste the model data directory into spacy/data, or set up the symlink manually. spacy.load('model_name') will look for a directory or symlink of that name in spacy/data.

@ines ines closed this as completed Mar 26, 2017
@lock
Copy link

lock bot commented May 9, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
install Installation issues windows Issues related to Windows
Projects
None yet
Development

No branches or pull requests

2 participants