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

Platform-based dependencies #27

Open
rchateauneu opened this issue Mar 7, 2016 · 3 comments
Open

Platform-based dependencies #27

rchateauneu opened this issue Mar 7, 2016 · 3 comments

Comments

@rchateauneu
Copy link

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
Copy link
Owner

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

@trolldbois
Copy link
Owner

As stated, solution is to install winappdbg with pip

@trolldbois trolldbois changed the title NameError: global name 'winappdbg' is not defined Platform-based dependencies Mar 13, 2016
@trolldbois
Copy link
Owner

trolldbois added a commit that referenced this issue Mar 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants