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.

markupsafe 1.0 throws an error

See original GitHub issue

Expected behaviour:

pip install flexget should install flexget.

Actual behaviour:

14:59:49 Downloading MarkupSafe-1.0.tar.gz (14 kB) 14:59:49  ERROR: Command errored out with exit status 1: 14:59:49 command: /opt/flexget/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-ewpbt6pd/markupsafe/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-ewpbt6pd/markupsafe/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ egg_info --egg-base /tmp/pip-install-ewpbt6pd/markupsafe/pip-egg-info 14:59:49 cwd: /tmp/pip-install-ewpbt6pd/markupsafe/ 14:59:49 Complete output (5 lines): 14:59:49 Traceback (most recent call last): 14:59:49 File “<string>”, line 1, in <module> 14:59:49 File “/tmp/pip-install-ewpbt6pd/markupsafe/setup.py”, line 6, in <module> 14:59:49 from setuptools import setup, Extension, Feature 14:59:49 ImportError: cannot import name ‘Feature’ 14:59:49 ----------------------------------------

(followed by install failure)

Steps to reproduce:

pip install flexget

Additional information:

A quick search shows this relevant issue : https://github.com/pallets/markupsafe/issues/57, as such it may be as simple as incrementing the version in use.

Issue Analytics

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

github_iconTop GitHub Comments

9reactions
mgilardicommented, Mar 15, 2020

Updating MarkupSafe to v1.1.1 didn’t work for me, but downgrading Setuptools did.

pip install setuptools==45.2.0

Setuptools 45.2.0 worked well for me. It was released in January I believe, so not going back too far.

0reactions
paranoidicommented, Mar 15, 2020

I tested with clean py3.7 venv and it failed. If users experience crash on install without upgrading setuptools something is horribly wrong.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error no matching distribution found for MarkupSafe==1.0
Try making the MarkupSafe requirement from 1.0 to 1.1.1. Like this: MarkupSafe==1.1.1. Why is this happening?
Read more >
[Fixed] ModuleNotFoundError: No module named 'markupsafe'
Quick Fix: Python raises the ImportError: No module named 'markupsafe' when it cannot find the library markupsafe . The most frequent source of...
Read more >
python setup.py egg_info did not run successfully psycopg2
Command "python setup.py egg_info" failed with error code 1 in PATH/psycopg2 ... It throws an error and didn't resolved, Even after lot of...
Read more >
Why do I keep getting an error when trying to use different ...
I am trying to run sentiment analysis with flair through an Apache Spark session using a Spark Pool in Azure Synapse Analytics. I...
Read more >
Changes — Werkzeug Documentation (2.2.x)
The debugger shows enhanced error locations in tracebacks in Python 3.11. ... Using gevent or eventlet requires greenlet>=1.0 or PyPy>=7.3.7.
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