Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 version #108

Open
carouselcarousel opened this issue Feb 26, 2021 · 2 comments
Open

Python3 version #108

carouselcarousel opened this issue Feb 26, 2021 · 2 comments
Labels

Comments

@carouselcarousel
Copy link

Is your feature request related to a problem? Please describe.
Yes it's problem related. All the time have this python3 vs python2 issue, even when I start vipermonkey as python2. I didn't found any solution to force to use python2.
Yes I started it as: python2 vmonkey.py /media/sf_D_DRIVE/!PANEL/mime_infalted.dat

Python 2.7.18 (default, Apr 20 2020, 20:30:41) [GCC 9.3.0] on linux2<<<

Just to see the error:
ERROR Reading in file as Excel with xlrd failed. Can't find workbook in OLE2 compound document
Traceback (most recent call last):
File "/root/Downloads/ViperMonkey/vipermonkey/export_all_excel_sheets.py", line 9, in
import psutil
ModuleNotFoundError: No module named 'psutil'
ERROR Running export_all_excel_sheets.py failed. Command '['timeout', '30', 'python3', '/root/Downloads/ViperMonkey/vipermonkey/export_all_excel_sheets.py', '/tmp/tmp_excel_file_6539441436']' returned non-zero exit status 1
INFO Saving dropped analysis artifacts in /media/sf_D_DRIVE/!PANEL/mime_infalted.dat_artifacts/
INFO Parsing VB...

(And installing psutil to python3 will not help, because then you need to install: uno, unotools, base, .. and at the end will not work. )

ERROR Reading in file as Excel with xlrd failed. Can't find workbook in OLE2 compound document
Traceback (most recent call last):
File "/root/Downloads/ViperMonkey/vipermonkey/export_all_excel_sheets.py", line 15, in
from unotools import Socket, connect
File "/usr/local/lib/python3.9/dist-packages/unotools/init.py", line 11, in
from unotools.context import LocalContext, ScriptContext
File "/usr/local/lib/python3.9/dist-packages/unotools/context.py", line 2, in
import uno # pragma: no flakes
File "/usr/local/lib/python3.9/dist-packages/uno/init.py", line 4, in
from base import Element, Css, Payload, UnoBaseFeature, UnoBaseField
ImportError: cannot import name 'Element' from 'base' (/usr/local/lib/python3.9/dist-packages/base/init.py)

image
image

@decalage2
Copy link
Owner

Indeed with the latest version 1.0.2, the main vmonkey script runs as python2, but it calls python3 to run other scripts. It will be easier when the whole package is converted to python 3. cc @kirk-sayre-work

@decalage2 decalage2 added the bug label Feb 26, 2021
@kirk-sayre-work
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants