Questions tagged [jython-2.5]

Jython is an open-source implementation of the Python programming language in Java.

Jython is an open-source implementation of the Python programming language in Java. Jython 2.5 succeeded 2.2.1, and brought several enhancements to the language, including a logging package, "with" statements, new Import hooks, and Boolean types.

Sources and Additional Information

What's New in Jython 2.5

102 questions
7
votes
1 answer

Upgrading Jython from 2.2.1 version to 2.5.2, possible risks

We want to upgrade our version of Jython to 2.5.2. After reading documentation and testing, it seems like the only thing we have to do is to add the encoding magic comment in the beginning of each python file, i.e. #encoding=utf-8 It seems too easy…
juankysmith
  • 11,839
  • 5
  • 37
  • 62
5
votes
2 answers

IndexError: index out of range: 7

I am working with an Oracle EPM Product called Financial Data Quality Management Enterprise Edition (FDMEE). I have written a Jython script to parse a data file and push it to a custom table within the FDMEE product schema. It works fine when I am…
Gautam TP
  • 51
  • 2
5
votes
0 answers

Jython Remote debugging Intellij Idea, using Pycharm plugin

Before marking this as a duplicate please read the full thread OS - Windows XP Primary Language - Java Scripting Language - Jython IDE - Intellij Idea Python Plugin - Pycharm I am trying to remote debug my…
Bhushan
  • 2,256
  • 3
  • 22
  • 28
4
votes
0 answers

Jython in Java error: ImportError: No module named

I've read A LOT about this matter but nothing seems to work with me right! I'm using Netbeans 8.0 and Python 2.6.5, Jython 2.5.1 (the default from adding Python and Jython Plugin to netbeans) I'm a mac os x 10.9.3 user I tried to open a new Jython…
Evanescence
  • 729
  • 1
  • 10
  • 25
4
votes
0 answers

import .so files using PythonInterpreter in java

I am facing probs to import .so file using PythonInterpreter from java From python: $ python Python 2.7.3 (default, Apr 10 2013, 06:20:15) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. import…
user2743055
  • 127
  • 8
4
votes
1 answer

Issues understanding how to use Jython

I've just started learning Jython, and I'm having some issues with implementation. I've looked through the Demo files that come with Jython 2.5, and I'm still unsure how to implement Jython to get what I want. Currently, I've got Java code executing…
Dr. Cyanide
  • 520
  • 1
  • 7
  • 21
4
votes
1 answer

setting import module path in Jython - strange behavior

I'm building Java to Jython bridge class. The task I'm trying to solve is to make Jython to look for python modules in my application working directory (also known as program execution directory). I'm doing so by appending…
vvladymyrov
  • 5,715
  • 2
  • 32
  • 50
4
votes
1 answer

Jython 2.5 and virtualenv on windows

I have installed Jython 2.5 on Windows, then setuptools and finally virtualenv (1.8.4) using easy_install. Now I am trying to create a new virtual environment using the following command line : jython…
dry
  • 831
  • 2
  • 8
  • 21
3
votes
1 answer

jython classnotfoundexception even if class file exists

I am using jython and calling some custom Java API and I added all the jars I needed or I am using in my code and jython still complains about one class as it couldnt find (NoClassDefFoundError), I am not sure why, I checked all my jars in path and…
pbathala
  • 1,390
  • 2
  • 18
  • 39
3
votes
1 answer

How to unittest unittest TestCases

I have a unittest.TestCase child, which defines several domain specific assert Checks. I would like to run some unittests to unittest this functionality to control that everything work on future updates. class MyBaseTestCase(unittest.TestCase): …
Vestel
  • 1,005
  • 1
  • 11
  • 25
3
votes
1 answer

Converting a MSSQL varbinary to a base64 string

The goal Take the data in mssql, an image, convert to base64 and embed in an email. Deets I have an image, stored in a varbinary column in a mssql database. 0xFFD8FFE00.... On the other end, I'm querying it out into an ancient Jython environment…
Bmo
  • 1,212
  • 11
  • 34
3
votes
1 answer

Different encoding in Jython's Java and Python level

I'm using Sikuli (see sikuli.org) which uses jython2.5.2. Here is a summary of the class Region on the Java level: public class Region { // < other class methods > public int type(String text) { System.out.println("javadebug:…
JayTheKay
  • 1,463
  • 12
  • 22
2
votes
2 answers

Jython ImportError when embedding into Java on 'xml.dom.minidom'

I have a python script which is processing XML using xml.dom.minidom. When I executed it with Jython by command line (jython myfile.py), everything was fine. But when I tried to do the same thing embedding it into a java application, (I mean reading…
X X
  • 21
  • 1
2
votes
1 answer

How to use "jython-standalone-2.7-b3.jar" in windows 7?

I want to upgrade Jython from "jython2.5.4rc1" to "Jython 2.7-beta3". I have downloaded following two files from "http://www.jython.org/downloads.html": 1. Jython 2.7beta3 - Installer - jython-installer-2.7-b3.jar 2. Jython 2.7beta3 -…
rcubefather
  • 1,534
  • 6
  • 25
  • 49
2
votes
1 answer

Is there a way to instantiate a Python class from Java using Jython *without* making that Python class extend a Java interface?

All of the examples in the Jython documentation here require that the the Python class import the corresponding Java interface, for example: # A python module that implements a Java interface to # create a building object from…
T.D. Smith
  • 984
  • 2
  • 7
  • 22
1
2 3 4 5 6 7