jinjasql icon indicating copy to clipboard operation
jinjasql copied to clipboard

Jinja2 v 3.1.0 breaks jinjasql

Open Andrew-Sheridan opened this issue 2 years ago • 16 comments

Jinja2 moved deprecated objects to Markupsafe. This is causing 'import jinjasql' to break.

If possible, could you please

  • update the dependencies
  • update the code to use the relocated objects
  • release the changes to PyPi

Thanks

Andrew-Sheridan avatar Mar 24 '22 16:03 Andrew-Sheridan

Same issue here, confirmed that Jinja2==3.0.3 in the pip install will keep it working, but the latest does break the import.

jameskelly77 avatar Mar 25 '22 12:03 jameskelly77

To fix this error in another workflow, I also had to pin markupsafe==2.0.1

afgaron avatar Mar 25 '22 23:03 afgaron

Same issue here. Pinned to Jinja2==3.0.3 for a temporary fix.

jordantshaw avatar Mar 28 '22 21:03 jordantshaw

Looks like the Jinja2 requirement was pinned to <3.0 a couple months back on master https://github.com/sripathikrishnan/jinjasql/blob/d1e0d0fcc4564f621c1c6ba8bf3c6d2949425ea0/setup.py#L41-L43

But there hasn't been a release to get that into PyPI yet

Pinning seems like the solution for now

jpy-git avatar Mar 30 '22 14:03 jpy-git

Also seeing the same issue.

ryandavis3 avatar Apr 04 '22 20:04 ryandavis3

+1

adamarla avatar Apr 05 '22 17:04 adamarla

Same here. @sripathikrishnan any chance you would be able to create a new release on PyPi? 🙏

conor-james-sheehan avatar Apr 13 '22 10:04 conor-james-sheehan

👍 would like a new release as well, or at least a tag! Thank you!!

rs-sathya avatar May 03 '22 07:05 rs-sathya

+1 👍 new release please!!

ccompeau avatar May 05 '22 17:05 ccompeau

Same here..

femi-anthony avatar May 10 '22 09:05 femi-anthony

Are there any plans on releasing a fix for this?

r-nyq avatar Jul 21 '22 20:07 r-nyq

Is this project abandoned?

elpablete avatar Aug 15 '22 19:08 elpablete

looks like it @elpablete

PandaWhoCodes avatar Nov 09 '22 13:11 PandaWhoCodes

We are maintaining a forked version of jinjasql here - https://github.com/pythonutilities/jinjasql

Check this out, we have upgraded the code and its dependencies and so that it can work with the updated Jinja 3.x

SridharCR avatar Jul 03 '23 17:07 SridharCR

We are maintaining a forked version of jinjasql here - https://github.com/pythonutilities/jinjasql

Check this out, we have upgraded the code and its dependencies and so that it can work with the updated Jinja 3.x

are you going to publish it on pypi? name change?

elpablete avatar Jul 28 '23 22:07 elpablete

@elpablete We have published the above said forked version of jinjasql in PyPi, check it out!

pip install jinjasql2

SridharCR avatar Jul 30 '23 17:07 SridharCR