ydb-platform / ydb-python-sdk

YDB Python SDK
https://ydb-platform.github.io/ydb-python-sdk/
Apache License 2.0
87 stars 50 forks source link

bug: No compatibility between ydb-python-sdk and ydb-dstool #470

Open mregrock opened 3 months ago

mregrock commented 3 months ago

Bug Report

YDB Python SDK version:

3.15.0

Current behavior: If ydb-dstool is installed separately from ydb-python-sdk, everything works well, but if they are installed simultaneously, then ydb-dstool crashes with an error.

    File "/home/mregrock/.local/bin/ydb-dstool", line 5, in <module>     
        from ydb.apps.dstool.main import main   
    File "/home/mregrock/.local/lib/python3.10/site-packages/ydb/__init__.py", line 9, in <module>     
        from .credentials import *  # noqa   
    File "/home/mregrock/.local/lib/python3.10/site-packages/ydb/credentials.py", line 5, in <module>     
        from . import tracing, issues, connection   
    File "/home/mregrock/.local/lib/python3.10/site-packages/ydb/issues.py", line 9, in <module>     
        from . import _apis   
    File "/home/mregrock/.local/lib/python3.10/site-packages/ydb/_apis.py", line 28, in <module> 
        from ._grpc.common import (   
    File "/home/mregrock/.local/lib/python3.10/site-packages/ydb/_grpc/common/__init__.py", line 14, in <module>     
        from ydb.public.api.grpc import *  # noqa

Upd: However, if you build dstool using ya make, instead of pip install, the error does not appear