question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection refused downloading English models spaCy 1.6

See original GitHub issue

Description

I’m getting an exception urllib2.URLError “Connection refused” when trying to download the English models using spacy==1.6.0

In a clean virtualenv I’ve only installed spacy==1.6.0 and immediately after I’ve run:

python -m spacy.en.download all

This command raises an exception with the following stack trace:

➜  ~ python -m spacy.en.download all
Downloading parsing model
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "[...]/lib/python2.7/site-packages/spacy/en/download.py", line 25, in <module>
    plac.call(main)
  File "[...]/local/lib/python2.7/site-packages/plac_core.py", line 328, in call
    cmd, result = parser.consume(arglist)
  File "[...]/local/lib/python2.7/site-packages/plac_core.py", line 207, in consume
    return cmd, self.func(*(args + varargs + extraopts), **kwargs)
  File "[...]/lib/python2.7/site-packages/spacy/en/download.py", line 18, in main
    download('en', force=False, data_path=data_path)
  File "[...]/local/lib/python2.7/site-packages/spacy/download.py", line 36, in download
    about.__models__.get(lang, lang), data_path)
  File "[...]/local/lib/python2.7/site-packages/sputnik/__init__.py", line 37, in install
    index.update()
  File "[...]/local/lib/python2.7/site-packages/sputnik/index.py", line 84, in update
    index = json.load(session.open(request, 'utf8'))
  File "[...]/local/lib/python2.7/site-packages/sputnik/session.py", line 43, in open
    r = self.opener.open(request)
  File "/usr/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
  File "/usr/lib/python2.7/urllib2.py", line 1197, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>

It looks like the server to download the models for this old version of spaCy is down.

My Environment

  • Operating System: Debian 8 64 bits
  • Python Version Used: Python 2.7.9
  • spaCy Version Used: 1.6.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
lexoterocommented, Jun 19, 2018

@ines It seems that is down again. I cannot get the models for the last two days.

0reactions
lock[bot]commented, Aug 11, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python -m spacy.en.download connection refused URLError
I'm getting the following error when I try to download the English package for an old version of spacy with the command "python...
Read more >
Install spaCy · spaCy Usage Documentation
Download pipelines. After installation you typically want to download a trained pipeline. For more info and available packages, see the models directory.
Read more >
Knowledge Graph & NLP Tutorial-(BERT,spaCy,NLTK) - Kaggle
For example, semantic analyzer would reject a sentence like “Hot ice-cream”. ... it can be download and used for free — we can...
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. ... connect-proxy, prank, r-clue ... oclint, py-spacy-models-en-core-web-sm, xsetroot.
Read more >
How to Setup Your Python Environment for Machine Learning ...
Install Deep Learning Libraries. 1. Download Anaconda. In this step, we will download the Anaconda Python package for your platform. Anaconda is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found