objbrowser icon indicating copy to clipboard operation
objbrowser copied to clipboard

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

Open ssteinerx opened this issue 1 year ago • 1 comments

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 avatar Aug 21 '24 21:08 ssteinerx

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 "<NOT-FOUND>" can ever work, but if not, that'd be a better place to stop, I think.

ssteinerx avatar Aug 22 '24 00:08 ssteinerx