Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-328

Python3: Errors in bindings taking a const char * argument (expects unicode)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • None
    • PySide
    • All

    Description

      With https://codereview.qt-project.org/#/c/164468/ https://codereview.qt-project.org/#/c/164301/ applied:
      .qrc handling:

      python3 examples/dialogs/classwizard/classwizard.py 
      Traceback (most recent call last):
        File "examples/dialogs/classwizard/classwizard.py", line 46, in <module>
          import classwizard_rc
        File "/data1/fkleint/pyside-setup/sources/pyside2-examples/examples/dialogs/classwizard/classwizard_rc.py", line
       3887, in <module>
          qInitResources()
        File "/data1/fkleint/pyside-setup/sources/pyside2-examples/examples/dialogs/classwizard/classwizard_rc.py", line
       3882, in qInitResources
          QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
      TypeError: 'qRegisterResourceData' called with wrong argument types:
        qRegisterResourceData(int, str, str, str)
      Supported signatures:
        qRegisterResourceData(int, unicode, unicode, unicode)
      

      QDataStream:

      python3 fortuneserver.py  &
      [1] 32129
      (testenv) .../pyside-setup/sources/pyside2-examples/examples/network$ python3 fortuneclient.py
      Traceback (most recent call last):
        File "fortuneserver.py", line 107, in sendFortune
          out.writeString(fortune)
      TypeError: 'PySide2.QtCore.QDataStream.writeString' called with wrong argument types:
        PySide2.QtCore.QDataStream.writeString(bytes)
      Supported signatures:
        PySide2.QtCore.QDataStream.writeString(unicode)
      

      Attachments

        For Gerrit Dashboard: PYSIDE-328
        # Subject Branch Project Status CR V

        Activity

          People

            ctismer Christian Tismer
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes