test: unable to run `allowed_errors.py`
koivunej opened this issue · comments
Joonas Koivunen commented
$ python3 test_runner/fixtures/pageserver/allowed_errors.py < 3e5db11dc4a18e06.log
Traceback (most recent call last):
File "/home/admin/src/neon/neon/test_runner/fixtures/pageserver/allowed_errors.py", line 3, in <module>
import argparse
File "/usr/lib/python3.9/argparse.py", line 89, in <module>
import re as _re
File "/usr/lib/python3.9/re.py", line 124, in <module>
import enum
File "/usr/lib/python3.9/enum.py", line 2, in <module>
from types import MappingProxyType, DynamicClassAttribute
File "/home/admin/src/neon/neon/test_runner/fixtures/pageserver/types.py", line 2, in <module>
from dataclasses import dataclass
File "/usr/lib/python3.9/dataclasses.py", line 3, in <module>
import copy
File "/usr/lib/python3.9/copy.py", line 52, in <module>
import weakref
File "/usr/lib/python3.9/weakref.py", line 22, in <module>
from _weakrefset import WeakSet, _IterationGuard
File "/usr/lib/python3.9/_weakrefset.py", line 6, in <module>
from types import GenericAlias
ImportError: cannot import name 'GenericAlias' from partially initialized module 'types' (most likely due to a circular import) (/home/admin/src/neon/neon/test_runner/fixtures/pageserver/types.py)
Similarly with poetry run python ...
.
There are some similar-ish issues around the web, all which suggest renaming types.py
.