HelloZeroNet / HelloZeroNet/ZeroNet

python update.py or python2.update.py should have more verbose output

Đang mở
#1,265 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
2.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.