#1071087 onionshare: Show QR Code Button Does Not Work When Setting Up Onionshare Chat

#1071087#5
Date:
2024-05-14 03:18:08 UTC
From:
To:
Dear Maintainer,



   * What led up to the situation?
       When attempting to set up the chat feature, pressing the button to show the qr code did not work.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
       No QR image was shown, but produced the following error messages:
       Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/onionshare/tab/server_status.py", line 501, in show_url_qr_code_button_clicked
    self.qr_code_dialog = QRCodeDialog(
                          ^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/onionshare/widgets.py", line 146, in __init__
    self.qr_label.setPixmap(qrcode.make(text, image_factory=Image).pixmap())
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/qrcode/main.py", line 29, in make
    return qr.make_image()
           ^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/qrcode/main.py", line 365, in make_image
    im = image_factory(
         ^^^^^^^^^^^^^^
TypeError: Image.__init__() got an unexpected keyword argument 'qrcode_modules'

   * What outcome did you expect instead?
       A dialog box with the QR image showing.