Konstantin Khlebnikov
Konstantin Khlebnikov
- most likely fs quota is not enabled for volumes in k8s - "slot" users (yt_slot_XXX) are not used yet in CRI/containerd job-environment setup So, for now this feature are...
> volume_manager_ut.cpp This file not in OS https://github.com/ytsaurus/ytsaurus/commit/579a2c2b96545e42aa2db420225914a0e33b8e81
Bump! For me pyright cannot even resolve class YtClient. Problem is here: https://github.com/ytsaurus/ytsaurus/blob/b3c258e7b4a322c6e8dbe196a9150faeecfeb7d3/yt/python/yt/wrapper/client.py#L31 Conditional import with clear constant expression solves the problem: ``` if YANDEX_VERSION: from .client_impl_yandex import YtClient else:...
Python package could include `FLAVOR` `OPEN_SOURCE=True|False` into generated `version.py` https://github.com/ytsaurus/ytsaurus/blob/b6634cd52ba6afdb1c8459f6de87c6067e19eef4/yt/python/packages/ytsaurus-client/setup.py#L13 And then use this for all conditional imports with ease.
Distilled problem: ``` $ pip3 install ytsaurus-client pyright $ cat a.py from yt.wrapper.client import YtClient $ pyright a.py /home/khlebnikov/work/yt-suite/a.py /home/khlebnikov/work/yt-suite/a.py:1:31 - error: "YtClient" is unknown import symbol (reportAttributeAccessIssue) 1 error,...
> I am afraid there is no good solution for conditional import (pyright do not evaluate expressions in condition) and pyi files for client_impl do not help either. Thinking about...
> Pyright selects pyi files and doesn't even look at the original. Please don't do that. It's better to fix original files rather providing bunch of crutches.
Yep =( Everything is more complicated than "if True" or "if not True" are not evaluated. typing.Final does not work too
Application should generate code for the same architecture it was compiled for. Here it is executed by binary translator which converts x86 instructions into internal code, which isn't exactly arm64...
I.e. switching to "generic" cpu might help.