Opened 7 weeks ago

Last modified 6 weeks ago

#60474 assigned defect

py-spaCy @2.2.4: the `allow-hosts` option is not supported when using pip to install requirements

Reported by: zap150 (Jan Zapletal) Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: jmroot (Joshua Root), museum-future (Skynet)
Port: py-spaCy


Installation of py38-spaCy fails, because py38-spaCy-2.2.4_0.darwin_19.x86_64.tbz2 is not available from (and other servers). The latest one available is py38-spaCy-2.2.3_0.darwin_19.x86_64.tbz2. This affects other spaCy ports as well.

Change History (5)

comment:1 Changed 7 weeks ago by ryandesign (Ryan Schmidt)

Cc: jmroot added
Keywords: py38-spaCy 2.2.4 removed
Milestone: MacPorts 2.6.3
Owner: set to cjones051073
Port: py-spaCy added; py38-spaCy removed
Status: newassigned
Summary: Missing py38-spaCy-2.2.4_0.darwin_19.x86_64.tbz2py-spaCy @2.2.4: the `allow-hosts` option is not supported when using pip to install requirements

Prebuilt archives are not available for py-spaCy 2.2.4 because we are unable to build it. The error from our build server log is:

Traceback (most recent call last):
  File "", line 200, in <module>
  File "", line 190, in setup_package
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/", line 143, in setup
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/", line 138, in _install_setup_requires
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/", line 695, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/", line 781, in resolve
    dist = best[req.key] = env.best_match(
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/", line 1066, in best_match
    return self.obtain(req, installer)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/", line 1078, in obtain
    return installer(requirement)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/", line 754, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/", line 83, in fetch_build_egg
    raise DistutilsError('the `allow-hosts` option is not supported '
distutils.errors.DistutilsError: the `allow-hosts` option is not supported when using pip to install requirements.

It looks like this may be because of a change in py-setuptools. Josh already commented on that bug report back in December 2019 about how it broke this feature in MacPorts. Josh, what should we be doing to fix this port? Surely this problem doesn't prevent all correctly-configured python modules from building or it would be a much bigger problem for MacPorts. Is this new error message just the new way that we'll be told that a dependency is missing?

comment:2 Changed 7 weeks ago by jmroot (Joshua Root)

Yes, I would certainly still consider it a bug that setuptools raises an error in this situation when allow-hosts is only set in the account-wide config file. And yes, the real problem that it should be reporting is that the requirements aren't satisfied. Looks like it wants older versions of catalogue and srsly.

comment:3 Changed 7 weeks ago by cjones051073 (Chris Jones)

ah thanks. I had seen this error and your comment in the upstream issue, but hadn't connected the dots to realise what it was telling me w.r.t. the port deps..

comment:4 Changed 7 weeks ago by ryandesign (Ryan Schmidt)

Cc: museum-future added

Has duplicate #60483.

comment:5 Changed 6 weeks ago by museum-future (Skynet)

still broken in spacy 3.0.0.dev9

Note: See TracTickets for help on using tickets.