8000 1.4.2 PyPI issue? · Issue #432 · mottosso/Qt.py · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
1.4.2 PyPI issue? #432
Closed
Closed
@letmeadam

Description

@letmeadam

Hello,

It looks like v1.4.2 released slightly different to PyPI? My concern is slightly more rez-related, but I can't seem to rez-pip -i Qt.py successfully anymore, but I can successfully get it with rez-pip -i Qt.py==1.4.1 (and it looks similarly successful with more previous versions, i.e. v1.3.10).

Failing "rez-pip -i Qt.py==1.4.2"
 > rez-pip -i Qt.py==1.4.2

17:33:40 INFO     Trying to use pip from python package
17:33:40 INFO     Found pip-23.0.1 inside /Users/letmeadam/packages/python/3.10.16/package.py. Will use it via /Users/letmeadam/packages/python/3.10.16/platform-osx/arch-arm64/os-osx-15.3.2/bin/python
17:33:40 INFO     Installing 'Qt.py==1.4.2' with pip taken from '/Users/letmeadam/packages/python/3.10.16/platform-osx/arch-arm64/os-osx-15.3.2/bin/python'

Collecting Qt.py==1.4.2
  Using cached qt_py-1.4.2-py2.py3-none-any.whl.metadata (29 kB)
Collecting types-PySide2 (from Qt.py==1.4.2)
  Using cached types_pyside2-5.15.2.1.7-py2.py3-none-any.whl.metadata (8.1 kB)
Using cached qt_py-1.4.2-py2.py3-none-any.whl (36 kB)
Using cached types_pyside2-5.15.2.1.7-py2.py3-none-any.whl (572 kB)
Installing collected packages: types-PySide2, Qt.py
Successfully installed Qt.py-1.4.2 types-PySide2-5.15.2.1.7

Traceback (most recent call last):
  File 
6A8A
"/opt/rez/bin/rez/rez-pip", line 8, in <module>
    sys.exit(run_rez_pip())
  File "/opt/rez/lib/python3.10/site-packages/rez/cli/_entry_points.py", line 183, in run_rez_pip
    return run("pip")
  File "/opt/rez/lib/python3.10/site-packages/rez/cli/_main.py", line 189, in run
    returncode = run_cmd()
  File "/opt/rez/lib/python3.10/site-packages/rez/cli/_main.py", line 181, in run_cmd
    return func(opts, opts.parser, extra_arg_groups)
  File "/opt/rez/lib/python3.10/site-packages/rez/cli/pip.py", line 52, in command
    pip_install_package(
  File "/opt/rez/lib/python3.10/site-packages/rez/pip.py", line 344, in pip_install_package
    rez_requires = get_rez_requirements(
  File "/opt/rez/lib/python3.10/site-packages/rez/utils/pip.py", line 405, in get_rez_requirements
    is_pure_python = is_pure_python_package(installed_dist)
  File "/opt/rez/lib/python3.10/site-packages/rez/utils/pip.py", line 329, in is_pure_python_package
    wheel_data = setuptools_dist.get_metadata('WHEEL')
AttributeError: 'NoneType' object has no attribute 'get_metadata'
Successful "rez-pip -i Qt.py==1.4.1"
> rez-pip -i Qt.py==1.4.1

17:33:20 INFO     Trying to use pip from python package
17:33:20 INFO     Found pip-23.0.1 inside /Users/letmeadam/packages/python/3.10.16/package.py. Will use it via /Users/letmeadam/packages/python/3.10.16/platform-osx/arch-arm64/os-osx-15.3.2/bin/python
17:33:20 INFO     Installing 'Qt.py==1.4.1' with pip taken from '/Users/letmeadam/packages/python/3.10.16/platform-osx/arch-arm64/os-osx-15.3.2/bin/python'

Collecting Qt.py==1.4.1
  Downloading Qt.py-1.4.1-py2.py3-none-any.whl.metadata (29 kB)
Collecting types-PySide2 (from Qt.py==1.4.1)
  Using cached types_pyside2-5.15.2.1.7-py2.py3-none-any.whl.metadata (8.1 kB)
Downloading Qt.py-1.4.1-py2.py3-none-any.whl (35 kB)
Using cached types_pyside2-5.15.2.1.7-py2.py3-none-any.whl (572 kB)
Installing collected packages: types-PySide2, Qt.py
Successfully installed Qt.py-1.4.1 types-PySide2-5.15.2.1.7

17:33:22 INFO     Installed [Qt.py-1.4.1] /Users/letmeadam/packages/Qt.py/1.4.1/package.py (b821b6f8a3d04be07cae976a50d84283e2a305ef)
17:33:22 INFO     Installed [types_pyside2-5.15.2.1.7] /Users/letmeadam/packages/types_pyside2/5.15.2.1.7/package.py (b821b6f8a3d04be07cae976a50d84283e2a305ef)
17:33:22 INFO     2 packages were installed.

I don't know the inner working of this mechanism + PyPI well enough, but I can at least see that the distribution name/keys have changed slightly. Here's what rez-pip appears to be finding and comparing that results in that NoneType error:

(1.4.2) File "/opt/rez/lib/python3.10/site-packages/rez/utils/pip.py", line 506, in convert_distlib_to_setuptools; with debug prints
[DEBUG] setuptools_dist: types-pyside2 5.15.2.1.7 (key: types-pyside2) =?= installed_dist.key: qt.py
[DEBUG] setuptools_dist: qt-py 1.4.2 (key: qt-py) =?= installed_dist.key: qt.py
(1.4.1) File "/opt/rez/lib/python3.10/site-packages/rez/utils/pip.py", line 506, in convert_distlib_to_setuptools; with debug prints
[DEBUG] setuptools_dist: types-pyside2 5.15.2.1.7 (key: types-pyside2) =?= installed_dist.key: qt.py
[DEBUG] setuptools_dist: Qt.py 1.4.1 (key: qt.py) =?= installed_dist.key: qt.py

Happy to help if I can, but again I'm not yet familiar with PyPI releasing.

~ Adam

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

    Issue actions

      0