Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markupsafe breaks with latest version of setuptools #116

Closed
SgtCoDFish opened this issue Mar 9, 2020 · 4 comments
Closed

Markupsafe breaks with latest version of setuptools #116

SgtCoDFish opened this issue Mar 9, 2020 · 4 comments

Comments

@SgtCoDFish
Copy link

The latest version of setuptools - https://pypi.org/project/setuptools/46.0.0/ released on 2020-03-08 - removed Feature which apparently was a long-deprecated class. There's an issue raised on the repo for setuptools: pypa/setuptools#2017

The following is the output from trying to install markupsafe with the latest version of setuptools.

Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/.../markupsafe/setup.py", line 6, in <module>
        from setuptools import setup, Extension, Feature
    ImportError: cannot import name 'Feature'

For now, we can work around this by pinning setuptools to the last working version 45.3.0 but I suspect that in the long term markupsafe might need to be updated to remove the use of Feature.

This might be something like #23 coming back.

@davidism
Copy link
Member

davidism commented Mar 9, 2020

This had been fixed since 0.19, but for some reason a revert to that fix made it into 1.0 (d2001bb), then was removed again in 1.1.

Unless you really need 1.0 for some reason, I'd advise just upgrading to 1.1.1, there shouldn't be any compatibility issues.

@SgtCoDFish
Copy link
Author

Unless you really need 1.0 for some reason, I'd advise just upgrading to 1.1.1, there shouldn't be any compatibility issues.

After a bit of an adventure, I got everything upgraded and can confirm that 1.1.1 cures the problem. Thanks very much!

@advance512
Copy link

Confirm - this happened to me, changing version installed fixed it.

jkkummerfeld pushed a commit to jkkummerfeld/coref that referenced this issue Mar 23, 2020
Version 1.0 of MarkupSafe fails to build with the latest version of setuptools (see pallets/markupsafe#116). Shifting to 1.1.1 doesn't seem to break the code and resolves this build issue.
chriddyp added a commit to plotly/dash-docs that referenced this issue Mar 26, 2020
rstijerina added a commit to DesignSafe-CI/portal that referenced this issue Apr 10, 2020
Shique added a commit to Shique/scrapy-cluster that referenced this issue May 18, 2020
MarkupSafe tries to import setuptools.Feature which results in an error as it's deprecated.
Details:
pallets/markupsafe#116
pypa/setuptools#2017
Shique added a commit to Shique/scrapy-cluster that referenced this issue May 18, 2020
MarkupSafe tries to import setuptools.Feature which results in an error as it's deprecated.
Details:
pallets/markupsafe#116
pypa/setuptools#2017
aaron-ikb added a commit to aaron-ikb/microservices-demo-1 that referenced this issue May 25, 2020
tchaikov added a commit to tchaikov/ceph that referenced this issue May 28, 2020
tchaikov added a commit to tchaikov/ceph that referenced this issue May 29, 2020
also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>

Signed-off-by: Kefu Chai <kchai@redhat.com>
tchaikov added a commit to tchaikov/ceph that referenced this issue May 29, 2020
also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>

Signed-off-by: Kefu Chai <kchai@redhat.com>
tchaikov added a commit to tchaikov/ceph that referenced this issue May 29, 2020
also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
tchaikov added a commit to tchaikov/ceph that referenced this issue May 29, 2020
also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
tchaikov added a commit to tchaikov/ceph that referenced this issue May 29, 2020
also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
tchaikov added a commit to tchaikov/ceph that referenced this issue May 31, 2020
in case we need to use ubuntu xenial for testing, xenial only had python
3.5 packaged. and tempest 23.0 was the last version which supports
python3.5 and python2.7.

also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
tchaikov added a commit to tchaikov/ceph that referenced this issue Jun 2, 2020
in case we need to use ubuntu xenial for testing, xenial only had python
3.5 packaged. and tempest 23.0 was the last version which supports
python3.5 and python2.7.

also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
ideepika pushed a commit to ceph/ceph-ci that referenced this issue Jun 4, 2020
in case we need to use ubuntu xenial for testing, xenial only had python
3.5 packaged. and tempest 23.0 was the last version which supports
python3.5 and python2.7.

also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
tchaikov added a commit to tchaikov/ceph that referenced this issue Jun 12, 2020
in case we need to use ubuntu xenial for testing, xenial only had python
3.5 packaged. and tempest 23.0 was the last version which supports
python3.5 and python2.7.

also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8cb3f04)
tchaikov added a commit to tchaikov/ceph that referenced this issue Jun 12, 2020
in case we need to use ubuntu xenial for testing, xenial only had python
3.5 packaged. and tempest 23.0 was the last version which supports
python3.5 and python2.7.

