collective / collective.volto.blocksfield

Custom z3cform field to replace RichText into blocks
GNU General Public License v2.0
1 stars 0 forks source link

pip._internal.index.package_finder: Link requires a different Python (3.7.3 not in: '==2.7, >=3.6') #1

Open yurj opened 3 years ago

yurj commented 3 years ago

Hi!

I've a problem installing this addon:


Getting required 'collective.volto.blocksfield'
  required by design.plone.contenttypes 3.0.1.
We have no distributions for collective.volto.blocksfield that satisfies 'collective.volto.blocksfield'.
pip._internal.index.package_finder: Link requires a different Python (3.7.3 not in: '==2.7, >=3.6'): https://files.pythonhosted.org/packages/44/b9/226b2b0569389eec133b79fe4ce9c767941578b643eafd70369707324837/collective.volto.blocksfield-1.0.0.tar.gz#sha256=dd335b9ec394921f22d53cf8daf7ef460ab8e32e786272cce89dca05e0c97f54 (from https://pypi.org/simple/collective-volto-blocksfield/) (requires-python:==2.7, >=3.6)

3.7.3 should be >= of 3.6.

yurj commented 3 years ago

I'm using pip install --verbose collective.volto.blocksfield==1.0.1 to be more verbose but the same happen with buildout:

Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/collective-volto-blocksfield/ HTTP/1.1" 304 0
  Link requires a different Python (3.7.3 not in: '==2.7, >=3.6'): https://files.pythonhosted.org/packages/44/b9/226b2b0569389eec133b79fe4ce9c767941578b643eafd70369707324837/collective.volto.blocksfield-1.0.0.tar.gz#sha256=dd335b9ec394921f22d53cf8daf7ef460ab8e32e786272cce89dca05e0c97f54 (from https://pypi.org/simple/collective-volto-blocksfield/) (requires-python:==2.7, >=3.6)
  Link requires a different Python (3.7.3 not in: '==2.7, >=3.6'): https://files.pythonhosted.org/packages/c2/70/0168893620c45a0b6dd18b0a23f10ea20b6dce397889c32fb5ce506dc6a9/collective.volto.blocksfield-1.0.1.tar.gz#sha256=acafa127fa1fb63348fc8cd76f9c52c2a7e3b761afe2e4b032722c145513e40f (from https://pypi.org/simple/collective-volto-blocksfield/) (requires-python:==2.7, >=3.6)
Given no hashes to check 0 links for project 'collective-volto-blocksfield': discarding no candidates
ERROR: Could not find a version that satisfies the requirement collective.volto.blocksfield==1.0.1
ERROR: No matching distribution found for collective.volto.blocksfield==1.0.1
yurj commented 3 years ago

Maybe I've found the problem:

https://github.com/pypa/setuptools/issues/1228

"That requires-python requires the Python to be both equal to 2.7.x and equal to 3.6.x"

Maybe you should change:

python_requires="==2.7, >=3.6"

to

python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*' ?

I think you can remove this constrains on python version.