All Questions
Tagged with graalpy or graalpython
21 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
55
views
GraalPy interoperability does not recognize classes of plugin in Minecraft Spigot
Following this document, I was able to run Python code in a Java application and access objects of Java in Python code.
When I use the same logic and run it as a Spigot Plugin, it says that the object ...
1
vote
0
answers
144
views
SystemError: NFIUnsatisfiedLinkError: Dynamic loading not supported
i tried to use graalpy in a static-linked native-image on aarch64 linux platform,
after all the obstacles,i finally managed to generate an executable file.
it accept a file path of a python script and ...
0
votes
0
answers
105
views
Graalpy on macOS 15.1 unable to install numpy 1.23.2
I am using graalvm jdk graalvm-jdk-21.0.5+9.1 on MacOS 15.1 and I am trying to install numpy 1.23.2 using graalpy. I can see the following command:
/Users/Ishwardeepsingh/Downloads/chalkgraalpy/...
0
votes
1
answer
217
views
How to make my Java classes visible for Python imports
I'm trying to migrate Python scripts execution in my Java projects from Jython to GraalVM Polyglot. The problem I'm facing that I don't know how to make my Java classes visible for imports from those ...
3
votes
1
answer
256
views
How does one disassemble Python graal bytecode?
I have been considering extending the cross-version python disassembler xdis for Python Graal.
GraalPython provides a Python Code type that is similar to Python's Code type, but the underlying ...
3
votes
1
answer
1k
views
How to add packages to Graalvm python polyglot?
I followed the StackOverflow question Here and the subsequent link https://medium.com/graalvm/truffle-unchained-13887b77b62c in order to setup a working example of running Python from a Spring Boot ...
1
vote
1
answer
226
views
When running python with graalvm (Graalpy) can line numbers be included in errors
I am using python as a scripting language within java using graalvm but when the python script has errors the line number of the error is not reported.
For example the following fails with the message ...
-1
votes
1
answer
211
views
Passing and Returning Java Map to GraalVM python
I want to pass java map to python code and access the map values in python, and then store the results in a map, then access the results in Java. I'm stuck with the first step to pass java map to ...
1
vote
1
answer
713
views
Running Javascript and Python code in a Java 15 application
I'm running Javascript code in my Java 15 application with GraalVM. It is a web application that runs on Tomee. It works fine, and now I also need to run Python code with GraalVM.
What are the ...
1
vote
1
answer
762
views
Module not found if graalpy is packaged in Spring Boot Jar
I'm building a Spring Boot (3 RC1) application with some Python code (GraalVM 22.3). Running the application in dev mode works. After building Jar with Maven I get an error:
Caused by: org.graalvm....
0
votes
1
answer
436
views
Cannot compile Spring Boot to native image with Python language support
I'm trying to build a native image (GraalVM 22.3) from a Spring Boot 3 RC1 application with Python language support on Apple M1. I can build the native image without Python language support. But when ...
0
votes
1
answer
635
views
How to execute a python script in Spring Boot with GraalVM?
I'm struggling executing a python script in a Spring Boot application with GraalVM. The code works without Spring Boot in a simple library. The problem is that there are no members found and ...
1
vote
1
answer
414
views
Importing a local python file in an embedded graalpython script fails
Is it possible to import a local python script in another script that is run from Java using graalpython?
On the Java (Scala) side, the code looks like this:
val context = Context.newBuilder("...
0
votes
1
answer
140
views
How to add package to graalpython known packges list?
graalpython -m ginstall install --help will list packages known to graalpython:
Known packages are pytest, pytest_parallel, py, attrs, pyparsing, packaging, more_itertools, atomicwrites, pluggy, zipp, ...
1
vote
1
answer
943
views
Bundle GraalVM engine and graalpython with Java application
There is a way to run Python scripts that uses packages from Java using GraalVM and its Python module graalpython. Here is example https://github.com/paulvi/graalpython-java-template
I wonder if it is ...