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

ImportError: cannot import name 'List' from 'pyparsing' #290

Closed
s2s-gh-ychen opened this issue Oct 14, 2024 · 2 comments
Closed

ImportError: cannot import name 'List' from 'pyparsing' #290

s2s-gh-ychen opened this issue Oct 14, 2024 · 2 comments

Comments

@s2s-gh-ychen
Copy link

pyparsing==3.2.0 October 13 2024 release breaks pySigma import statement.

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/sigma/rule.py:9: in <module>
    from sigma.types import SigmaType, SigmaNull, SigmaString, SigmaNumber, sigma_type
/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/sigma/types.py:22: in <module>
    from sigma.exceptions import (
/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/sigma/exceptions.py:5: in <module>
    from pyparsing import List
E   ImportError: cannot import name 'List' from 'pyparsing' (/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/pyparsing/__init__.py)

Related to pyparsing issue 576

However, I think the more relevant question is why is the exceptions.py module importing List from pyparsing?

@s2s-gh-ychen
Copy link
Author

Looks like @branchvincent fixes this issue in his suggested PR: #289

@thomaspatzke
Copy link
Member

Merged it!

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