2,786 questions
2
votes
1
answer
75
views
Can I reuse an instance of PythonInterpreter - perhaps via PyCode object?
I have a script that I load via:
python = new PythonInterpreter();
String script = "script I loaded from somewhere"
try {
python.exec(script);
} catch (Exception e) {
...
0
votes
0
answers
29
views
I keep getting a failure connecting Spring Boot and Python
[update]
Sorry guys! processbuilder works fine, but it was my other problem. It was just that I didn't run it in a virtual environment with the libraries needed for my python code installed... Thanks!
...
0
votes
1
answer
687
views
How to Add Authorization Header for API Scanning in OWASP ZAP with OpenAPI?
I'm using OWASP ZAP to scan an API, and I've successfully imported the OpenAPI definition. However, I'm struggling to configure the Authorization header (specifically for a JWT token) so that it is ...
0
votes
0
answers
242
views
Best Practices for Integrating Python Scripts with Spring Boot via Jython
We're working on a Full Stack Spring Boot project. One of our team members has developed a Python script for web scraping and audio (speech) integration to interact with the data. This script has been ...
0
votes
1
answer
144
views
How can I install Jython in Sketchware?
I'm trying to use Jython in a Sketchware project to run some Python code. I'm not sure how to install and set up Jython in Sketchware. Could someone guide me through the steps required to integrate ...
0
votes
1
answer
117
views
The variable is not bound error while trying to find an element using xpath (JYTHON SUT script) QF test
I have a simple SUT script (JYTHON). I'm trying to perform a basic operation wherein I'm finding a link that has the text "Welcome" and then clicking on it.I checked in the console and the ...
0
votes
1
answer
114
views
Apache POI 4.1.1 - Why is this fillPatternType error showing up?
I am getting the following error:
NameError: global name 'FillPatternType' is not defined
From this code:
oStyle.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.index) oStyle.setFillPattern(...
0
votes
0
answers
29
views
How can i fix the Jython no named module error
Im trying to use java gui in intellij to make a login screen for a instagram scrapper program ran on a python file. However, i need to run the python file from java and so i'm using Jython to try and ...
0
votes
1
answer
107
views
How to validate/ignore optional value while validating it using 'Validate CSV' processor in Apache NiFi?
I'm new to Apache Nifi Community and I got stuck at one point - please help me for the below problem :
In Validate CSV processor I'm giving below schema(schema_used) to validate the CSV input. But, ...
2
votes
2
answers
91
views
Unable to execute -m ensurepip with Jython Jar
I am unable to execute the following command"
java -jar ~/.m2/repository/org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar -m ensurepip
I get the following stack trace. Can anyone please ...
4
votes
1
answer
312
views
How to Add Java Libraries to Jython Project in PyCharm Community Edition?
I'm currently working on a Jython project (using Jython 2.7.3) in PyCharm Community Edition (2023.2.3) and I'm having difficulty configuring Java libraries in the IDE. Although my code runs fine when ...
0
votes
1
answer
767
views
how to configure python in jmeter
i have created a python code to display data in the database, I want to test and see the value of Throughput, Latency, Resource utilization and Error Rate of the code using the jmeter application.
but ...
0
votes
0
answers
111
views
Python modules using Jython
I am trying to make some utils for a Python script that run using Jython 2.7.0 (I could update if needed)
My current problem is pretty simple, i can't import/use my module
For a bit of context, my ...
1
vote
1
answer
55
views
Control Edit Properties of JTable in Jython
How would I be able to set certain columns of a JTable to be editable/not editable in Jython?
My table:
self.table_data = []
data_model = DefaultTableModel(self.table_data, self.colnames)
self.table = ...
2
votes
0
answers
245
views
How to create GUI components using Ghidra Python Scripting?
Is someone here with experience in developing Python script for Ghidra?
It seems that there is not much information about python scripts, especially for GUI components.
I would like to create some GUI ...
0
votes
1
answer
297
views
Error with imports when loading own python extension in burp
I'm currently trying to create my own Burp extension to automatize testing. For this, I want to run script I made before via Burp. I need to import differents libraries for this, such as requests.
To ...
1
vote
1
answer
104
views
Error managing bytes array while trying to code my first Burp extension
I'm currently trying to code my first burp extension in python and I have an error when it comes to managing bytes array which I get from the response. I used a, probably, outdated tutorial which use ...
0
votes
0
answers
49
views
How to create a copy of an array with unusual typecode in Jython
I am using the Java library nom-tam-fits for reading and writing FITS files within Jython 2.7. I need to manipulate the underlying data arrays in the FITS HDUs however I am not able to make copies of ...
2
votes
0
answers
64
views
Install Module pdfminer in Jython
I trying to connect a Python script with a Java project that uses Maven. To achieve this, I need to install a module into the Jython environment. I have tried the following approach.
C:\Users\lordonez\...
2
votes
0
answers
189
views
Type comment list of values
I'm using Jython 2.1, so I cannot use type annotations ({var}: {type}) but I use type comments (# type: {type} for variables and # type: ({param_type}) -> {ret_type} for functions).
I would like to ...
1
vote
0
answers
42
views
Jython jInternalFrame Listener
I was able to get a listener working for a JFrame, but I'm missing something with doing the same thing with a JInternalFrame. I built up some basic code from various samples I found, and I'm hoping ...
-2
votes
2
answers
4k
views
How to get JRE root path for java 17 using "java -verbose -version"
I have a problem that with my automation script where it needs to get the JRE Root path for java versions. I managed to get the path for java 8 and java 11 using java -verbose -version
enter image ...
0
votes
0
answers
51
views
Calling python having imports from 3rd party modules from Java using jython gives ImportModuleError [duplicate]
I am trying to create a maven java project which calls python script that have imports from 3rd party modules like pandas. I have installed Python3 and installed pandas using pip command. I am using ...
0
votes
1
answer
174
views
How can I check that my application is shutdown with QFTest?
I check a Java application with QFTest. I need to prove that the HMI is stopped at Shutdown.
In QFTest, I created a Jython procédure which try to send a socket to the HMI, if it can't, then it means ...
-1
votes
2
answers
80
views
sorting out data from two rows in csv file python
I have two rows of data in row 4 and 5. Row 4 has the titles for the data and row 5 holds the actual data. I want to go ahead and sort them out in any sort of format. I am completely new to python so ...