#MarkupSafe

David Lord :python:davidism@mas.to
2024-04-24

slsa-github-generator v2 now uses upload/download-artifact v4, so I can update those in all the Pallets projects. Turns out the publish workflow for most projects didn't need any changes at all. Only MarkupSafe, with multiple build jobs, needed a little change to use different upload names and combine their downloads. github.com/pallets/markupsafe/ #Python #Flask #MarkupSafe #GitHub #SLSA

David Lord :python:davidism@mas.to
2024-04-23

MarkupSafe speedup saga continues: my coworker contributed a PR to implement them in Rust now. It uses some pretty clever speedups based on other serialization libraries they surveyed. If anyone is comfortable with Rust, we would appreciate reviews and feedback: github.com/pallets/markupsafe/ #Python #RustLang #PyO3 #Flask #MarkupSafe

David Lord :python:davidism@mas.to
2024-04-19

Update on my "remove MarkupSafe's C speedups" post: @tonybaloney swooped in and found a simple change that make the speedups ~40% faster in the cases where they had become slower. Turns out, if plain strings are the most probable thing you'll be escaping, you should check for that first, not last. So the speedups remain in place. github.com/pallets/markupsafe/ #Python #MarkupSafe #Flask

David Lord :python:davidism@mas.to
2024-04-17

Python has seen significant performance improvements in the last few releases. MarkupSafe has a C extension to speed up operations, but it's now *slower* in many cases than the plain Python implementation. Having a C extension increases the difficulty of maintenance, builds, releases, and installs. I'm wondering if it's time to drop the speedups. github.com/pallets/markupsafe/ #Python #MarkupSafe #Flask

Stefans Weblogstrobelstefan
2023-11-14

Ansible - ERROR No module named 'markupsafe'

Seit ein paar Tagen bekomme ich beim Ausführen von Ansible auf meinem MacBook den Fehler ERROR No module named markupsafe. Das Starten von Playbooks ist nicht mehr möglich und die Administration meiner Server kann nicht mehr automatisiert erfolgen.

strobelstefan.de/blog/2023/11/

Sebastian Abshoffsebastian@abshoff.social
2023-11-11

Got this error with Ansible on my Mac:
ERROR: No module named 'markupsafe'

Found this: ansiblepilot.medium.com/ansibl

Solved it by (re)installing python-markupsafe: ansible; brew uninstall ansible python-markupsafe; brew install ansible python-markupsafe; ansible

#ansible #homebrew #markupsafe

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst