You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have started Ghidra in PyGhidra mode and verified it by running some commands in the console. I have also disabled Jython as I don't use it. Then, I tried to run some Python script I'm developing from the Scripts Manager and realized that it's still using Jython instead of my Python 3.11 installation.
To Reproduce
Run Ghidra in PyGhidra mode.
Disable Jython.
Create a python script in some directory configured to appear in the Ghidra's Script Manager with only the following lines:
importsysprint("Python version", sys.version)
Run the script.
It will print something like the following text, clearly showing that it isn't using PyGhidra but Jython:
('Python version', '2.7.4 (tags/v2.7.4:3f256f4a7, Aug 18 2024, 10:30:53)\n[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)]')
Expected behavior
Running my script using my PyGhidra installation, not Jython.
Environment (please complete the following information):
OS: Ubuntu 22.04.5 LTS
Java Version: JDK 23
Ghidra Version: 11.3.1
Ghidra Origin: Github release
The text was updated successfully, but these errors were encountered:
Thank you very much! Indeed, it fixes the issue.
However, it would be cool if, by default, when running in PyGhidra mode, it would use PyGhidra instead of Jython.
However, it would be cool if, by default, when running in PyGhidra mode, it would use PyGhidra instead of Jython.
I was waiting for a major release (i.e., Ghidra 12.0) before changing the default from Jython to PyGhidra, since there are currently a lot more Jython scripts without the tag than PyGhidra. But since users will most likely want to move to PyGhidra, the default will indeed change.
Describe the bug
I have started Ghidra in PyGhidra mode and verified it by running some commands in the console. I have also disabled Jython as I don't use it. Then, I tried to run some Python script I'm developing from the Scripts Manager and realized that it's still using Jython instead of my Python 3.11 installation.
To Reproduce
Expected behavior
Running my script using my PyGhidra installation, not Jython.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: