Permission Error when calling English()
See original GitHub issueI’ve recently been having this problem whenever I try to use spaCy. It was working fine previously, so I’m not sure if the change has to do with versions or if I’ve changed something in my permissions. Is this an issue on spaCy’s end or on my end?
>>> from spacy.en import English
>>> parser = English()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/site-packages/spacy/language.py", line 225, in __init__
package = util.get_package_by_name()
File "/usr/local/lib/python3.4/site-packages/spacy/util.py", line 26, in get_package_by_name
name or about.__default_model__, data_path=via)
File "/usr/local/lib/python3.4/site-packages/sputnik/__init__.py", line 159, in package
pool = Pool(app_name, app_version, expand_path(data_path))
File "/usr/local/lib/python3.4/site-packages/sputnik/pool.py", line 19, in __init__
super(Pool, self).__init__(app_name, app_version, path, **kwargs)
File "/usr/local/lib/python3.4/site-packages/sputnik/package_list.py", line 33, in __init__
self.load()
File "/usr/local/lib/python3.4/site-packages/sputnik/package_list.py", line 51, in load
for package in self.packages():
File "/usr/local/lib/python3.4/site-packages/sputnik/package_list.py", line 37, in packages
os.makedirs(self.path)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/os.py", line 237, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/site-packages/spacy/data'
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
Change app permissions on your Android phone
If you allowed or denied any permissions for the app, you'll find them here. To change a permission setting, tap it, then choose...
Read more >PermissionError: [Errno 13] in Python - Stack Overflow
When doing; a_file = open('E:\Python Win7-64-AMD 3.3\Test', encoding='utf-8') ...you're trying to open a directory as a file, which may (and on most non ......
Read more >Android Permission Error #1468 - beeware/toga - GitHub
I import os, use a call to os.getcwd() and it has a return (but I suspect it is just showing me the root...
Read more >Moodle in English: Permission related warning and error
Hai. Im trying to copy the course ,delete a course ,duplicate an activity. but while doing above tasks im getting the following warning...
Read more >Troubleshoot IAM policy access denied or unauthorized ...
This error message indicates that you don't have permission to call the DescribeInstances API. To resolve this error, follow these steps:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi. I am getting similar error. May I know how did you solve it?
C:\WINDOWS\system32>python -m spacy.en.download archive.gz checksum/md5 OK Traceback (most recent call last): File “C:\Python34\lib\runpy.py”, line 170, in run_module_as_main “main”, mod_spec) File “C:\Python34\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File “C:\Users\PratimaK\AppData\Roaming\Python\Python34\site-packages\spacy\en\download.py”, line 13, in <module> plac.call(main) File “C:\Users\PratimaK\AppData\Roaming\Python\Python34\site-packages\plac_core.py”, line 324, in call cmd, result = parser_from(obj).consume(arglist) File “C:\Users\PratimaK\AppData\Roaming\Python\Python34\site-packages\plac_core.py”, line 207, in consume return cmd, self.func((args + varargs + extraopts), *kwargs) File “C:\Users\PratimaK\AppData\Roaming\Python\Python34\site-packages\spacy\en\download.py”, line 9, in main download(‘en’, force) File “C:\Users\PratimaK\AppData\Roaming\Python\Python34\site-packages\spacy\download.py”, line 24, in download package = sputnik.install(about.title, about.version, about.models[lang]) File "C:\Python34\lib\site-packages\sputnik__init.py", line 46, in install path = pool.install(archive) File “C:\Python34\lib\site-packages\sputnik\pool.py”, line 47, in install os.rename(path + ‘.tmp’, path) PermissionError: [WinError 5] Access is denied: ‘C:\Users\PratimaK\AppData\Roaming\Python\Python34\site-packages\spacy\data\en-1.1.0.tmp’ -> ‘C:\Users\PratimaK\AppData\Roaming\Python\Python34\site-packages\spacy\data\en-1.1.0’
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.