-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'Markup' from 'jinja2' #27
Comments
Same issue here. Woulb be nice to push tags to docker instead of overwriting latest so we can rollback in case of issue like this one :) The issue is generated by flask_jsglue, issue is reported here: stewartpark/Flask-JSGlue#33 and fix submitted here https://github.com/stewartpark/Flask-JSGlue/pull/32/files |
I don't know for sure the solution. When I searched on Stackoverflow, I came across this and tried it and it worked. Before
After
|
Yes @alii76tt that seems to be the solution, but it needs to be fixed in the library. See my post above. |
Yes, definitely @Gabisonfire . |
Well, I guess I'll just make a fork or something, and fix it. |
@JVT038 Uploaded the fix: pip install Flask-JSGlue2==0.3.2 |
It should be fixed in 43eb3b5 |
@JVT038 I just removed my container and image and ran docker-compse up and am seeing the similiar issues with a new image pull.
|
Yeah, I noticed that the fork from italomaia hadn't updated the code yet, so I'll have to do that manually. |
I just noticed, I'm repushing it @JVT038, just bump to 0.3.3 |
Now it throws:
|
Make a backup of your sqlite database before doing this (in case it doesn't work) |
It worked for me this morning after updating the image. Knock on wood no issues thus far. |
ETA: I realised I could just copy the js_bridge.js file from the Flask-JSGlue repo into my app/templates/jsglue folder. Seems to be working now!
I installed this update which fixed the initial Markup issue (thank you!) but now I'm getting this error:
I can see js_bridge is referenced in flask_jsglue.py so I'm assuming that's what is triggering the error (in case you can't tell, I'm rather a programming amateur!). I'd appreciate any advice on how I can fix this. |
Container fails to start. Removed the database, container, and image to start from fresh and get the same results. Any ideas?
The text was updated successfully, but these errors were encountered: