Skip to content

[email protected] requires markupsafe without providing or documenting it #218

Open
@delan

Description

@delan

[email protected] upgrades mako from 1.1.2 to 1.3.10, which made markupsafe mandatory. Unless the user provides a Python with markupsafe installed, stylo will not build.

Ubuntu images with cloud-init, like our ubuntu2204 image (and probably GitHub’s Ubuntu image), ship with markupsafe. Other platforms, including the macos13 and windows10 images used in Servo, don’t tend to ship with markupsafe, so this also breaks libservo builds without mach (servo/servo#37939).

$ cargo +1.85.0 new foo
$ cd foo
$ cargo +1.85.0 add [email protected]
$ cargo +1.85.0 build
   Compiling stylo v0.5.0
error: failed to run custom build command for `stylo v0.5.0`
[...]
  Traceback (most recent call last):
    File "/home/delan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/stylo-0.5.0/properties/build.py", line 14, in <module>
      from mako import exceptions
    File "/home/delan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/stylo-0.5.0/properties/mako-1.3.10-py3-none-any.whl/mako/exceptions.py", line 292, in <module>
    File "/home/delan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/stylo-0.5.0/properties/mako-1.3.10-py3-none-any.whl/mako/exceptions.py", line 289, in _install_highlighting
    File "/home/delan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/stylo-0.5.0/properties/mako-1.3.10-py3-none-any.whl/mako/exceptions.py", line 277, in _install_fallback
    File "/home/delan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/stylo-0.5.0/properties/mako-1.3.10-py3-none-any.whl/mako/filters.py", line 14, in <module>
  ModuleNotFoundError: No module named 'markupsafe'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions