Describe the bug
When building after updating all my pip packages, I get this error:
pkg_resources.ContextualVersionConflict: (parso 0.8.1 (/home/mghenis/anaconda3/lib/python3.7/site-packages), Requirement.parse('parso<0.8.0,>=0.7.0'), {'jedi'})
Here's the full output.
The book was building fine before updating packages.
To Reproduce
Steps to reproduce the behavior:
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -Ujb build in folderrepo: https://github.com/UBICenter/blog/
Environment
jupyter-book --version:Jupyter Book: 0.9.1
MyST-NB: 0.10.1
Sphinx Book Theme: 0.0.39
MyST-Parser: 0.13.0
Jupyter-Cache: 0.4.1
NbClient: 0.5.1
pip install "parso<0.8.0" fixed this
Heya, what version of pip are you using?
This may be fixed with new pip resolver: https://pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html?m=1
I think I was already on the latest:
(base) mghenis@penguin:~/UBICenter/blog$ python -m pip install --upgrade pip
Requirement already satisfied: pip in /home/mghenis/anaconda3/lib/python3.7/site-packages (20.3.3)
Ok cheers that's a shame, note you can also use pip check after updating your environment, which should highlight any version inconsistencies
Hmm, we should figure out what is the dep that鈥檚 pinning parso. Is it Jedi?
Hmm, we should figure out what is the dep that鈥檚 pinning parso. Is it Jedi?
Think so based on the error:
pkg_resources.ContextualVersionConflict: (parso 0.8.1 (/home/mghenis/anaconda3/lib/python3.7/site-packages), Requirement.parse('parso<0.8.0,>=0.7.0'), {'jedi'})
Per https://github.com/davidhalter/jedi/issues/1650, this was fixed in https://github.com/davidhalter/jedi/releases/tag/v0.18.0 released this morning. I just verified this by updating jedi and parso and running jb build successfully.
Ah perfect, thanks so much for following up @MaxGhenis