Author BjarkeBB
Recipients BjarkeBB
Date 2017-05-08.11:17:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I'm trying to use the carreralib

When I execute the connection from python, it works:
[root@CLOUDCITY ~]# python
Python 2.7.10 (default, Jun 20 2016, 14:45:40) 
[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from carreralib import ControlUnit
>>> cu = ControlUnit('FF:B8:21:1D:DF:7F')
>>> cu.request()
Status(fuel=(0, 0, 0, 0, 0, 0, 0, 0), start=0, mode=2, pit=(False, False, False, False, False, False, False, False), display=8)

But when I try to do the same via Jython, I get the attached exception from the ControlUnit constructor.

My java code:
PythonInterpreter python = new PythonInterpreter();
python.exec("import sys");
python.exec("from carreralib import ControlUnit");
python.exec("cu = ControlUnit('FF:B8:21:1D:DF:7F')");

My project is a spring-boot project, and I use the mvn package:
Date User Action Args
2017-05-08 11:17:24BjarkeBBsetmessageid: <>
2017-05-08 11:17:24BjarkeBBsetrecipients: + BjarkeBB
2017-05-08 11:17:24BjarkeBBlinkissue2590 messages
2017-05-08 11:17:23BjarkeBBcreate