Open happz opened 2 months ago
psycopg being used by python-nitrate (test-convert plugin). Trying to move to psycopg3 there: https://github.com/psss/python-nitrate/pull/49/
hmm, I think that if we can merge the python-nitrate patch, we can just extend the pip install test xfail to f41 as well, until pint is fixed in upstream, but F41 could be fine otherwise.
Running into this issue.
https://gitlab.com/rh-kernel-stqe/sts/-/jobs/8058048363
tmt lint.................................................................Failed
- hook id: tmt-lint
- exit code: 1
Traceback (most recent call last):
File "<frozen runpy>", line 189, in _run_module_as_main
File "<frozen runpy>", line 112, in _get_module_details
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/__init__.py", line 20, in <module>
from tmt.base import Clean, Plan, Run, Status, Story, Test, Tree
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/base.py", line 38, in <module>
import tmt.checks
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/checks/__init__.py", line 7, in <module>
import tmt.steps.provision
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/steps/provision/__init__.py", line 35, in <module>
import tmt.hardware
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/hardware.py", line 48, in <module>
import pint
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/__init__.py", line 18, in <module>
from .delegates.formatter._format_helpers import formatter
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/delegates/__init__.py", line 12, in <module>
from . import txt_defparser
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/delegates/txt_defparser/__init__.py", line 12, in <module>
from .defparser import DefParser
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/delegates/txt_defparser/defparser.py", line 10, in <module>
from . import block, common, context, defaults, group, plain, system
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/delegates/txt_defparser/common.py", line 23, in <module>
@dataclass(frozen=True)
~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/dataclasses.py", line 1295, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
frozen, match_args, kw_only, slots,
weakref_slot)
File "/usr/local/lib/python3.13/dataclasses.py", line 1043, in _process_class
raise TypeError('cannot inherit frozen dataclass from a '
'non-frozen one')
TypeError: cannot inherit frozen dataclass from a non-frozen one
Traceback (most recent call last):
File "<frozen runpy>", line 189, in _run_module_as_main
File "<frozen runpy>", line 112, in _get_module_details
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/__init__.py", line 20, in <module>
from tmt.base import Clean, Plan, Run, Status, Story, Test, Tree
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/base.py", line 38, in <module>
import tmt.checks
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/checks/__init__.py", line 7, in <module>
import tmt.steps.provision
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/steps/provision/__init__.py", line 35, in <module>
import tmt.hardware
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/tmt/hardware.py", line 48, in <module>
import pint
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/__init__.py", line 18, in <module>
from .delegates.formatter._format_helpers import formatter
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/delegates/__init__.py", line 12, in <module>
from . import txt_defparser
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/delegates/txt_defparser/__init__.py", line 12, in <module>
from .defparser import DefParser
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/delegates/txt_defparser/defparser.py", line 10, in <module>
from . import block, common, context, defaults, group, plain, system
File "/root/.cache/pre-commit/repo_imw5e8g/py_env-python3/lib/python3.13/site-packages/pint/delegates/txt_defparser/common.py", line 23, in <module>
@dataclass(frozen=True)
~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/dataclasses.py", line 1295, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
frozen, match_args, kw_only, slots,
weakref_slot)
File "/usr/local/lib/python3.13/dataclasses.py", line 1043, in _process_class
raise TypeError('cannot inherit frozen dataclass from a '
'non-frozen one')
TypeError: cannot inherit frozen dataclass from a non-frozen one
Cleaning up project directory and file based variables
Thanks, I thought about setting python version in pre-commit-hook config, but there can only be one version, so it would probably do more harm than good.
See https://artifacts.dev.testing-farm.io/a1bfe9fa-f80e-441b-9883-25826ac78ec1/: