Open xambroz opened 7 years ago
Tried with current dev version from github. Imports from "thirdparty" are fixed now. What remains is Milter and cStringIO. The cStringIO is python2 thingie - there should be probably some try/except for io.StringIO (if it works in python3 the same way)
The Milter probably doesn't exist yet for python3 so the module mraptor_milter.py will probably work just with python2 - https://github.com/jmehnle/pymilter/issues/2
======== Cut here ==================================
$ python3 setup.py test
/usr/lib/python3.5/site-packages/setuptools/dist.py:364: UserWarning: Normalizing '0.51dev8' to '0.51.dev8'
normalized_version,
running test
running egg_info
writing dependency_links to oletools.egg-info/dependency_links.txt
writing top-level names to oletools.egg-info/top_level.txt
writing oletools.egg-info/PKG-INFO
writing entry points to oletools.egg-info/entry_points.txt
reading manifest file 'oletools.egg-info/SOURCES.txt'
writing manifest file 'oletools.egg-info/SOURCES.txt'
running build_ext
olevba (unittest.loader._FailedTest) ... ERROR
mraptor_milter (unittest.loader._FailedTest) ... ERROR
mraptor (unittest.loader._FailedTest) ... ERROR
======================================================================
ERROR: olevba (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: olevba
Traceback (most recent call last):
File "/usr/lib64/python3.5/unittest/loader.py", line 153, in loadTestsFromName
module = __import__(module_name)
File "/home/mambroz/opt/oletools/oletools/olevba.py", line 237, in <module>
import cStringIO
ImportError: No module named 'cStringIO'
======================================================================
ERROR: mraptor_milter (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: mraptor_milter
Traceback (most recent call last):
File "/usr/lib64/python3.5/unittest/loader.py", line 153, in loadTestsFromName
module = __import__(module_name)
File "/home/mambroz/opt/oletools/oletools/mraptor_milter.py", line 72, in <module>
import Milter
ImportError: No module named 'Milter'
======================================================================
ERROR: mraptor (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: mraptor
Traceback (most recent call last):
File "/usr/lib64/python3.5/unittest/loader.py", line 153, in loadTestsFromName
module = __import__(module_name)
File "/home/mambroz/opt/oletools/oletools/mraptor.py", line 85, in <module>
from oletools import olevba
File "/home/mambroz/opt/oletools/oletools/olevba.py", line 237, in <module>
import cStringIO
ImportError: No module named 'cStringIO'
----------------------------------------------------------------------
Ran 3 tests in 0.001s
FAILED (errors=3)
Hello, the "setup.py test" fails for python3. I guess there should be oletools in the imports like "import oletools.oleobj as oleobj"