fix(env): ensure whl installer uses writable path #1260
Annotations
10 errors
Run poetry run pytest --integration -v:
tests\inspection\test_info.py#L392
test_info_setup_missing_mandatory_should_trigger_pep517[name]
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpdwteftf4\\.venv\\Scripts\\python.exe', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport os\nimport platform\nimport sys\nimport sysconfig\n\nINTERPRETER_SHORT_NAMES = {\n "python": "py",\n "cpython": "cp",\n "pypy": "pp",\n "ironpython": "ip",\n "jython": "jy",\n}\n\n\ndef interpreter_version():\n version = sysconfig.get_config_var("interpreter_version")\n if version:\n version = str(version)\n else:\n version = _version_nodot(sys.version_info[:2])\n\n return version\n\n\ndef _version_nodot(version):\n return "".join(map(str, version))\n\n\nif hasattr(sys, "implementation"):\n info = sys.implementation.version\n iver = "{0.major}.{0.minor}.{0.micro}".format(info)\n kind = info.releaselevel\n if kind != "final":\n iver += kind[0] + str(info.serial)\n\n implementation_name = sys.implementation.name\nelse:\n iver = "0"\n implementation_name = platform.python_implementation().lower()\n\nenv = {\n "implementation_name": implementation_name,\n "implementation_version": iver,\n "os_name": os.name,\n "platform_machine": platform.machine(),\n "platform_release": platform.release(),\n "platform_system": platform.system(),\n "platform_version": platform.version(),\n "python_full_version": platform.python_version().rstrip("+"),\n "platform_python_implementation": platform.python_implementation(),\n "python_version": ".".join(platform.python_version_tuple()[:2]),\n "sys_platform": sys.platform,\n "version_info": tuple(sys.version_info),\n # Extra information\n "interpreter_name": INTERPRETER_SHORT_NAMES.get(\n implementation_name, implementation_name\n ),\n "interpreter_version": interpreter_version(),\n}\n\nprint(json.dumps(env))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests\inspection\test_info.py#L373
test_info_setup_complex_calls_script
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmppkwcuwul\\.venv\\Scripts\\python.exe', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport os\nimport platform\nimport sys\nimport sysconfig\n\nINTERPRETER_SHORT_NAMES = {\n "python": "py",\n "cpython": "cp",\n "pypy": "pp",\n "ironpython": "ip",\n "jython": "jy",\n}\n\n\ndef interpreter_version():\n version = sysconfig.get_config_var("interpreter_version")\n if version:\n version = str(version)\n else:\n version = _version_nodot(sys.version_info[:2])\n\n return version\n\n\ndef _version_nodot(version):\n return "".join(map(str, version))\n\n\nif hasattr(sys, "implementation"):\n info = sys.implementation.version\n iver = "{0.major}.{0.minor}.{0.micro}".format(info)\n kind = info.releaselevel\n if kind != "final":\n iver += kind[0] + str(info.serial)\n\n implementation_name = sys.implementation.name\nelse:\n iver = "0"\n implementation_name = platform.python_implementation().lower()\n\nenv = {\n "implementation_name": implementation_name,\n "implementation_version": iver,\n "os_name": os.name,\n "platform_machine": platform.machine(),\n "platform_release": platform.release(),\n "platform_system": platform.system(),\n "platform_version": platform.version(),\n "python_full_version": platform.python_version().rstrip("+"),\n "platform_python_implementation": platform.python_implementation(),\n "python_version": ".".join(platform.python_version_tuple()[:2]),\n "sys_platform": sys.platform,\n "version_info": tuple(sys.version_info),\n # Extra information\n "interpreter_name": INTERPRETER_SHORT_NAMES.get(\n implementation_name, implementation_name\n ),\n "interpreter_version": interpreter_version(),\n}\n\nprint(json.dumps(env))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests\inspection\test_info.py#L392
test_info_setup_missing_mandatory_should_trigger_pep517[version]
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpq8873ik9\\.venv\\Scripts\\python.exe', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport os\nimport platform\nimport sys\nimport sysconfig\n\nINTERPRETER_SHORT_NAMES = {\n "python": "py",\n "cpython": "cp",\n "pypy": "pp",\n "ironpython": "ip",\n "jython": "jy",\n}\n\n\ndef interpreter_version():\n version = sysconfig.get_config_var("interpreter_version")\n if version:\n version = str(version)\n else:\n version = _version_nodot(sys.version_info[:2])\n\n return version\n\n\ndef _version_nodot(version):\n return "".join(map(str, version))\n\n\nif hasattr(sys, "implementation"):\n info = sys.implementation.version\n iver = "{0.major}.{0.minor}.{0.micro}".format(info)\n kind = info.releaselevel\n if kind != "final":\n iver += kind[0] + str(info.serial)\n\n implementation_name = sys.implementation.name\nelse:\n iver = "0"\n implementation_name = platform.python_implementation().lower()\n\nenv = {\n "implementation_name": implementation_name,\n "implementation_version": iver,\n "os_name": os.name,\n "platform_machine": platform.machine(),\n "platform_release": platform.release(),\n "platform_system": platform.system(),\n "platform_version": platform.version(),\n "python_full_version": platform.python_version().rstrip("+"),\n "platform_python_implementation": platform.python_implementation(),\n "python_version": ".".join(platform.python_version_tuple()[:2]),\n "sys_platform": sys.platform,\n "version_info": tuple(sys.version_info),\n # Extra information\n "interpreter_name": INTERPRETER_SHORT_NAMES.get(\n implementation_name, implementation_name\n ),\n "interpreter_version": interpreter_version(),\n}\n\nprint(json.dumps(env))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests\utils\env\test_env_manager.py#L614
test_list
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests\inspection\test_info.py#L338
test_info_setup_complex
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpb1q9ofyk\\.venv\\Scripts\\python.exe', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport os\nimport platform\nimport sys\nimport sysconfig\n\nINTERPRETER_SHORT_NAMES = {\n "python": "py",\n "cpython": "cp",\n "pypy": "pp",\n "ironpython": "ip",\n "jython": "jy",\n}\n\n\ndef interpreter_version():\n version = sysconfig.get_config_var("interpreter_version")\n if version:\n version = str(version)\n else:\n version = _version_nodot(sys.version_info[:2])\n\n return version\n\n\ndef _version_nodot(version):\n return "".join(map(str, version))\n\n\nif hasattr(sys, "implementation"):\n info = sys.implementation.version\n iver = "{0.major}.{0.minor}.{0.micro}".format(info)\n kind = info.releaselevel\n if kind != "final":\n iver += kind[0] + str(info.serial)\n\n implementation_name = sys.implementation.name\nelse:\n iver = "0"\n implementation_name = platform.python_implementation().lower()\n\nenv = {\n "implementation_name": implementation_name,\n "implementation_version": iver,\n "os_name": os.name,\n "platform_machine": platform.machine(),\n "platform_release": platform.release(),\n "platform_system": platform.system(),\n "platform_version": platform.version(),\n "python_full_version": platform.python_version().rstrip("+"),\n "platform_python_implementation": platform.python_implementation(),\n "python_version": ".".join(platform.python_version_tuple()[:2]),\n "sys_platform": sys.platform,\n "version_info": tuple(sys.version_info),\n # Extra information\n "interpreter_name": INTERPRETER_SHORT_NAMES.get(\n implementation_name, implementation_name\n ),\n "interpreter_version": interpreter_version(),\n}\n\nprint(json.dumps(env))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests\inspection\test_info.py#L331
test_info_setup_simple
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpl_5h29hr\\.venv\\Scripts\\python.exe', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport os\nimport platform\nimport sys\nimport sysconfig\n\nINTERPRETER_SHORT_NAMES = {\n "python": "py",\n "cpython": "cp",\n "pypy": "pp",\n "ironpython": "ip",\n "jython": "jy",\n}\n\n\ndef interpreter_version():\n version = sysconfig.get_config_var("interpreter_version")\n if version:\n version = str(version)\n else:\n version = _version_nodot(sys.version_info[:2])\n\n return version\n\n\ndef _version_nodot(version):\n return "".join(map(str, version))\n\n\nif hasattr(sys, "implementation"):\n info = sys.implementation.version\n iver = "{0.major}.{0.minor}.{0.micro}".format(info)\n kind = info.releaselevel\n if kind != "final":\n iver += kind[0] + str(info.serial)\n\n implementation_name = sys.implementation.name\nelse:\n iver = "0"\n implementation_name = platform.python_implementation().lower()\n\nenv = {\n "implementation_name": implementation_name,\n "implementation_version": iver,\n "os_name": os.name,\n "platform_machine": platform.machine(),\n "platform_release": platform.release(),\n "platform_system": platform.system(),\n "platform_version": platform.version(),\n "python_full_version": platform.python_version().rstrip("+"),\n "platform_python_implementation": platform.python_implementation(),\n "python_version": ".".join(platform.python_version_tuple()[:2]),\n "sys_platform": sys.platform,\n "version_info": tuple(sys.version_info),\n # Extra information\n "interpreter_name": INTERPRETER_SHORT_NAMES.get(\n implementation_name, implementation_name\n ),\n "interpreter_version": interpreter_version(),\n}\n\nprint(json.dumps(env))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests\inspection\test_info.py#L367
test_info_setup_complex_pep517_legacy
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp611sp594\\.venv\\Scripts\\python.exe', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport os\nimport platform\nimport sys\nimport sysconfig\n\nINTERPRETER_SHORT_NAMES = {\n "python": "py",\n "cpython": "cp",\n "pypy": "pp",\n "ironpython": "ip",\n "jython": "jy",\n}\n\n\ndef interpreter_version():\n version = sysconfig.get_config_var("interpreter_version")\n if version:\n version = str(version)\n else:\n version = _version_nodot(sys.version_info[:2])\n\n return version\n\n\ndef _version_nodot(version):\n return "".join(map(str, version))\n\n\nif hasattr(sys, "implementation"):\n info = sys.implementation.version\n iver = "{0.major}.{0.minor}.{0.micro}".format(info)\n kind = info.releaselevel\n if kind != "final":\n iver += kind[0] + str(info.serial)\n\n implementation_name = sys.implementation.name\nelse:\n iver = "0"\n implementation_name = platform.python_implementation().lower()\n\nenv = {\n "implementation_name": implementation_name,\n "implementation_version": iver,\n "os_name": os.name,\n "platform_machine": platform.machine(),\n "platform_release": platform.release(),\n "platform_system": platform.system(),\n "platform_version": platform.version(),\n "python_full_version": platform.python_version().rstrip("+"),\n "platform_python_implementation": platform.python_implementation(),\n "python_version": ".".join(platform.python_version_tuple()[:2]),\n "sys_platform": sys.platform,\n "version_info": tuple(sys.version_info),\n # Extra information\n "interpreter_name": INTERPRETER_SHORT_NAMES.get(\n implementation_name, implementation_name\n ),\n "interpreter_version": interpreter_version(),\n}\n\nprint(json.dumps(env))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests\inspection\test_info.py#L193
test_info_from_sdist_no_pkg_info
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp6n7qffik\\.venv\\Scripts\\python.exe', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport os\nimport platform\nimport sys\nimport sysconfig\n\nINTERPRETER_SHORT_NAMES = {\n "python": "py",\n "cpython": "cp",\n "pypy": "pp",\n "ironpython": "ip",\n "jython": "jy",\n}\n\n\ndef interpreter_version():\n version = sysconfig.get_config_var("interpreter_version")\n if version:\n version = str(version)\n else:\n version = _version_nodot(sys.version_info[:2])\n\n return version\n\n\ndef _version_nodot(version):\n return "".join(map(str, version))\n\n\nif hasattr(sys, "implementation"):\n info = sys.implementation.version\n iver = "{0.major}.{0.minor}.{0.micro}".format(info)\n kind = info.releaselevel\n if kind != "final":\n iver += kind[0] + str(info.serial)\n\n implementation_name = sys.implementation.name\nelse:\n iver = "0"\n implementation_name = platform.python_implementation().lower()\n\nenv = {\n "implementation_name": implementation_name,\n "implementation_version": iver,\n "os_name": os.name,\n "platform_machine": platform.machine(),\n "platform_release": platform.release(),\n "platform_system": platform.system(),\n "platform_version": platform.version(),\n "python_full_version": platform.python_version().rstrip("+"),\n "platform_python_implementation": platform.python_implementation(),\n "python_version": ".".join(platform.python_version_tuple()[:2]),\n "sys_platform": sys.platform,\n "version_info": tuple(sys.version_info),\n # Extra information\n "interpreter_name": INTERPRETER_SHORT_NAMES.get(\n implementation_name, implementation_name\n ),\n "interpreter_version": interpreter_version(),\n}\n\nprint(json.dumps(env))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests\utils\test_isolated_build.py#L65
test_isolated_env_install_discards_requirements_not_needed_by_env
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmptp_k98ip\\.venv\\Scripts\\python.exe', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport sys\n\nprint(json.dumps(sys.path))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests\utils\test_isolated_build.py#L115
test_isolated_env_install_failure
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpn29x1cpk\\.venv\\Scripts\\python.exe', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport os\nimport platform\nimport sys\nimport sysconfig\n\nINTERPRETER_SHORT_NAMES = {\n "python": "py",\n "cpython": "cp",\n "pypy": "pp",\n "ironpython": "ip",\n "jython": "jy",\n}\n\n\ndef interpreter_version():\n version = sysconfig.get_config_var("interpreter_version")\n if version:\n version = str(version)\n else:\n version = _version_nodot(sys.version_info[:2])\n\n return version\n\n\ndef _version_nodot(version):\n return "".join(map(str, version))\n\n\nif hasattr(sys, "implementation"):\n info = sys.implementation.version\n iver = "{0.major}.{0.minor}.{0.micro}".format(info)\n kind = info.releaselevel\n if kind != "final":\n iver += kind[0] + str(info.serial)\n\n implementation_name = sys.implementation.name\nelse:\n iver = "0"\n implementation_name = platform.python_implementation().lower()\n\nenv = {\n "implementation_name": implementation_name,\n "implementation_version": iver,\n "os_name": os.name,\n "platform_machine": platform.machine(),\n "platform_release": platform.release(),\n "platform_system": platform.system(),\n "platform_version": platform.version(),\n "python_full_version": platform.python_version().rstrip("+"),\n "platform_python_implementation": platform.python_implementation(),\n "python_version": ".".join(platform.python_version_tuple()[:2]),\n "sys_platform": sys.platform,\n "version_info": tuple(sys.version_info),\n # Extra information\n "interpreter_name": INTERPRETER_SHORT_NAMES.get(\n implementation_name, implementation_name\n ),\n "interpreter_version": interpreter_version(),\n}\n\nprint(json.dumps(env))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Loading