Skip to content

venv created from virtualenv seeded graalpy does not work on Windows #491

@timfel

Description

@timfel

To reproduce:

D:\> python3
Python 3.11.7 (tags/v3.11.7:fa7a6f2, Dec  4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
D:\> python3 -m pip install virtualenv
...
D:\> python3 -m virtualenv --activators= --no-periodic-update --pip=25.0.1 --no-setuptools --no-wheel --python 'D:\.pyenv\pyenv-win\versions\graalpy-24.2.0-windows-amd64\bin\graalpy.exe' graalpy_from_virtualenv
created virtual environment GraalVM3.11.7.final.0-64 in 1474ms
  creator GraalPyWindows(dest=D:\graalpy_from_virtualenv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=25.0.1, via=copy, app_data_dir=C:\Users\timfe\AppData\Local\pypa\virtualenv)
    added seed packages: pip==25.0.1
D:\> .\graalpy_from_virtualenv\Scripts\graalpy.exe
Apr 02, 2025 4:29:46 PM org.graalvm.shadowed.org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
Python 3.11.7 (Wed Mar 05 02:52:59 PST 2025)
[Graal, Oracle GraalVM, Java 24 (amd64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
D:\> .\graalpy_from_virtualenv\Scripts\graalpy.exe -m venv graalpy_venv_from_virtualenv --without-pip
Apr 02, 2025 4:30:06 PM org.graalvm.shadowed.org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
D:\> .\graalpy_venv_from_virtualenv\Scripts\graalpy.exe
Apr 02, 2025 4:30:14 PM org.graalvm.shadowed.org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
[To redirect Truffle log output to a file use one of the following options:
* '--log.file=<path>' if the option is passed using a guest language launcher.
* '-Dpolyglot.log.file=<path>' if the option is passed using the host Java launcher.
* Configure logging using the polyglot embedding API.]
[python::PythonContext] WARNING: could not determine Graal.Python's core path - you may need to pass --python.CoreHome.
[python::PythonContext] WARNING: could not determine Graal.Python's sys prefix path - you may need to pass --python.SysPrefix.
[python::PythonContext] WARNING: could not determine Graal.Python's standard library path. You need to pass --python.StdLibHome if you want to use the standard library.
[python::PythonContext] WARNING: could not determine Graal.Python's C API library path. You need to pass --python.CAPI if you want to use the C extension modules.
[python::PythonContext] WARNING: could not determine Graal.Python's C API library path. You need to pass --python.CAPI if you want to use the C extension modules.
[python::PythonContext] WARNING: could not determine Graal.Python's JNI library. You need to pass --python.JNILibrary if you want to run, for example, binary HPy extension modules.
[python::PythonContext] WARNING: could not determine Graal.Python's C API library path. You need to pass --python.CAPI if you want to use the C extension modules.
[python::PythonContext] WARNING: could not determine Graal.Python's C API library path. You need to pass --python.CAPI if you want to use the C extension modules.
[python::PythonContext] WARNING: could not determine Graal.Python's JNI library. You need to pass --python.JNILibrary if you want to run, for example, binary HPy extension modules.
Python 3.11.7 (Wed Mar 05 02:52:59 PST 2025)
[Graal, Oracle GraalVM, Java 24 (amd64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

Related to pypa/cibuildwheel#1538

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions