jetson-containers icon indicating copy to clipboard operation
jetson-containers copied to clipboard

l4t-ml:r35.2.1-py3 Jupyter's pigment version is incompatible

Open YasserAntonio opened this issue 1 year ago • 0 comments

When running l4t-ml:r35.2.1-py3 on Jetson Xavier AGX at each error output of jupterlab I get this message:

import coco

Unexpected exception formatting exception. Falling back to standard exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/IPython/core/interactiveshell.py", line 3442, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "/tmp/ipykernel_411/2783334779.py", line 1, in <module>
    coco
NameError: name 'coco' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/IPython/core/interactiveshell.py", line 2057, in showtraceback
    stb = self.InteractiveTB.structured_traceback(
  File "/usr/local/lib/python3.8/dist-packages/IPython/core/ultratb.py", line 1118, in structured_traceback
    return FormattedTB.structured_traceback(
  File "/usr/local/lib/python3.8/dist-packages/IPython/core/ultratb.py", line 1012, in structured_traceback
    return VerboseTB.structured_traceback(
  File "/usr/local/lib/python3.8/dist-packages/IPython/core/ultratb.py", line 865, in structured_traceback
    formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,
  File "/usr/local/lib/python3.8/dist-packages/IPython/core/ultratb.py", line 799, in format_exception_as_a_whole
    self.get_records(etb, number_of_lines_of_context, tb_offset) if etb else []
  File "/usr/local/lib/python3.8/dist-packages/IPython/core/ultratb.py", line 845, in get_records
    style = stack_data.style_with_executing_node(style, self._tb_highlight)
  File "/usr/local/lib/python3.8/dist-packages/stack_data/core.py", line 455, in style_with_executing_node
    class NewStyle(style):
  File "/usr/lib/python3/dist-packages/pygments/style.py", line 91, in __new__
    ndef[4] = colorformat(styledef[3:])
  File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat
    assert False, "wrong color format %r" % text
AssertionError: wrong color format 'ansiyellow'

Solution provided here but requires to rebuild the image : https://stackoverflow.com/questions/72824544/why-am-getting-this-error-in-jupyter-lab-assertionerror-wrong-color-format-a

YasserAntonio avatar Jun 20 '23 14:06 YasserAntonio