Closed timfel closed 11 months ago
When will the Python plugin for Windows be released?
Hi @tushanfufu - I'm not sure what you mean by plugin? Limited windows support as described in this issue is already merged in master and can be used when building from source. At this point we don't have a timeline when to release Windows binaries, but what works is tested in our CI, so we won't regress on Windows support, and interested users can build it themselves.
I tried to compile a simple python script using the latest GraalVM Native 23.1.0
. But it seemed did not work for me.
D:\code\python\hello-py2exe>vs2022_64
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.7.1
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
D:\code\python\hello-py2exe>cat hello.py
print("Hello World!")
D:\code\python\hello-py2exe>python hello.py
Sep 20, 2023 9:38:34 AM 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)
Hello World!
D:\code\python\hello-py2exe>graalpy --version
Sep 20, 2023 9:38:51 AM 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)
GraalPy 3.10.8 (Oracle GraalVM Native 23.1.0)
D:\code\python\hello-py2exe>graalpy -m standalone native --module hello.py --output hello.exe
Sep 20, 2023 9:39:03 AM 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)
# It seems stucked here for a long time!
@liudonghua123 did you try running with verbose output? the tool needs to download a couple of gigabytes of resources and the native image build itself also takes about 10 minutes on my machine.
Thanks, Add -v
option to the original command show some errors about download files.
It seems the initial setup will download python-language-23.1.0.jar
, python-resources-23.1.0.jar
and so on. I have also tried to use maven to download these files into $HOME/.m2/...
, but it does not use these files.
<dependency>
<groupId>org.graalvm.python</groupId>
<artifactId>python-resources</artifactId>
<version>23.1.0</version>
</dependency>
<dependency>
<groupId>org.graalvm.python</groupId>
<artifactId>python-language</artifactId>
<version>23.1.0</version>
</dependency>
<dependency>
<groupId>org.graalvm.python</groupId>
<artifactId>python-launcher</artifactId>
<version>23.1.0</version>
</dependency>
How can I install (or download to specified location) these files offline?
if all files are in your m2 repo, you can set an environment variable to point to file:///path/to/.m2/repository/
. run libexec/graalpy-polyglot-get --help
to check which variable (sorry, not on my pc anymore)
I encountered the following errors when I execute graalpy -v -m standalone native --module hello.py --output hello.exe
.
Any ideas on how to solve it?
TL;DR
We plan to gradually add support for Windows to GraalPy.
Goals
To allow relevant use-cases on Windows clients (especially embeddings and desktop applications), we will gradually add support for Windows to GraalPy. This includes being able to run pure Python packages as well as on Unix systems, as well as supporting a wide variety of native extensions running natively.
Non-Goals