Questions tagged [jpype]

JPype is an effort to allow python programs full access to java class libraries

JPype is an effort to allow python programs full access to java class libraries

See http://jpype.sourceforge.net/

170 questions
2
votes
1 answer

Adding jar file to jpype makes java crash

I'm using flask-appbuilder to build an application. To submit a form to execute ddl, I add a jar file to jpype when startJVM(), but java always crashes. Below is my code: import jaydebeapi from flask import flash def execute_ddl(dic): def…
dlwlrma
  • 808
  • 2
  • 10
  • 21
2
votes
1 answer

JPype with Java 10

Does anybody know, if JPype works with a Java 10 JRE? I have tested JPype with Java 8 without any problems but I am not able to use it in combination with Java 10. My test setup: Windows 10 64-bit Python 3.5.2 (Anaconda 4.2.0) 64-bit Spyder…
Markus
  • 61
  • 6
2
votes
1 answer

JPype error: import jpype ModuleNotFoundError: No module named 'jpype'

I installed JPype in a correct way and anything is fine and my instalation was succeed but when i run my refactor.py from command prompt i have error that i pointed in title. i hope you can help me for solving this problem. also i have to point that…
saharsa
  • 467
  • 1
  • 7
  • 24
2
votes
1 answer

UcanAccess retrieve stored query sql

I'm trying to retrieve the SQL that makes up a stored query inside an Access database. I'm using a combination of UcanAccess 4.0.2, and jaydebeapi and the ucanaccess console. The ultimate goal is to be able to do the following from a python script…
Mashume
  • 33
  • 7
2
votes
1 answer

Segmentation fault when starting jvm using jpype

I am trying to use java sutime in my Python code. The code has been working fine until yesterday but now ends with Segmentation fault. The problem seems to be coming from jpype.startJVM(getDefaultJVMPath()) This function ends with Segmentation…
2
votes
0 answers

Module error "_jpype.so invalid ELF header" on Amazon Lambda

I am trying to upload python code and modules in Amazon Lambda, my python code accesses Amazon Athena, runs there a query and inserts results in S3. When I save and run my package in Lambda I am getting this error: "errorType": "ImportError", …
2
votes
1 answer

Error importing jpype module

Could someone please advise in resolving the below error? Python 3.5.1 / jpype1-py3 0.5.5.2 installed on 64 bit windows machine. I've cannot find _jtype anywhere in Lib or Lib/site-packages. Regards Steve >>> import jpype Traceback (most recent…
swsupp
  • 21
  • 1
  • 2
2
votes
0 answers

Using PayPal classic SDKs in Django through JPype

I want to send automated payments using the PayPal APIs. As far as I know, currently there are only 2 ways to do it: Using the Payouts Endpoints of the modern REST APIs Using the Adaptative Payments from the "classic" APIs The preferred option…
lordscales91
  • 423
  • 1
  • 8
  • 22
2
votes
1 answer

JPype / Java - Initialize with, or get, remaining heap space

We have software written in Python, which uses JPype to call Java, which performs various resource heavy calculations / report building. We originally assigned 800mb of heap space when starting the JVM. The java side is fully multithreaded and will…
Adam Saunders
  • 330
  • 1
  • 4
  • 14
2
votes
1 answer

Calling a jar file from Python using JPype-total newbie query

So I have been using subprocess.call to run a jar file from Python as so: subprocess.call(['java','-jar','jarFile.jar',-a','input_file','output_file']) where it writes the result to an external output_file file. and -a is an option. I now want to…
kat
  • 163
  • 7
2
votes
0 answers

How to install jpype1(from boilerpipe) library from python33?

I am trying to install python library boilerpipe i.e. pip install boilerpipe but i am getting error i.e command 'gcc' failed with exit status 1 So what can i do fot this error?
Prush
  • 517
  • 1
  • 6
  • 21
2
votes
2 answers

JPype's properties access shadows method with property name

How can I access a Java method named next() when the same class has a getNext() method? JPype has the feature to give you access to bean properties (get-Methods without a parameter) using just the property name. So if you have a class with a method…
bastian
  • 1,122
  • 11
  • 23
2
votes
0 answers

Trouble by running boilerpipe library in python

I'have tried to use boilerpipe library on python aiming to extract text from pages for a college project. I created a simple code to make the extraction that is: from boilerpipe.extract import Extractor def Article(url): extractor =…
2
votes
2 answers

JPype won't compile properly

So I am having trouble compiling a very simple python script using JPype. My code goes like: from jpype import * startJVM(getDefaultJVMPath(), "-ea") java.lang.System.out.println("hello world") shutdownJVM() and when I run it I receive an error…
dkea
  • 690
  • 1
  • 9
  • 24
2
votes
1 answer

Can't install JPype on Ubuntu 12.04

I've consulted this: Cannot install JPype on ubuntu 12.04 64 bit And I'm following the tutorial here: https://github.com/johanlundberg/neo4j-django-tutorial It seems I'm still having a problem installing JPype, despite having done both the things in…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
1 2
3
11 12