Ticket #40352

write() argument must be str, not bytes

Eröffnet am: 2020-04-25 03:24 Letztes Update: 2020-04-25 03:26

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Priorität:
5 - Mittel
Schweregrad:
4
Lösung:
Gefixt
Datei:
Keine

Details

  1. Exception in Tkinter callback
  2. Traceback (most recent call last):
  3. File "/home/sforman/anaconda2/envs/mne/lib/python3.6/tkinter/__init__.py", line 1705, in __call__
  4. return self.func(*args)
  5. File "/home/sforman/anaconda2/envs/mne/lib/python3.6/tkinter/__init__.py", line 749, in callit
  6. func(*args)
  7. File "/home/sforman/Desktop/ArchLayer/System/source/Thun/joy/gui/textwidget.py", line 121, in _saveFunc
  8. self.saver(self._get_contents())
  9. File "/home/sforman/Desktop/ArchLayer/System/source/Thun/joy/gui/textwidget.py", line 128, in _saver
  10. f.write(text.encode('UTF_8'))
  11. TypeError: write() argument must be str, not bytes

Ticket-Verlauf (2/2 Historien)

2020-04-25 03:24 Aktualisiert von: sforman
  • New Ticket "write() argument must be str, not bytes" created
2020-04-25 03:26 Aktualisiert von: sforman
  • Lösung Update from Keine to Gefixt
  • Status Update from Offen to Geschlossen
Kommentar

Fixed in 786fdcbbf97114db5e394d03e5b96c94c0b7e7a8

https://osdn.net/projects/joypy/scm/hg/Joypy/commits/786fdcbbf97114db5e394d03e5b96c94c0b7e7a8

Just have to open the file in binary mode.

Dateianhangliste

Keine Anhänge

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden