`azureml-fsspec` file upload uninformative error
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- azure, python
調査の方向性
示されているローカルパスとリモートパスを使って、ドキュメントに記載された AzureMachineLearningFileSystem.upload の例を再現します。azureml/fsspec/spec.py:146 から始め、upload と _info のエントリポイントを追跡して、リモートパスが _stream_infos に存在しない理由を特定します。失敗の原因が実行可能な診断情報とともに説明されるか、生の KeyError ではなく情報量のあるエラーが生成されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hey, I am working on some simple EDA in AzureML, and I have successfully set up data asset to facilitate access to blob storage. Following this documentation, I can easily read data using a number of methods, including creating an AzureMachineLearningFileSystem and using it to .open() some remote file. However, when I try uploading a file back to blob storage using an instance of AzureMachineLearningFileSystem and its .upload() method, it just fails with an error message mentioning the remote path I pass to it.
So, given a file system fs, local file local.file.txt, which I want to upload as remote.file.txt, I run the following (based on the sample here):
fs.upload(lpath='local.file.txt', rpath='remote.file.txt', recursive=False, **{'overwrite': 'MERGE_WITH_OVERWRITE'})
But it results in an error with a lengthy stack trace, ending with:
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/azureml/fsspec/spec.py:146, in AzureMachineLearningFileSystem._info(self, path)
144 if len(self._stream_infos) == 1:
145 return list(self._stream_infos.values())[0]['info']
--> 146 return self._stream_infos[path]['info']
KeyError: 'remote.file.txt'
which is not really helpful. Any advice on how to debug this issue?
- 主要言語
- Jupyter Notebook
- スター
- 4.4k
- フォーク
- 2.6k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/MachineLearningNotebooks のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/MachineLearningNotebooks#1975 · コメント 1 件 ·
-
duplicates オープン
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
Azure/MachineLearningNotebooks#1960 ·
-
machine オープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
Azure/MachineLearningNotebooks#1987 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Azure/MachineLearningNotebooks#1985 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Azure/MachineLearningNotebooks#1981 · リアクション 1 件 ·
Azure/MachineLearningNotebooks の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
carverauto/serviceradar#4596 ·
-
complexity: small feature: security role: DevOps Engineer size: 2pt
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
hackforla/devops-security#203 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
OpenHands/OpenHands-Cloud#1283 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
elecnix/infra-cost-model#353 ·