adieyal / dynamicprompts

Templating language for generating prompts for text to image generators such as Stable Diffusion
MIT License
124 stars 20 forks source link

Update dependency to pin to major versions, not minor #121

Open ghostsquad opened 8 months ago

ghostsquad commented 8 months ago

I recently got a node install conflict that points to dynamicprompts having too specific of a dependency requirement:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
dynamicprompts 0.30.2 requires jinja2~=3.1, but you have jinja2 3.0.3 which is incompatible.

If you were to pin to >=3.1,<4 that would enable the use of non-breaking upgrades to Jinja from other packages.

akx commented 8 months ago

Mmm, ~=3.1 is actually equivalent to >=3.1,<4 as far as I know (the Compatible release clause).

Your error message is saying that you have an older version of Jinja2 installed than what we support.