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

Could not find style module 'algforopt' #34

Open
AshtonSBradley opened this issue Dec 12, 2022 · 1 comment
Open

Could not find style module 'algforopt' #34

AshtonSBradley opened this issue Dec 12, 2022 · 1 comment

Comments

@AshtonSBradley
Copy link

AshtonSBradley commented Dec 12, 2022

On a fresh clone in MacOS Ventura, with julia 1.8.0:

make test gives: ALL TESTS PASSED.

But make compile gives

This is PythonTeX 0.18
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/local/Cellar/texlive/20220321_3/libexec/lib/python3.10/site-packages/pygments/styles/__init__.py", line 82, in get_style_by_name
    mod = __import__('pygments.styles.' + mod, None, None, [cls])
ModuleNotFoundError: No module named 'pygments.styles.algforopt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/local/Cellar/texlive/20220321_3/share/texmf-dist/scripts/pythontex/pythontex3.py", line 2403, in do_pygments
    formatter[codetype] = LatexFormatter(**p)
  File "/usr/local/Cellar/texlive/20220321_3/libexec/lib/python3.10/site-packages/pygments/formatters/latex.py", line 257, in __init__
    Formatter.__init__(self, **options)
  File "/usr/local/Cellar/texlive/20220321_3/libexec/lib/python3.10/site-packages/pygments/formatter.py", line 66, in __init__
    self.style = _lookup_style(options.get('style', 'default'))
  File "/usr/local/Cellar/texlive/20220321_3/libexec/lib/python3.10/site-packages/pygments/formatter.py", line 21, in _lookup_style
    return get_style_by_name(style)
  File "/usr/local/Cellar/texlive/20220321_3/libexec/lib/python3.10/site-packages/pygments/styles/__init__.py", line 84, in get_style_by_name
    raise ClassNotFound("Could not find style module %r" % mod +
pygments.util.ClassNotFound: Could not find style module 'algforopt'.
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/Cellar/texlive/20220321_3/share/texmf-dist/scripts/pythontex/pythontex3.py", line 2882, in <module>
    main(python=sys.version_info.major)
  File "/usr/local/Cellar/texlive/20220321_3/share/texmf-dist/scripts/pythontex/pythontex3.py", line 2828, in main
    do_multiprocessing(data, temp_data, old_data, engine_dict)
  File "/usr/local/Cellar/texlive/20220321_3/share/texmf-dist/scripts/pythontex/pythontex3.py", line 1390, in do_multiprocessing
    result = task.get()
  File "/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 774, in get
    raise self._value
pygments.util.ClassNotFound: Could not find style module 'algforopt'.
make: [compile] Error 1 (ignored)
@mykelk
Copy link
Member

mykelk commented Dec 12, 2022

I think you need this: https://github.com/sisl/pygments-style-algforopt

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

2 participants