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

Python crash when help(QtCore)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.14.2
    • PySide, Shiboken
    • None
    • Windows 10 v1909 x64
      Python 3.8.2 (AMD x64)
      PySide2 5.14.2
    • Windows

    Description

      fatal python error when requesting help from QtCore

      causing issues with autocomplete in IDE's (eclipse, VS code)

      build 5.14.1 seems to be fine

      Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from PySide2 import QtCore
      >>> help(QtCore)
      Traceback (most recent call last):
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\Lib\site-packages\shiboken2\files.dir\shibokensupport\signature\loader.py", line 105, in make_helptext
          return errorhandler.make_helptext(func)
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\Lib\site-packages\shiboken2\files.dir\shibokensupport\signature\errorhandler.py", line 138, in make_helptext
          msg = sigtext + "\n\n" + existing_doc if existing_doc else sigtext
      TypeError: can only concatenate str (not "getset_descriptor") to str
      Fatal Python error: handle_doc did not receive a result
      Python runtime state: initializedCurrent thread 0x000021e0 (most recent call first):
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\inspect.py", line 613 in getdoc
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\pydoc.py", line 95 in getdoc
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\pydoc.py", line 1240 in docclass
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\pydoc.py", line 381 in document
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\pydoc.py", line 1178 in docmodule
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\pydoc.py", line 380 in document
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\pydoc.py", line 1680 in render_doc
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\pydoc.py", line 1687 in doc
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\pydoc.py", line 1967 in help
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\pydoc.py", line 1908 in __call__
        File "C:\Users\OEM\AppData\Local\Programs\Python\Python38\lib\_sitebuiltins.py", line 103 in __call__
        File "<stdin>", line 1 in <module>
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            jdex24 Jesse Denton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes