Jupyter-book: ContextualVersionConflict with parso version when building

Created on 25 Dec 2020  路  8Comments  路  Source: executablebooks/jupyter-book

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:

  1. Update all pip packages: pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
  2. jb build in folder

repo: https://github.com/UBICenter/blog/

Environment

  • Python Version [e.g. 3.7.1]: 3.7.9
  • Package versions or output of 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
  • Operating System: Ubuntu
bug

All 8 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matrs picture matrs  路  3Comments

rickwierenga picture rickwierenga  路  3Comments

spring-haru picture spring-haru  路  5Comments

akhmerov picture akhmerov  路  5Comments

mmcky picture mmcky  路  5Comments