mirror of https://github.com/explosion/spaCy.git
Update link error message with info on permissions
This commit is contained in:
parent
a3ddbc0444
commit
8191e33cf1
|
@ -49,9 +49,12 @@ def symlink(model_path, link_name, force):
|
||||||
# This is quite dirty, but just making sure other errors are caught so
|
# This is quite dirty, but just making sure other errors are caught so
|
||||||
# users at least see a proper message.
|
# users at least see a proper message.
|
||||||
util.sys_exit(
|
util.sys_exit(
|
||||||
"Creating a symlink in spacy/data failed. You can still import "
|
"Creating a symlink in spacy/data failed. Make sure you have the "
|
||||||
"the model as a Python package and call its load() method, or "
|
"required permissions and try re-running the command as admin, or "
|
||||||
"create the symlink manually:",
|
"use a virtualenv to install spaCy in a user directory, instead of "
|
||||||
|
"doing a system installation.",
|
||||||
|
"You can still import the model as a Python package and call its "
|
||||||
|
"load() method, or create the symlink manually:",
|
||||||
"{a} --> {b}".format(a=unicode_(model_path), b=unicode_(link_path)),
|
"{a} --> {b}".format(a=unicode_(model_path), b=unicode_(link_path)),
|
||||||
title="Error: Couldn't link model to '{l}'".format(l=link_name))
|
title="Error: Couldn't link model to '{l}'".format(l=link_name))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue