python-haystack icon indicating copy to clipboard operation
python-haystack copied to clipboard

Platform-based dependencies

Open rchateauneu opened this issue 9 years ago • 3 comments

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.

rchateauneu avatar Mar 07 '16 22:03 rchateauneu

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

trolldbois avatar Mar 09 '16 16:03 trolldbois

As stated, solution is to install winappdbg with pip

trolldbois avatar Mar 09 '16 16:03 trolldbois

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

trolldbois avatar Mar 13 '16 03:03 trolldbois