HelloZeroNet / HelloZeroNet/ZeroNet

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

Ouverte
#1,265 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
JavaScript
Étoiles
18.8k
Forks
2.3k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
cli
Type d'issue
Fonctionnalité
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.