ImportError: cannot import name 'DelimitedList' from 'pyparsing' (pyparsing dependency version not up to date?)
envgap__pydot__pydot-474
01 / FAILURE SIGNATURE
As reported upstream
ImportError: cannot import name 'DelimitedList' from 'pyparsing' (.venv/lib/python3.11/site-packages/pyparsing/__init__.py)
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
926c1c575fe035fe4c74b573080b9c962b36face- Manifest
pyproject.toml- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
pydot/pydot #474 · read the original issue
If you have pyparsing 3.0.9 installed, importing from `pydot.dot_parser` will fail.
```
% pip install pyparsing==3.0.9 && pip install pydot
% python -c 'from pydot.dot_parser import *'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/juuso.merilainen/work/projects/.venv/lib/python3.11/site-packages/pydot/dot_parser.py", line 18, in <module>
from pyparsing import (
ImportError: cannot import name 'DelimitedList' from 'pyparsing' (.venv/lib/python3.11/site-packages/pyparsing/__init__.py)
```
The pyparsing dependency allows 3.0.9 (https://github.com/pydot/pydot/blob/main/pyproject.toml#L19), but this does not seem to have the `DelimitedList` class imported here https://github.com/pydot/pydot/blob/c37e44bfdadb31e91b4e3a96e0c832af65d60c12/src/pydot/dot_parser.py#L21 Based on my understanding it was only introduced in 3.1.0 (https://pyparsing-docs.readthedocs.io/en/latest/whats_new_in_3_1.html#id4).04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]