professor-hippo / volatility

Automatically exported from code.google.com/p/volatility
GNU General Public License v2.0
0 stars 0 forks source link

Running VF from Jython #519

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Hi Guys,

I'm trying to run VF from Jython

package testmodule;
import org.python.util.PythonInterpreter;

public class RunVf {

    public static void runPython(){

       PythonInterpreter python = new PythonInterpreter();

       python.execfile("C:\\vf\\volatility-2.3.1\\vol.py");   
    }
}
What is the expected output? What do you see instead?

Volatility requires python version 2.6, please upgrade your python installation.

What version of the product are you using? On what operating system?

2.3

Please provide any additional information below.

Is it possible to run VF from Jython? Can I turn this check off?
Also is it possible to pass arguments to VF from Jython? Which function in 
vol.py would take arguments like profile, plugin and image.

Regards
Vic

Original issue reported on code.google.com by wiktor.s...@gmail.com on 8 Nov 2014 at 3:25

GoogleCodeExporter commented 9 years ago
Hi Guys,

Problem solved I used beta release of Jython 2.7b3 and it runs in compiler.

But now I'm getting:

Exception in thread "main" Traceback (most recent call last):
  File "C:\vf\volatility-2.3.1\vol.py", line 49, in <module>
    import volatility.conf as conf
ImportError: No module named volatility
Java Result: 1

Any suggestions?

Vic

Original comment by wiktor.s...@gmail.com on 8 Nov 2014 at 4:51

GoogleCodeExporter commented 9 years ago
Hi there, please note that all our work (including our bug tracker) has moved 
to Github [1], so this issue tracker isn't regularly checked, and we won't be 
answering new bugs on here.  As such I'm going to mark this bug as Invalid.

Having said that, this isn't really a volatility bug, it's a user configuration 
issue.  Volatility 2.x is supported under cpython 2.6 or above.  It looks as 
though this is a PYTHONPATH error, but we don't officially support jython, so a 
better place to ask the question would be the volatility user mailing list, 
where you'll have a lot more people who might be able to help...

[1] https://github.com/volatilityfoundation/volatility/issues

Original comment by mike.auty@gmail.com on 8 Nov 2014 at 10:35