Skip to content
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

readthedocs build failing #5367

Closed
ltalirz opened this issue Feb 18, 2022 · 15 comments · Fixed by #5371
Closed

readthedocs build failing #5367

ltalirz opened this issue Feb 18, 2022 · 15 comments · Fixed by #5371

Comments

@ltalirz
Copy link
Member

ltalirz commented Feb 18, 2022

See https://readthedocs.org/projects/aiida-core/builds/16126865/

ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/docs/checkouts/readthedocs.org/user_builds/aiida-core/envs/stable/lib/python3.8/site-packages/markupsafe/init.py)

tagging @chrisjsewell @sphuber

@sphuber
Copy link
Contributor

sphuber commented Feb 18, 2022

The culprit is markupsafe==2.1.0 that was release 6 hours ago.

@sphuber
Copy link
Contributor

sphuber commented Feb 18, 2022

Issue on jinja2 for fixing it is here: pallets/jinja#1587

@sphuber
Copy link
Contributor

sphuber commented Feb 18, 2022

Funnily enough, both are pallets packages, so they are breaking their own packages 😅

@aditya-kar
Copy link

I've opened PR #1589 for Jinja 2.x. This should fix pallets/jinja#1587

@davidism
Copy link

You are using an unsupported version of Jinja, please update to the latest version if possible. Additionally, please read https://hynek.me/articles/semver-will-not-save-you/, then use a tool like pip-tools to pin your dependencies and control when you get updates. Be sure to run your tests with deprecation warnings treated as errors so that you get notified of these types of changes early.

@chrisjsewell
Copy link
Member

chrisjsewell commented Feb 18, 2022

Additionally, please read hynek.me/articles/semver-will-not-save-you

Thanks, but I'm well aware of these blog posts, so let's not get into the whole upper pinning discussion here 😅

You've provided me an interesting example for the discussion I am involved in though: executablebooks/meta#648 (comment)

@CasperWA
Copy link
Contributor

CasperWA commented Mar 3, 2022

Will this be implemented as part of a patch update to the latest public release of AiiDA in the near future?

@sphuber
Copy link
Contributor

sphuber commented Mar 4, 2022

We are close to releasing 2.0.0b1 early next week. This should include this fix.

@CasperWA
Copy link
Contributor

CasperWA commented Mar 4, 2022

We are close to releasing 2.0.0b1 early next week. This should include this fix.

But no backport/hotfix for v1.x?

@sphuber
Copy link
Contributor

sphuber commented Mar 4, 2022

No probably will do that as well. The support branch already has another cherry-picked fix that would merit a release

@CasperWA
Copy link
Contributor

CasperWA commented Mar 7, 2022

Much appreciated. I'm seeing this error when simply installing AiiDA on a fresh environment and trying to import a DB... So I'd consider it critical :)

@sphuber
Copy link
Contributor

sphuber commented Mar 7, 2022

There you go: https://pypi.org/project/aiida-core/1.6.6/

@CasperWA
Copy link
Contributor

CasperWA commented Mar 7, 2022

It seems this did not fix the issue at hand. Since the markupsafe restriction is in the docs extra it isn't respected when installing AiiDA straight up.
When installing AiiDA straight up, markupsafe is still a (sub)dependency, and then verdi import fails. I.e., AiiDA v1.6.6 can be considered broken.

@sphuber
Copy link
Contributor

sphuber commented Mar 7, 2022

Round number two: https://pypi.org/project/aiida-core/1.6.7/ 🙏

@CasperWA
Copy link
Contributor

CasperWA commented Mar 7, 2022

Halleluja! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants