Skip to content

Tag: python

Chaquopy in Android Studio module not found

I have implemented Chaquopy into my Android app to make use of pre-trained Neural Network models in python. Trying to call the python code, I am encountering; “com.chaquo.python.PyException: ModuleNotFoundError: No module named ‘DataLoader’ I am unsure if I have wrongly implemented the file …

Passing parameters from Java to Python using Jython

I am passing string values to a python script using Jython. In my program, I do this several times. However, during a test I am running to see if the class that sends the parameters is working properly, I see that the python script outputs the same string values as the initial inputs. Here is the Java class: …

How to get a jar file from nexus using Jenkins?

I have a Jenkins job which contains 3 parameters: ARTIFACT_ID, GROUP_ID, and APP_VERSION. I would like to use those 3 params to download any specific jar file from Nexus. Note that the Nexus URL is provided in the Jenkins config, so it will automatically know from where to lookup. Do you have an idea how to d…

Call and receive output from Python script in Java?

What’s the easiest way to execute a Python script from Java, and receive the output of that script? I’ve looked for different libraries like Jepp or Jython, but most appear out of date. Another problem with the libraries is that I need to be able to easily include a library with the source code (t…