TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
Closed this issue · 2 comments
rothos commented
Desktop (please complete the following information):
- OS and version: Mac OS Sonoma 14.0
- Terminal/shell used: zsh
Describe the bug
I successfully installed the package via pip3. When I try to run it, this happens:
❯ sigexport ./2024-03-26
Traceback (most recent call last):
File "/Users/gar/Library/Python/3.9/bin/sigexport", line 5, in <module>
from sigexport.main import cli
File "/Users/gar/Library/Python/3.9/lib/python/site-packages/sigexport/main.py", line 13, in <module>
from sigexport import __version__, create, files, html, logging, merge, models, utils
File "/Users/gar/Library/Python/3.9/lib/python/site-packages/sigexport/create.py", line 3, in <module>
from sigexport import models, utils
File "/Users/gar/Library/Python/3.9/lib/python/site-packages/sigexport/models.py", line 10, in <module>
class RawMessage:
File "/Users/gar/Library/Python/3.9/lib/python/site-packages/sigexport/models.py", line 15, in RawMessage
type: str | None
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
Any idea what's going on here? I searched and didn't find this error in any previous bug reports.
carderne commented
Should be fixed by 60c11ad, released in latest version.
Do pip install signal-export>=2.2.2
and try again!
rothos commented
It worked. Thank you Chris!