Error during package installation

During package installation I receive this error

(5/6) Checking which packages need to be rebuilt
Error processing line 1 of /usr/lib/python3.10/site-packages/zope.event-4.5.0-py3.6-nspkg.pth:

  Traceback (most recent call last):
    File "/usr/lib/python3.10/site.py", line 186, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 568, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'

Remainder of file ignored
Error processing line 1 of /usr/lib/python3.10/site-packages/zope.interface-5.4.0-py3.10-nspkg.pth:

  Traceback (most recent call last):
    File "/usr/lib/python3.10/site.py", line 186, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 568, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'

Remainder of file ignored