-
-
Notifications
You must be signed in to change notification settings - Fork 645
Closed as duplicate of#2652
Labels
Description
🐞 bug report
Affected Rule
pip.parse
Is this a regression?
Yes. Although I do not remember which version it was.
Description
Cannot install ibis-framework from pypi using pip.parse.
🔬 Minimal Reproduction
Clone this repo. https://github.com/axbycc-mark/bazel-python-issue
On Windows, run bazel run :requirements.update and then bazel run :main.
🔥 Exception or Error
D:\bazel-python-issue>bazel run :main
INFO: Repository rules_python++pip+pypi_311_ibis_framework instantiated at:
: in
Repository rule whl_library defined at:
C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+/python/private/pypi/whl_library.bzl:469:30: in
ERROR: C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+/python/private/repo_utils.bzl:79:16: An error occurred during the fetch of repository 'rules_python++pip+pypi_311_ibis_framework':
Traceback (most recent call last):
File "C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+/python/private/pypi/whl_library.bzl", line 295, column 36, in _whl_library_impl
pypi_repo_utils.execute_checked(
File "C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+/python/private/pypi/pypi_repo_utils.bzl", line 133, column 38, in _execute_checked
return repo_utils.execute_checked(
File "C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+/python/private/repo_utils.bzl", line 216, column 29, in _execute_checked
return _execute_internal(fail_on_error = True, *args, **kwargs)
File "C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+/python/private/repo_utils.bzl", line 147, column 27, in _execute_internal
return logger.fail((
File "C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+/python/private/repo_utils.bzl", line 89, column 39, in lambda
fail = lambda message_cb: _log(-1, "FAIL", message_cb, fail),
File "C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+/python/private/repo_utils.bzl", line 79, column 16, in _log
printer("\nrules_python:{} {}:".format(
Error in fail:
rules_python:whl_library(@@rules_python++pip+pypi_311_ibis_framework) FAIL: repo.execute: whl_library.ExtractWheel(rules_python++pip+pypi_311_ibis_framework, C:/Users/marki/_bazel_marki/paf6h5og/external/rules_python++pip+pypi_311_ibis_framework/ibis_framework-10.3.1-py3-none-any.whl): end: failure:
command: C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++python+python_3_11_x86_64-pc-windows-msvc/python.exe -m python.private.pypi.whl_installer.wheel_installer --requirement "ibis-framework[duckdb]==10.3.1 --hash=sha256:71919cdbe6eb4f6e916269b4d7a8582c67a20e0098364b3bb2347424a3a67ccf --hash=sha256:8133be78feea2f8a3ecad76067e0164c45c91e058f4c06481277b719ddb0d6f4" --isolated --extra_pip_args "{\"arg\":[]}" --pip_data_exclude "{\"arg\":[]}" --environment "{\"arg\":{}}" --whl-file C:/Users/marki/_bazel_marki/paf6h5og/external/rules_python++pip+pypi_311_ibis_framework/ibis_framework-10.3.1-py3-none-any.whl
return code: 1
working dir:
timeout: 600
environment:
PYTHONPATH="C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__build;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__click;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__colorama;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__importlib_metadata;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__installer;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__more_itertools;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__packaging;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pep517;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pip;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pip_tools;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pyproject_hooks;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__setuptools;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__tomli;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__wheel;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__zipp"
CPPFLAGS=""
===== stderr start =====
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel_installer.py", line 205, in
main()
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel_installer.py", line 160, in main
_extract_wheel(
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel_installer.py", line 121, in _extract_wheel
whl.unzip(installation_dir)
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel.py", line 377, in unzip
installer.install(
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python++internal_deps+pypi__installer\installer\_core.py", line 109, in install
record = destination.write_file(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python++internal_deps+pypi__installer\installer\destinations.py", line 207, in write_file
return self.write_to_fs(scheme, path_, stream, is_executable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python++internal_deps+pypi__installer\installer\destinations.py", line 173, in write_to_fs
with open(target_path, "wb") as f:
^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '.\\site-packages\\ibis\\expr\\operations\\tests\\snapshots\\test_generic\\test_error_message_when_constructing_literal\\call0-missing_a_required_argument\\missing_a_required_argument.txt'
===== stderr end =====
ERROR: no such package '@@rules_python++pip+pypi_311_ibis_framework//':
rules_python:whl_library(@@rules_python++pip+pypi_311_ibis_framework) FAIL: repo.execute: whl_library.ExtractWheel(rules_python++pip+pypi_311_ibis_framework, C:/Users/marki/_bazel_marki/paf6h5og/external/rules_python++pip+pypi_311_ibis_framework/ibis_framework-10.3.1-py3-none-any.whl): end: failure:
command: C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++python+python_3_11_x86_64-pc-windows-msvc/python.exe -m python.private.pypi.whl_installer.wheel_installer --requirement "ibis-framework[duckdb]==10.3.1 --hash=sha256:71919cdbe6eb4f6e916269b4d7a8582c67a20e0098364b3bb2347424a3a67ccf --hash=sha256:8133be78feea2f8a3ecad76067e0164c45c91e058f4c06481277b719ddb0d6f4" --isolated --extra_pip_args "{\"arg\":[]}" --pip_data_exclude "{\"arg\":[]}" --environment "{\"arg\":{}}" --whl-file C:/Users/marki/_bazel_marki/paf6h5og/external/rules_python++pip+pypi_311_ibis_framework/ibis_framework-10.3.1-py3-none-any.whl
return code: 1
working dir:
timeout: 600
environment:
PYTHONPATH="C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__build;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__click;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__colorama;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__importlib_metadata;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__installer;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__more_itertools;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__packaging;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pep517;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pip;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pip_tools;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pyproject_hooks;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__setuptools;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__tomli;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__wheel;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__zipp"
CPPFLAGS=""
===== stderr start =====
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel_installer.py", line 205, in
main()
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel_installer.py", line 160, in main
_extract_wheel(
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel_installer.py", line 121, in _extract_wheel
whl.unzip(installation_dir)
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel.py", line 377, in unzip
installer.install(
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python++internal_deps+pypi__installer\installer\_core.py", line 109, in install
record = destination.write_file(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python++internal_deps+pypi__installer\installer\destinations.py", line 207, in write_file
return self.write_to_fs(scheme, path_, stream, is_executable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python++internal_deps+pypi__installer\installer\destinations.py", line 173, in write_to_fs
with open(target_path, "wb") as f:
^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '.\\site-packages\\ibis\\expr\\operations\\tests\\snapshots\\test_generic\\test_error_message_when_constructing_literal\\call0-missing_a_required_argument\\missing_a_required_argument.txt'
===== stderr end =====
ERROR: C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++pip+pypi/ibis_framework/BUILD.bazel:5:12: @@rules_python++pip+pypi//ibis_framework:pkg depends on @@rules_python++pip+pypi_311_ibis_framework//:pkg in repository @@rules_python++pip+pypi_311_ibis_framework which failed to fetch. no such package '@@rules_python++pip+pypi_311_ibis_framework//':
rules_python:whl_library(@@rules_python++pip+pypi_311_ibis_framework) FAIL: repo.execute: whl_library.ExtractWheel(rules_python++pip+pypi_311_ibis_framework, C:/Users/marki/_bazel_marki/paf6h5og/external/rules_python++pip+pypi_311_ibis_framework/ibis_framework-10.3.1-py3-none-any.whl): end: failure:
command: C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++python+python_3_11_x86_64-pc-windows-msvc/python.exe -m python.private.pypi.whl_installer.wheel_installer --requirement "ibis-framework[duckdb]==10.3.1 --hash=sha256:71919cdbe6eb4f6e916269b4d7a8582c67a20e0098364b3bb2347424a3a67ccf --hash=sha256:8133be78feea2f8a3ecad76067e0164c45c91e058f4c06481277b719ddb0d6f4" --isolated --extra_pip_args "{\"arg\":[]}" --pip_data_exclude "{\"arg\":[]}" --environment "{\"arg\":{}}" --whl-file C:/Users/marki/_bazel_marki/paf6h5og/external/rules_python++pip+pypi_311_ibis_framework/ibis_framework-10.3.1-py3-none-any.whl
return code: 1
working dir:
timeout: 600
environment:
PYTHONPATH="C:/users/marki/_bazel_marki/paf6h5og/external/rules_python+;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__build;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__click;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__colorama;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__importlib_metadata;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__installer;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__more_itertools;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__packaging;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pep517;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pip;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pip_tools;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__pyproject_hooks;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__setuptools;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__tomli;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__wheel;C:/users/marki/_bazel_marki/paf6h5og/external/rules_python++internal_deps+pypi__zipp"
CPPFLAGS=""
===== stderr start =====
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel_installer.py", line 205, in
main()
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel_installer.py", line 160, in main
_extract_wheel(
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel_installer.py", line 121, in _extract_wheel
whl.unzip(installation_dir)
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python+\python\private\pypi\whl_installer\wheel.py", line 377, in unzip
installer.install(
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python++internal_deps+pypi__installer\installer\_core.py", line 109, in install
record = destination.write_file(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python++internal_deps+pypi__installer\installer\destinations.py", line 207, in write_file
return self.write_to_fs(scheme, path_, stream, is_executable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\users\marki\_bazel_marki\paf6h5og\external\rules_python++internal_deps+pypi__installer\installer\destinations.py", line 173, in write_to_fs
with open(target_path, "wb") as f:
^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '.\\site-packages\\ibis\\expr\\operations\\tests\\snapshots\\test_generic\\test_error_message_when_constructing_literal\\call0-missing_a_required_argument\\missing_a_required_argument.txt'
===== stderr end =====
ERROR: Analysis of target '//:main' failed; build aborted: Analysis failed
INFO: Elapsed time: 28.113s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
🌍 Your Environment
Operating System:
Windows 11
Output of bazel version:
Build label: 8.1.1
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Tue Feb 25 18:53:00 2025 (1740509580)
Build timestamp: 1740509580
Build timestamp as int: 1740509580
Rules_python version:
1.2.0
Anything else relevant?