fix(env): ensure whl installer uses writable path #1260
tests.yaml
on: pull_request
Annotations
89 errors and 2 warnings
Ubuntu (Python 3.10) / pytest (poetry-plugin-export)
Process completed with exit code 1.
|
Ubuntu (Python 3.9) / pytest (poetry-plugin-export)
Process completed with exit code 1.
|
macOS aarch64 (Python 3.10) / pytest (poetry-plugin-export)
Process completed with exit code 1.
|
Windows (Python 3.10) / pytest (poetry-plugin-export)
Process completed with exit code 1.
|
Ubuntu (Python 3.10) / pytest:
tests/inspection/test_info.py#L392
test_info_setup_missing_mandatory_should_trigger_pep517[version]
poetry.utils.env.exceptions.EnvCommandError: Command ['/tmp/tmp6s_03s_6/.venv/bin/python', '-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: /tmp/tmp6s_03s_6/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Ubuntu (Python 3.10) / pytest:
tests/inspection/test_info.py#L193
test_info_from_sdist_no_pkg_info
poetry.utils.env.exceptions.EnvCommandError: Command ['/tmp/tmp83pk_i9q/.venv/bin/python', '-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: /tmp/tmp83pk_i9q/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Ubuntu (Python 3.10) / pytest:
tests/utils/env/test_env_manager.py#L1132
test_create_venv_fails_if_current_python_version_is_not_supported
poetry.utils.env.exceptions.EnvCommandError: Command ['/opt/hostedtoolcache/Python/3.10.16/x64/bin/python3.10', '-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: /opt/hostedtoolcache/Python/3.10.16/x64/bin/python3.10 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Ubuntu (Python 3.10) / pytest:
tests/inspection/test_info.py#L373
test_info_setup_complex_calls_script
poetry.utils.env.exceptions.EnvCommandError: Command ['/tmp/tmpfq29pm8f/.venv/bin/python', '-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: /tmp/tmpfq29pm8f/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Ubuntu (Python 3.10) / pytest:
tests/inspection/test_info.py#L367
test_info_setup_complex_pep517_legacy
poetry.utils.env.exceptions.EnvCommandError: Command ['/tmp/tmpv2drjll5/.venv/bin/python', '-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: /tmp/tmpv2drjll5/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Ubuntu (Python 3.10) / pytest:
tests/inspection/test_info.py#L392
test_info_setup_missing_mandatory_should_trigger_pep517[name]
poetry.utils.env.exceptions.EnvCommandError: Command ['/tmp/tmp044wijjm/.venv/bin/python', '-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: /tmp/tmp044wijjm/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Ubuntu (Python 3.10) / pytest:
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.
|
Ubuntu (Python 3.10) / pytest:
tests/inspection/test_info.py#L331
test_info_setup_simple
poetry.utils.env.exceptions.EnvCommandError: Command ['/tmp/tmp6ton0_8c/.venv/bin/python', '-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: /tmp/tmp6ton0_8c/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Ubuntu (Python 3.10) / pytest:
tests/utils/env/test_env_manager.py#L566
test_get_venv_with_venv_folder_present[True]
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.
|
Ubuntu (Python 3.10) / pytest:
tests/inspection/test_info.py#L338
test_info_setup_complex
poetry.utils.env.exceptions.EnvCommandError: Command ['/tmp/tmpzcifr3on/.venv/bin/python', '-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: /tmp/tmpzcifr3on/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Ubuntu (Python 3.9) / pytest:
tests/repositories/test_legacy_repository.py#L501
test_package_partial_yank
poetry.utils.env.exceptions.EnvCommandError: Command ['/tmp/tmp3yrt461t/.venv/bin/python', '-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: /tmp/tmp3yrt461t/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Ubuntu (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[self_and_other]
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.
|
Ubuntu (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[None]
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.
|
Ubuntu (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L138
test_remove_multiple
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.
|
Ubuntu (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L56
test_remove_by_name
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.
|
Ubuntu (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[self]
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.
|
Ubuntu (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L150
test_remove_in_project
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.
|
Ubuntu (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[empty]
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.
|
Ubuntu (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[other]
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.
|
Ubuntu (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L122
test_remove_all_and_version
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.
|
macOS aarch64 (Python 3.10) / pytest:
tests/console/commands/test_show.py#L1022
test_show_outdated_local_dependencies[project_with_local_dependencies-required_fixtures0]
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpj6tg3ne5/.venv/bin/python', '-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: /private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpj6tg3ne5/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.10) / pytest:
tests/puzzle/test_solver.py#L3367
test_solver_ignores_explicit_repo_for_transitive_dependencies
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpbf24c5ke/.venv/bin/python', '-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: /private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpbf24c5ke/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.10) / pytest:
tests/puzzle/test_solver.py#L3219
test_solver_does_not_choose_from_supplemental_repository_by_default
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpx0m1axg4/.venv/bin/python', '-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: /private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpx0m1axg4/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.10) / pytest:
tests/console/commands/env/test_list.py#L60
test_in_project_venv
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.10/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.10) / pytest:
tests/console/commands/env/test_list.py#L52
test_activated
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.10/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.10) / pytest:
tests/puzzle/test_solver.py#L3271
test_solver_chooses_from_supplemental_if_explicit
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpg0y2byzb/.venv/bin/python', '-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: /private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpg0y2byzb/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.10) / pytest:
tests/console/commands/env/test_list.py#L41
test_none_activated
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.10/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.10) / pytest:
tests/console/commands/env/test_list.py#L76
test_in_project_venv_is_false
poetry.utils.env.exceptions.EnvCommandError: Command ['/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10', '-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: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.10) / pytest:
tests/console/commands/env/test_list.py#L68
test_in_project_venv_no_explicit_config
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.10/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.10) / pytest:
tests/repositories/test_legacy_repository.py#L455
test_get_package_retrieves_packages_with_no_hashes
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpm4r9ome6/.venv/bin/python', '-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: /private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpm4r9ome6/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Windows (Python 3.9) / pytest (poetry-plugin-export)
Process completed with exit code 1.
|
Windows (Python 3.10) / pytest:
tests\utils\env\test_env_manager.py#L566
test_get_venv_with_venv_folder_present[None]
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.
|
Windows (Python 3.10) / pytest:
tests\utils\env\test_env_manager.py#L938
test_create_venv_finds_no_python_executable
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\hostedtoolcache\\windows\\Python\\3.10.11\\x64\\python.exe', '-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: C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Windows (Python 3.10) / pytest:
tests\utils\env\test_env.py#L338
test_env_no_pip[flags0-packages0]
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_env_no_pip_flags0_package0\\venv\\Scripts\\python.exe', '-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: C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Windows (Python 3.10) / pytest:
tests\utils\env\test_env.py#L338
test_env_no_pip[flags2-packages2]
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_env_no_pip_flags2_package0\\venv\\Scripts\\python.exe', '-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: C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Windows (Python 3.10) / pytest:
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.
|
Windows (Python 3.10) / pytest:
tests\utils\env\test_env.py#L510
test_command_from_bin_preserves_relative_path
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\hostedtoolcache\\windows\\Python\\3.10.11\\x64\\python.exe', '-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: C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Windows (Python 3.10) / pytest:
tests\utils\env\test_env.py#L96
test_env_get_supported_tags_matches_inside_virtualenv
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_env_get_supported_tags_ma0\\Virtual Env\\Scripts\\python.exe', '-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: C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Windows (Python 3.10) / pytest:
tests\utils\env\test_env.py#L386
test_env_finds_the_correct_executables_for_generic_env
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_env_finds_the_correct_exe0\\Virtual Env\\Scripts\\python.exe', '-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: C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Windows (Python 3.10) / pytest:
tests\utils\env\test_env.py#L274
test_env_system_packages[True]
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_env_system_packages_True_0\\venv\\Scripts\\python.exe', '-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: C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Windows (Python 3.10) / pytest:
tests\utils\env\test_env.py#L76
test_virtualenvs_with_spaces_in_their_path_work_as_expected
poetry.utils.env.exceptions.EnvCommandError: Command ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw0\\test_virtualenvs_with_spaces_i0\\Virtual Env\\Scripts\\python.exe', '-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: C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Windows (Python 3.9) / pytest:
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.
|
Windows (Python 3.9) / pytest:
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.
|
Windows (Python 3.9) / pytest:
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.
|
Windows (Python 3.9) / pytest:
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.
|
Windows (Python 3.9) / pytest:
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.
|
Windows (Python 3.9) / pytest:
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.
|
Windows (Python 3.9) / pytest:
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.
|
Windows (Python 3.9) / pytest:
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.
|
Windows (Python 3.9) / pytest:
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.
|
Windows (Python 3.9) / pytest:
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.
|
macOS aarch64 (Python 3.9) / pytest (poetry-plugin-export)
Process completed with exit code 1.
|
macOS x86_64 (Python 3.10) / pytest (poetry-plugin-export)
Process completed with exit code 1.
|
macOS aarch64 (Python 3.9) / pytest:
tests/repositories/test_installed_repository.py#L435
test_system_site_packages[True]
poetry.utils.env.exceptions.EnvCommandError: Command ['/private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_system_site_packages_True0/venv/bin/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: /private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_system_site_packages_True0/venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.9) / pytest:
tests/repositories/test_installed_repository.py#L482
test_system_site_packages_source_type
poetry.utils.env.exceptions.EnvCommandError: Command ['/private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_system_site_packages_sour0/venv/bin/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: /private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_system_site_packages_sour0/venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.9) / pytest:
tests/repositories/test_installed_repository.py#L435
test_system_site_packages[False]
poetry.utils.env.exceptions.EnvCommandError: Command ['/private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_system_site_packages_Fals0/venv/bin/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: /private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_system_site_packages_Fals0/venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[None]
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.9/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[self_and_other]
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.9/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[self]
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.9/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[empty]
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.9/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.9) / pytest:
tests/puzzle/test_solver.py#L3367
test_solver_ignores_explicit_repo_for_transitive_dependencies
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpml8xadke/.venv/bin/python', '-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: /private/var/folders/84/5079cppj57s0lzywhyzcxkjc0000gn/T/tmpml8xadke/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[other]
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.9/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS aarch64 (Python 3.9) / pytest:
tests/console/commands/env/test_remove.py#L138
test_remove_multiple
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: /Users/runner/Library/Caches/pypoetry/virtualenvs/poetry--2IDkNy2-py3.9/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L56
test_remove_by_name
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.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[None]
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.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[other]
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.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[self_and_other]
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.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[empty]
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.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L150
test_remove_in_project
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.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L97
test_remove_all[self]
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.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L163
test_remove_in_project_all
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.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L122
test_remove_all_and_version
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.
|
macOS x86_64 (Python 3.10) / pytest:
tests/console/commands/env/test_remove.py#L138
test_remove_multiple
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.
|
macOS x86_64 (Python 3.9) / pytest (poetry-plugin-export)
Process completed with exit code 1.
|
macOS x86_64 (Python 3.9) / pytest:
tests/puzzle/test_solver.py#L3271
test_solver_chooses_from_supplemental_if_explicit
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmpgx6tkics/.venv/bin/python', '-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: /var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmpgx6tkics/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS x86_64 (Python 3.9) / pytest:
tests/puzzle/test_solver.py#L3367
test_solver_ignores_explicit_repo_for_transitive_dependencies
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmpcrsv7onw/.venv/bin/python', '-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: /var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmpcrsv7onw/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS x86_64 (Python 3.9) / pytest:
tests/puzzle/test_solver.py#L3219
test_solver_does_not_choose_from_supplemental_repository_by_default
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmptkgg9tce/.venv/bin/python', '-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: /var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmptkgg9tce/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS x86_64 (Python 3.9) / pytest:
tests/utils/env/test_env_manager.py#L566
test_get_venv_with_venv_folder_present[False]
poetry.utils.env.exceptions.EnvCommandError: Command ['/Users/runner/hostedtoolcache/Python/3.9.21/x64/bin/python3.9', '-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: /Users/runner/hostedtoolcache/Python/3.9.21/x64/bin/python3.9 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS x86_64 (Python 3.9) / pytest:
tests/console/commands/test_show.py#L1022
test_show_outdated_local_dependencies[project_with_local_dependencies-required_fixtures0]
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmpouzdgecr/.venv/bin/python', '-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: /var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmpouzdgecr/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS x86_64 (Python 3.9) / pytest:
tests/utils/env/test_env_manager.py#L566
test_get_venv_with_venv_folder_present[True]
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.
|
macOS x86_64 (Python 3.9) / pytest:
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.
|
macOS x86_64 (Python 3.9) / pytest:
tests/utils/env/test_env_manager.py#L1132
test_create_venv_fails_if_current_python_version_is_not_supported
poetry.utils.env.exceptions.EnvCommandError: Command ['/Users/runner/hostedtoolcache/Python/3.9.21/x64/bin/python3.9', '-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: /Users/runner/hostedtoolcache/Python/3.9.21/x64/bin/python3.9 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS x86_64 (Python 3.9) / pytest:
tests/repositories/test_legacy_repository.py#L455
test_get_package_retrieves_packages_with_no_hashes
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmpxwnimi2u/.venv/bin/python', '-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: /var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmpxwnimi2u/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
macOS x86_64 (Python 3.9) / pytest:
tests/repositories/test_legacy_repository.py#L138
test_get_package_information_fallback_read_setup
poetry.utils.env.exceptions.EnvCommandError: Command ['/var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmputlg0o3f/.venv/bin/python', '-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: /var/folders/74/9jx6f7bx5z97c058p_nysj740000gn/T/tmputlg0o3f/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Status
Process completed with exit code 1.
|
Detect changed files
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Status
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|