trolldbois / python-haystack

Process heap analysis framework - Windows/Linux - record type inference and forensics
http://trolldbois.blogspot.com/search?q=python-haystack
GNU General Public License v3.0
94 stars 33 forks source link

Platform-based dependencies #27

Open rchateauneu opened 8 years ago

rchateauneu commented 8 years ago

When running this script on Windows 7:

import haystack from haystack import memory_dumper memory_dumper.dump(123,"toto.dmp")

... I get this error:

dumper.make_mappings() File "C:\Python27\lib\site-packages\haystack-0.34-py2.7.egg\haystack\memory_dumper.py", line 41, in make_mappings self.dbg = dbg.get_debugger(self._pid) File "C:\Python27\lib\site-packages\haystack-0.34-py2.7.egg\haystack\dbg.py", line 244, in get_debugger return MyWinAppDebugger(pid) File "C:\Python27\lib\site-packages\haystack-0.34-py2.7.egg\haystack\dbg.py", line 78, in init winappdbg.System.request_debug_privileges() NameError: global name 'winappdbg' is not defined

It is ok after installing winappdbg with pip.

trolldbois commented 8 years ago

yeah. I don't know how to have different requirements per target platform. Obviously winappdbg is not a requirement on non-windows platform.

trolldbois commented 8 years ago

As stated, solution is to install winappdbg with pip

trolldbois commented 8 years ago

http://stackoverflow.com/questions/16011379/operating-system-specific-requirements-with-pip for setup.py