Source: parso
Version: 0.8.3-1
Severity: normal
User: debian-pyt...@lists.debian.org
Usertags: python3.13
Affects: -1 src:pandas

Please update to 0.8.4 that includes the grammar for Python 3.13.

Pandas fails to run its test suite under 3.13, due to missing parso
grammar:

https://debusine.debian.net/artifact/839716/

Snippet:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/jedi/cache.py", line 110, in wrapper
      return dct[key]
             ~~~^^^^^
  KeyError: ((), frozenset())

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/parso/grammar.py", line 252, in 
load_grammar
      return _loaded_grammars[path]
             ~~~~~~~~~~~~~~~~^^^^^^
  KeyError: '/usr/lib/python3/dist-packages/parso/python/grammar313.txt'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/parso/grammar.py", line 255, in 
load_grammar
      with open(path) as f:
           ~~~~^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: 
'/usr/lib/python3/dist-packages/parso/python/grammar313.txt'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/IPython/core/completer.py", line 3171, 
in _complete
      result = matcher(context)
    File "/usr/lib/python3/dist-packages/IPython/core/completer.py", line 2224, 
in _jedi_matcher
      matches = self._jedi_matches(
          cursor_column=context.cursor_position,
          cursor_line=context.cursor_line,
          text=context.full_text,
      )
    File "/usr/lib/python3/dist-packages/IPython/core/completer.py", line 2278, 
in _jedi_matches
      interpreter = jedi.Interpreter(text[:offset], namespaces)
    File "/usr/lib/python3/dist-packages/jedi/api/__init__.py", line 741, in 
__init__
      super().__init__(code, environment=environment, project=project, **kwds)
      ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/jedi/api/__init__.py", line 119, in 
__init__
      self._inference_state = InferenceState(
                              ~~~~~~~~~~~~~~^
          project, environment=environment, script_path=self.path
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      )
      ^
    File "/usr/lib/python3/dist-packages/jedi/inference/__init__.py", line 91, 
in __init__
      self.grammar = environment.get_grammar()
                     ~~~~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/jedi/cache.py", line 112, in wrapper
      result = method(self, *args, **kwargs)
    File "/usr/lib/python3/dist-packages/jedi/api/environment.py", line 37, in 
get_grammar
      return parso.load_grammar(version=version_string)
             ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/parso/grammar.py", line 264, in 
load_grammar
      raise NotImplementedError(message)
  NotImplementedError: Python version 3.13 is currently not supported.
  
________________________________________________________________________________

  For more information see 
https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/test-data.xml -

Thanks,

Stefano

Reply via email to