You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2020. It is now read-only.
I was trying to compile and build python code with Numpy library, but I get error.
So I would like to know the scope of current VOC and what libraries it supports.
my code:
from java.lang import System
import numpy as np
JRE version: 12.0.2
JAVA from: Oracle Corporation
Current Classpath: ../dist/Python-3.7-Java-support.b7.jar;.
Exception in thread "main" NameError: name 'version' is not defined
at org.python.java.Module.__getattribute__(Module.java:33)
at python.javainfo.module$import(javainfo.py:7)
at python.javainfo.main(javainfo.py)
Please put some light on it. Thanks.
The text was updated successfully, but these errors were encountered:
Firstly, there are some Python constructs that VOC doesn't currently support. Numpy is fairly sophisticated Python code, and exercises lots of these constructs. We need to fix the bugs and omissions in the VOC compiler
Secondly, very little of the Python standard library has been ported. Numpy uses plenty of the standard library, so we need to port those pieces (and in particular, the pieces written in C) to VOC.
Third, Numpy makes extensive use of C modules - which, as you might predict, don't work great in a Java ecosystem :-) It might be possible to provide a JNI implementation of the CPython C API, but that's something we haven't begun to look at.
So - for now at least, supporting Numpy isn't something that unfortunately is not possible. That might change over time - but it will require a significant investment of time and effort.
Hi,
I was trying to compile and build python code with Numpy library, but I get error.
So I would like to know the scope of current VOC and what libraries it supports.
my code:
from java.lang import System
import numpy as np
I get error like:
Please put some light on it. Thanks.
The text was updated successfully, but these errors were encountered: