HelloZeroNet / HelloZeroNet/ZeroNet
python update.py or python2.update.py should have more verbose output
- 主要言語
- JavaScript
- スター
- 18.8k
- フォーク
- 2.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
### Step 1: Please describe your environment
* ZeroNet version: 0.6.1 r3229
* Operating system: Debian buster
* Web browser: 52.6.0
* Tor status: always
* Opened port: yes
* Special configuration: None
### Step 2: Describe the problem:
When I run python update.py at times I have to wait for a very long time to know why the update failed and sometimes even then don't really get the result which is just wastage of time.
#### Steps to reproduce:
1. Download the relevant .tar.gz version of zeronet
2. extract it in some directory, for e.g. I did it in games/Zeronet-master
3. go to the directory and do -
```
/home/shirish/games/ZeroNet-master> python update.py
Update site path: data/1UPDatEDxnvHDo7TXvq6AEBARfNkyfxsp, bad_files: 0
```
Both python and python2 are linked to Python 2.7.14+
The only way to get the new release is to get the newest tarball and extract it, no other way.
I also tried -
`python -v update.py` but it gets stuck at -
```
# /usr/lib/python2.7/Queue.pyc matches /usr/lib/python2.7/Queue.py
import Queue # precompiled from /usr/lib/python2.7/Queue.pyc
```
#### Observed Results:
* shared above.
#### Expected Results:
* I expected either of the two results -
result 1 - the software is updated
result 2 - an error shows up telling me what is wrong or at least gives me some inkling what is needed to be fixed but got no output so nothing to parse/understand.
Couple of links might be useful which I looked into -
https://stackoverflow.com/questions/14097061/easier-way-to-enable-verbose-logging
https://stackoverflow.com/questions/5980042/how-to-implement-the-verbose-or-v-option-into-a-script
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start by inspecting update.py and python2.update.py, then reproduce the silent update command from the issue on Python 2.7. Compare normal execution with the reported python -v behavior. Done means the updater provides useful progress or an actionable error when it succeeds or fails.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100