titusjan / objbrowser

GUI for Python object introspection
MIT License
129 stars 16 forks source link

qtpy 2.4.1 -- QT_API, QT_API_NAME and QTPY_VERSION getting set to <NOT-FOUND>, due to missing module qtpy._version #9

Open ssteinerx opened 2 months ago

ssteinerx commented 2 months ago

I'm using qtpy version 2.4.1 with objbrowser PROGRAM_VERSION = 1.3.1 according to version.py.

The check on line 14->23 in objbrowser/version.py is failing when it tries to:

import qtpy, qtpy._version

It appears that qtpy._version is gone. The 2.4.1 version string is now in qtpy.__version__.

I didn't find where qtpy._version.version_info went but it's coming up fast on line 23.

ssteinerx commented 2 months ago

The app crashes either way trying to build the file_menu in _setup_menu with:

File ".../.venv/lib/python3.13/site-packages/objbrowser/objectbrowser.py", line 202, in _setup_menu
    file_menu.addAction("C&lose", self.close, "Ctrl+W")
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:

Clearly this is not a "matched set" -- an indication of which thing is out of whack would be extremely helpful. I'm not sure whether continuing with "" can ever work, but if not, that'd be a better place to stop, I think.