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

Issue with Pygments's unirange #35

Open
aburousan opened this issue Jul 5, 2023 · 2 comments
Open

Issue with Pygments's unirange #35

aburousan opened this issue Jul 5, 2023 · 2 comments

Comments

@aburousan
Copy link

aburousan commented Jul 5, 2023

When compiling the book, I am getting this error:

ImportError: cannot import name 'unirange' from 'pygments.util' (/usr/local/lib/python3.10/dist-packages/Pygments-2.15.1-py3.10.egg/pygments/util.py)
make: [makefile:14: compile] Error 1 (ignored)

@tawheeler
Copy link
Collaborator

Hmm, not really sure how to assist you.
FWIW the latest textbook docker container simply installs via

RUN pip3 install pygments setuptools

so there isn't anything special going on there.

@cscherrer
Copy link

I just hit this too. There's a discussion here that's helpful:
#30

For me, this ended up fixing the problem:

The issue is not with pygments. That is installed correctly. The issue is that your python installation isn't using the current version of pygments-julia: https://github.com/sisl/pygments-julia

The reason I know this is that the error message is complaining about the use of unirange, which hasn't been a part of this package since Sep 15, 2020.

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

No branches or pull requests

3 participants