Comments (3)
Here's a minimal Java source file to reproduce the problem.
package test.jpysegfault;
import org.jpy.PyLib;
import org.jpy.PyObject;
import java.util.Map;
public class Main {
public static void main(String[] args) {
System.setProperty("jpy.pythonLib",
"/home/pont/miniconda3/envs/jpy-38/lib/libpython3.8.so");
System.setProperty("jpy.jpyLib",
"/home/pont/loc/repos/jpy/build/lib.linux-x86_64-3.8/jpy.cpython-38-x86_64-linux-gnu.so");
System.setProperty("jpy.jdlLib",
"/home/pont/loc/repos/jpy/build/lib.linux-x86_64-3.8/jdl.cpython-38-x86_64-linux-gnu.so");
PyLib.startPython();
final Map<PyObject, PyObject> globalsDict = PyLib.getMainGlobals().asDict();
for (Map.Entry<PyObject, PyObject> entry : globalsDict.entrySet()) {
System.out.println("Entry: " + entry.getKey() + " -> " + entry.getValue());
}
PyLib.stopPython();
}
}
from jpy.
Attached: log file generated by running the test script above with JPy_DiagFlags = JPy_DIAG_F_ALL
set in src/main/c/jpy_diag.c
.
from jpy.
@pont-us I came across this bug. Are you aware of any workaround? Thanks!
from jpy.
Related Issues (20)
- PyPI project iris: Does anyone here have access to the account that owns it? (Urgent) HOT 2
- Error: function or method not found
- Configure CI builds for Python 3.4-3.8
- Look into cibuildwheel for automated wheel builds
- Unable to build HOT 2
- macos catalina 10.15.6 (19G2005); gcc error HOT 1
- Python methods not being recongnized when calling them from a java object
- Request for input for JPype HOT 3
- Update readme to state that jpy is not under active development HOT 1
- macOS / Python 3.4 AppVeyor builds failing on openssl installation HOT 1
- Py_free' is invalid in C99 Error HOT 1
- Error in Python interpreter: Type: <class 'SyntaxError'> Value: EOL while scanning string literal (<string>, line 1) Line: <not available> Namespace: <not available> File: <not available> HOT 1
- Compilation error on MacOS and solution
- Java byte array has first 16 bytes incorrect when transformed with numpy.frombuffer in Python
- Error: environment variable "JAVA_HOME" must be set to a JDK (>= v1.7) installation directory HOT 2
- c1: fatal error C1083: Cannot open source file: 'src\main\c\jpy_module.c': No such file or directory HOT 2
- Remove Python 3.4 builds from AppVeyor configuration
- Mac builds failing due to compiler error HOT 2
- jpy not cleanly compiling; with moderate chgs to compile, jpy not passing its own test on MacOS - JAVA 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpy.