Can't use master branch with pip installation
- 主要言語
- Python
- スター
- 1.4k
- フォーク
- 191
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi! This is a follow-up of the discussion in #229: basically if I install `mssql-cli` latest stable release with pip by doing
```
pip install --user mssql-cli
```
then I can connect to a db by running something like `mssql-cli -S host -U user -P password` without any problems. However when I install the latest (master) version by virtue of
```
pip install --user git+https://github.com/dbcli/mssql-clii
```
then the package is correctly installed but when attempting to connect to a database I get:
```
Traceback (most recent call last):
File "/home/pedro/.local/bin/mssql-cli", line 10, in
sys.exit(main())
File "/home/pedro/.local/lib/python3.7/site-packages/mssqlcli/main.py", line 93, in main
run_cli_with(mssqlcli_options)
File "/home/pedro/.local/lib/python3.7/site-packages/mssqlcli/main.py", line 51, in run_cli_with
mssqlcli = MssqlCli(options)
File "/home/pedro/.local/lib/python3.7/site-packages/mssqlcli/mssql_cli.py", line 191, in __init__
self.sqltoolsclient = SqlToolsClient(enable_logging=options.enable_sqltoolsservice_logging)
File "/home/pedro/.local/lib/python3.7/site-packages/mssqlcli/sqltoolsclient.py", line 34, in __init__
sqltoolsservice_args = [mssqltoolsservice.get_executable_path()]
File "/home/pedro/.local/lib/python3.7/site-packages/mssqlcli/mssqltoolsservice/__init__.py", line 31, in get_executable_path
raise EnvironmentError(error_message)
OSError: /home/pedro/.local/lib/python3.7/site-packages/mssqlcli/mssqltoolsservice/bin/MicrosoftSqlToolsServiceLayer does not exist. Please re-install the mssql-cli package
Exception ignored in:
Traceback (most recent call last):
File "/home/pedro/.local/lib/python3.7/site-packages/mssqlcli/mssql_cli.py", line 196, in __del__
if self.sqltoolsclient:
AttributeError: 'MssqlCli' object has no attribute 'sqltoolsclient'
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
2つのインストール経路を再現し、その後 mssqlcli/main.py、mssqlcli/mssql_cli.py、mssqlcli/sqltoolsclient.py、mssqlcli/mssqltoolsservice/__init__.py を調べてください。特に、SQL Tools Service の実行ファイルがどのようにパッケージ化され、配置場所が特定されるかを確認してください。master ブランチからのインストールに実行ファイルが含まれ、報告された mssql-cli コマンドで traceback なしに接続できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cli, databases
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100