also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8cb3f04)
kshtsk pushed a commit to kshtsk/ceph that referenced this issue Jun 12, 2020
in case we need to use ubuntu xenial for testing, xenial only had python
3.5 packaged. and tempest 23.0 was the last version which supports
python3.5 and python2.7.

also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8cb3f04)
tchaikov added a commit to tchaikov/ceph that referenced this issue Jun 12, 2020
in case we need to use ubuntu xenial for testing, xenial only had python
3.5 packaged. and tempest 23.0 was the last version which supports
python3.5 and python2.7.

also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8cb3f04)
tchaikov added a commit to tchaikov/ceph that referenced this issue Jun 14, 2020
in case we need to use ubuntu xenial for testing, xenial only had python
3.5 packaged. and tempest 23.0 was the last version which supports
python3.5 and python2.7.

also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8cb3f04)
airshipbot pushed a commit to airshipit/drydock that referenced this issue Jul 24, 2020
During drydock node deployments, sometimes MaaS node deployment for
some nodes fails when the node tries to pull the node bootaction
files, using drydock api.
Drydock api call fails with `500 Internal Server Error`, when
drydock tries to create the booaction files for the node. The logs,
however do no provide any additional clues on what caused drydock to
fail. This issue does not happen always, and subsequent site updates
will most of the deploy the failed nodes.

The additional checks and logs are added to help pinpoint the root cause
of the 500 return code, if/when this issue heppens again.

This ps also, uplifted `MarkupSafe` pip library from 1.0 to 1.1.1 to
address the issue with MarkupSafe and latest version of setuptools
described here: pallets/markupsafe#116

Change-Id: I08a088d9690d8d9dd1f771dc5e84d1eb02fbd39f
sabbir-006 pushed a commit to sabbir-006/scrapy-cluster that referenced this issue Jul 26, 2020
MarkupSafe tries to import setuptools.Feature which results in an error as it's deprecated.
Details:
pallets/markupsafe#116
pypa/setuptools#2017
pacroy added a commit to pacroy/python-sample-vscode-flask-tutorial that referenced this issue Aug 31, 2020
pacroy added a commit to pacroy/python-docs-hello-world that referenced this issue Aug 31, 2020
ideepika pushed a commit to ceph/ceph-ci that referenced this issue Sep 3, 2020
in case we need to use ubuntu xenial for testing, xenial only had python
3.5 packaged. and tempest 23.0 was the last version which supports
python3.5 and python2.7.

also do not replace link in tox.ini, as it is reachable.

to address the issues of

- pallets/markupsafe#116
- pypa/setuptools#2017

MarkupSafe is installed by
https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
knightjoel added a commit to knightjoel/zpark that referenced this issue Nov 24, 2020
@jmilagroso
Copy link

This had been fixed since 0.19, but for some reason a revert to that fix made it into 1.0 (d2001bb), then was removed again in 1.1.

Unless you really need 1.0 for some reason, I'd advise just upgrading to 1.1.1, there shouldn't be any compatibility issues.

Thanks @davidism

smoke-b added a commit to smoke-b/pymystem3 that referenced this issue Dec 7, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants