aboutcode-org / aboutcode-org/python-inspector

package resolution fails with TypeError: '<' not supported between instances of 'str' and 'NoneType'

Đang mở
#240 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
23
Fork
28
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

python-inspector --python-version 313 --operating-system linux --json-pdt python-inspector.json --requirement requirements.txt --verbose

returns the following error message:

retrieve package data from pypi:
retrieved package 'pkg:pypi/aiohappyeyeballs@2.6.1'
retrieved package 'pkg:pypi/aiosignal@1.3.2'
retrieved package 'pkg:pypi/annotated-types@0.7.0'
retrieved package 'pkg:pypi/aiohttp@3.11.18'
retrieved package 'pkg:pypi/anyio@4.9.0'
retrieved package 'pkg:pypi/asgiref@3.8.1'
retrieved package 'pkg:pypi/attrs@25.3.0'
retrieved package 'pkg:pypi/azure-common@1.1.28'
Traceback (most recent call last):
File "/home/scheer/.local/lib/python3.12/site-packages/python_inspector/resolve_cli.py", line 259, in resolve_dependencies
resolution_result: Dict = resolver_api(
^^^^^^^^^^^^^
File "/home/scheer/.local/lib/python3.12/site-packages/python_inspector/api.py", line 312, in resolve_dependencies
packages = [pkg.to_dict() for pkg in asyncio.run(gather_pypi_data()) if pkg is not None]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/scheer/.local/lib/python3.12/site-packages/python_inspector/api.py", line 310, in gather_pypi_data
return await asyncio.gather(*[get_pypi_data(package) for package in purls])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scheer/.local/lib/python3.12/site-packages/python_inspector/api.py", line 298, in get_pypi_data
data = await get_pypi_data_from_purl(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scheer/.local/lib/python3.12/site-packages/python_inspector/package_data.py", line 82, in get_pypi_data_from_purl
wheel_url = choose_single_wheel(wheel_urls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/scheer/.local/lib/python3.12/site-packages/python_inspector/package_data.py", line 128, in choose_single_wheel
**wheel_urls.sort(reverse=True)
TypeError: '<' not supported between instances of 'str' and 'NoneType'**

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.