Skip to content

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

@ssteinerx

Description

@ssteinerx

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.

Activity

ssteinerx

ssteinerx commented on Aug 22, 2024

@ssteinerx
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ssteinerx

        Issue actions

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