Solution to issue cannot be found in the documentation.
[X] I checked the documentation.
Issue
Since ee8a50f, a METADATA file is generated but is empty.
This cause problem with PyInstaller>=6.0 as PySide6 hook has a check for version:
# Starting with PySide6 6.4.0, we need to collect PySide6.support.deprecated for | and & operators to work with
# Qt key and key modifiers enums. See #7249.
if check_requirement("PySide6 >= 6.4.0"):
hiddenimports += ['PySide6.support.deprecated']
check_requirement calls importlib.metadata.version function which read version from METADATA file and return None causing check_requirement to raise a TypeError
METADATA file should not be empty. In Pyside6_Essentials from PyPI, METADATA file has the following content:
METADATA content
Metadata-Version: 2.1
Name: PySide6-Essentials
Version: 6.3.2
Summary: Python bindings for the Qt cross-platform application and UI framework (Essentials)
Home-page: https://www.pyside.org
Download-URL: https://download.qt.io/official_releases/QtForPython
Author: Qt for Python Team
Author-email: pyside@qt-project.org
License: LGPL
Keywords: Qt
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Environment :: MacOS X
Classifier: Environment :: X11 Applications :: Qt
Classifier: Environment :: Win32 (MS Windows)
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Database
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: Software Development :: Widget Sets
Requires-Python: <3.11,>=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.COMMERCIAL
License-File: LICENSE.FDL
License-File: LICENSE.GPL2
License-File: LICENSE.GPLv3
License-File: LICENSE.GPLv3-EXCEPT
License-File: LICENSE.LGPLv3
Requires-Dist: shiboken6 (==6.3.2)
# PySide6 Essentials
PySide6 is the official Python module from the
[Qt for Python project](https://wiki.qt.io/Qt_for_Python),
which provides access to the complete Qt 6.0+ framework.
The Qt for Python project is developed in the open, with all facilities you'd expect
from any modern OSS project such as all code in a git repository and an open
design process. We welcome any contribution conforming to the
[Qt Contribution Agreement](https://www.qt.io/contributionagreement/).
This is a minimal wheel for [PySide6](https://pypi.org/project/PySide6),
it includes only the essentials Qt modules:
* QtCore
* QtGui
* QtWidgets
* QtHelp
* QtNetwork
* QtConcurrent
* QtDBus
* QtDesigner
* QtOpenGL
* QtOpenGLWidgets
* QtPrintSupport
* QtQml
* QtQuick
* QtQuickControls2
* QtQuickWidgets
* QtXml
* QtTest
* QtSql
* QtSvg
* QtSvgWidgets
* QtUiTools
### Documentation and Bugs
You can find more information about the PySide6 module API in the
[official Qt for Python documentation](https://doc.qt.io/qtforpython/).
If you come across any issue, please file a bug report at our
[JIRA tracker](https://bugreports.qt.io/projects/PYSIDE) following
our [guidelines](https://wiki.qt.io/Qt_for_Python/Reporting_Bugs).
### Community
Check our channels on IRC (Libera), Telegram, Gitter, Matrix, and mailing list,
and [join our community](https://wiki.qt.io/Qt_for_Python#Community)!
### Licensing
PySide6 is available under both Open Source (LGPLv3/GPLv2) and commercial
license. Using PyPi is the recommended installation source, because the
content of the wheels is valid for both cases. For more information, refer to
the [Qt Licensing page](https://www.qt.io/licensing/).
Solution to issue cannot be found in the documentation.
Issue
Since ee8a50f, a
METADATA
file is generated but is empty. This cause problem withPyInstaller>=6.0
as PySide6 hook has a check for version:check_requirement
callsimportlib.metadata.version
function which read version fromMETADATA
file and returnNone
causingcheck_requirement
to raise aTypeError
METADATA
file should not be empty. InPyside6_Essentials
from PyPI,METADATA
file has the following content:METADATA content
Metadata-Version: 2.1 Name: PySide6-Essentials Version: 6.3.2 Summary: Python bindings for the Qt cross-platform application and UI framework (Essentials) Home-page: https://www.pyside.org Download-URL: https://download.qt.io/official_releases/QtForPython Author: Qt for Python Team Author-email: pyside@qt-project.org License: LGPL Keywords: Qt Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console Classifier: Environment :: MacOS X Classifier: Environment :: X11 Applications :: Qt Classifier: Environment :: Win32 (MS Windows) Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) Classifier: License :: Other/Proprietary License Classifier: Operating System :: MacOS :: MacOS X Classifier: Operating System :: POSIX Classifier: Operating System :: POSIX :: Linux Classifier: Operating System :: Microsoft Classifier: Operating System :: Microsoft :: Windows Classifier: Programming Language :: C++ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Topic :: Database Classifier: Topic :: Software Development Classifier: Topic :: Software Development :: Code Generators Classifier: Topic :: Software Development :: Libraries :: Application Frameworks Classifier: Topic :: Software Development :: User Interfaces Classifier: Topic :: Software Development :: Widget Sets Requires-Python: <3.11,>=3.6 Description-Content-Type: text/markdown License-File: LICENSE.COMMERCIAL License-File: LICENSE.FDL License-File: LICENSE.GPL2 License-File: LICENSE.GPLv3 License-File: LICENSE.GPLv3-EXCEPT License-File: LICENSE.LGPLv3 Requires-Dist: shiboken6 (==6.3.2) # PySide6 Essentials PySide6 is the official Python module from the [Qt for Python project](https://wiki.qt.io/Qt_for_Python), which provides access to the complete Qt 6.0+ framework. The Qt for Python project is developed in the open, with all facilities you'd expect from any modern OSS project such as all code in a git repository and an open design process. We welcome any contribution conforming to the [Qt Contribution Agreement](https://www.qt.io/contributionagreement/). This is a minimal wheel for [PySide6](https://pypi.org/project/PySide6), it includes only the essentials Qt modules: * QtCore * QtGui * QtWidgets * QtHelp * QtNetwork * QtConcurrent * QtDBus * QtDesigner * QtOpenGL * QtOpenGLWidgets * QtPrintSupport * QtQml * QtQuick * QtQuickControls2 * QtQuickWidgets * QtXml * QtTest * QtSql * QtSvg * QtSvgWidgets * QtUiTools ### Documentation and Bugs You can find more information about the PySide6 module API in the [official Qt for Python documentation](https://doc.qt.io/qtforpython/). If you come across any issue, please file a bug report at our [JIRA tracker](https://bugreports.qt.io/projects/PYSIDE) following our [guidelines](https://wiki.qt.io/Qt_for_Python/Reporting_Bugs). ### Community Check our channels on IRC (Libera), Telegram, Gitter, Matrix, and mailing list, and [join our community](https://wiki.qt.io/Qt_for_Python#Community)! ### Licensing PySide6 is available under both Open Source (LGPLv3/GPLv2) and commercial license. Using PyPi is the recommended installation source, because the content of the wheels is valid for both cases. For more information, refer to the [Qt Licensing page](https://www.qt.io/licensing/).
Installed packages
Environment info