pretix / pretix-passbook

Support for Apple Wallet/Passbook files in pretix
https://pretix.eu
Other
27 stars 20 forks source link

TypeError: write() argument must be str, not bytes #59

Closed rhonalchirinos closed 1 year ago

rhonalchirinos commented 1 year ago

[2023-10-26 12:50:29,744: ERROR/ForkPoolWorker-15] Task pretix.base.services.tickets.generate[4a8ce832-be37-45e9-b76c-2b9b6b7abf9e] raised unexpected: TypeError('write() argument must be str, not bytes') Traceback (most recent call last): File "/home/rhonal/pretix/venv/lib/python3.10/site-packages/celery/app/trace.py", line 477, in trace_task R = retval = fun(*args, kwargs) File "/home/rhonal/pretix/venv/lib/python3.10/site-packages/pretix/base/services/tasks.py", line 62, in call ret = super().call(*args, *kwargs) File "/home/rhonal/pretix/venv/lib/python3.10/site-packages/celery/app/trace.py", line 760, in __protected_call__ return self.run(args, kwargs) File "/home/rhonal/pretix/venv/lib/python3.10/site-packages/pretix/base/services/tickets.py", line 89, in generate return generate_orderposition(pk, provider) File "/home/rhonal/pretix/venv/lib/python3.10/site-packages/pretix/base/services/tickets.py", line 52, in generate_orderposition filename, ttype, data = prov.generate(order_position) File "/home/rhonal/pretix/venv/lib/python3.10/site-packages/pretix_passbook/passbook.py", line 380, in generate certfile.write(order.event.settings.passbook_certificate_file.read()) File "/usr/lib/python3.10/tempfile.py", line 622, in func_wrapper return func(*args, **kwargs) TypeError: write() argument must be str, not bytes