Fail to install plone.importexport in Plone 5.1.2

Hello!

I'm trying to install plone.importexport for Plone 5.1.2 but when I perform .bin/buildout it fails. The error is as follows:

Getting required 'PyJWT'
  required by plone.restapi 3.2.2.
We have no distributions for PyJWT that satisfies 'PyJWT'.
Getting distribution for 'PyJWT'.
Fetching PyJWT 1.6.4 from: https://files.pythonhosted.org/packages/93/d1/3378cc8184a6524dc92993090ee8b4c03847c567e298305d6cf86987e005/PyJWT-1.6.4-py2.py3-none-any.whl#sha256=30b1380ff43b55441283cc2b2676b755cca45693ae3097325dea01f3d110628c
Got PyJWT 1.6.4.
Picked: PyJWT = 1.6.4
Version and requirements information containing plone.schema:
  [versions] constraint on plone.schema: 1.0.0
  Requirement of plone.restapi: plone.schema>=1.2.0
  Requirement of plone.app.dexterity: plone.schemaeditor>1.3.3
  Requirement of Products.CMFPlone: plone.schema
While:
  Installing instance.
Error: The requirement ('plone.schema>=1.2.0') is not allowed by your [versions] constraint (1.0.0)

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

You have a version pinning in your buildout somewhere (probably http://dist.plone.org/release/5.1-latest/versions.cfg in your extends section) but plone.restapi 3.2.2 asks for a newer version of plone.schema. This is not a plone.importexport problem but a dependency conflict between Plone's 5.1 pinning and plone.restapi itself.

Try to add a [versions] section to your buildout.cfg, if not yet available, and add plone.schema = 1.2.0 to override the extends pinning.

1 Like

Thanks @idgserpro!! Works fine.

1 Like

@idgserpro Thanks!!! Also works fine for me.