SkyLined / BugId

Detect, analyze and uniquely identify crashes in Windows applications
https://bugid.skylined.nl
Other
499 stars 90 forks source link

mDebugOutput must use `inspect.signature` instread of `inspect.getargspec` #111

Closed dms1lva closed 1 year ago

dms1lva commented 1 year ago

tag: 2022-10-10.16.26

Here's the error

  File "D:\BugId\modules\mBugId\fInitializeProduct.py", line 28, in fo0LoadModule
    oModule = __import__(sModuleName, dict(globals()), {}, [], 0);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\BugId\modules\mMultiThreading\__init__.py", line 4, in <module>
    from .mExports import *;
    ^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\BugId\modules\mMultiThreading\mExports.py", line 1, in <module>
    from .cLock import cLock;
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\BugId\modules\mMultiThreading\cLock.py", line 4, in <module>
    from mDebugOutput import \
  File "D:\BugId\modules\mDebugOutput\__init__.py", line 4, in <module>
    from .mExports import *;
    ^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\BugId\modules\mDebugOutput\mExports.py", line 11, in <module>
    from .ShowDebugOutput import ShowDebugOutput;
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\BugId\modules\mDebugOutput\ShowDebugOutput.py", line 233, in <module>
    ShowDebugOutput(lambda: 0);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\BugId\modules\mDebugOutput\ShowDebugOutput.py", line 18, in ShowDebugOutput
    (axArgumentNames, stxArgumentName, sdxArgumentName, txDefaultArgumentValues) = inspect.getargspec(fxFunction);
                                                                                   ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'
SkyLined commented 1 year ago

Thank you for the report!

I just downloaded the latest Python and noticed this too. I will need to update the code to use inspect.signature(...). I do not know how big of a change is required, so I am unable o give you an ETA on a fix at this moment.

SkyLined commented 1 year ago

Turns out it was not that hard to implement a quick fix: https://github.com/SkyLined/mDebugOutput/issues/1.

I'll include this fix in the next release.

dms1lva commented 1 year ago

Awesome, thanks!