Hedroed / png-parser

Analyse PNG file format for CTF, python API and CLI
MIT License
98 stars 11 forks source link

Not working in Python 3.10 #2

Closed fireton closed 3 years ago

fireton commented 3 years ago
PS C:\Windows\System32> png-parser
Traceback (most recent call last):
  File "C:\Users\Anton\AppData\Roaming\Python\Python310\Scripts\png-parser-script.py", line 33, in <module>
    sys.exit(load_entry_point('png-parser==2.0.0', 'console_scripts', 'png-parser')())
  File "C:\Users\Anton\AppData\Roaming\Python\Python310\Scripts\png-parser-script.py", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "C:\Program Files\Python310\lib\importlib\metadata\__init__.py", line 162, in load
    module = import_module(match.group('module'))
  File "C:\Program Files\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\Anton\AppData\Roaming\Python\Python310\site-packages\pngparser\__init__.py", line 1, in <module>
    from .png import PngParser, PNG_MAGIC_NUMBER
  File "C:\Users\Anton\AppData\Roaming\Python\Python310\site-packages\pngparser\png.py", line 9, in <module>
    from .chunks import create_chunk, ChunkRaw
  File "C:\Users\Anton\AppData\Roaming\Python\Python310\site-packages\pngparser\chunks\__init__.py", line 6, in <module>
    from .ihdr import ChunkIHDR
  File "C:\Users\Anton\AppData\Roaming\Python\Python310\site-packages\pngparser\chunks\ihdr.py", line 3, in <module>
    from ..utils import pixel_type_to_length
  File "C:\Users\Anton\AppData\Roaming\Python\Python310\site-packages\pngparser\utils.py", line 30, in <module>
    class BitArray(collections.Iterator):
AttributeError: module 'collections' has no attribute 'Iterator'