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

peutils.py - line 405 - NameError: name 'file' is not defined #1

Open
AdamGreenhill opened this issue Mar 2, 2016 · 0 comments
Open

Comments

@AdamGreenhill
Copy link

When attempting to load signatures for the packer detection:
>>> import peutils
>>> signatures = peutils.SignatureDatabase('signatures.txt')
I came across the following issue:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\user\Downloads\pefile-py3k-master\peutils.py", line 74, in __ init__
self.__load(filename=filename, data=data)
File "C:\Users\user\Downloads\pefile-py3k-master\peutils.py", line 405, in __load
sig_f = file( filename, 'rt' )
NameError: name 'file' is not defined

System:

  • 32-bit Windows 7 SP1
  • Python version 3.5.1

Image below:
image

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

No branches or pull requests

1 participant