encoding error when building rpm
- Lingua principale
- Python
- Stelle
- 167
- Fork
- 33
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi
on the opensuse build server I get the following error when running setup.py
```
[ 47s] Traceback (most recent call last):
[ 47s] File "setup.py", line 26, in
[ 47s] long_description = f.read()
[ 47s] File "/usr/lib64/python3.4/encodings/ascii.py", line 26, in decode
[ 47s] return codecs.ascii_decode(input, self.errors)[0]
[ 47s] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3249: ordinal not in range(128)
[ 47s] error: Bad exit status from /var/tmp/rpm-tmp.UcThvc (%build)
```
the package already has a patch for this (not sure by whom), which fixes the problem, just wanted to report this upstream
patch:
```
-with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
+with open(os.path.join(os.path.dirname(__file__), 'README.rst'),encoding='utf-8') as f:
```
Arun
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia in setup.py dal codice che legge README.rst in long_description, quindi riproduci la build con il comando setup.py o RPM indicato su Python 3.4. Conferma che il pacchetto venga compilato correttamente sul server di build openSUSE e che i contenuti di README vengano letti senza il UnicodeDecodeError segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 48/100