Skip to content

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

@AdamGreenhill

Description

@AdamGreenhill

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions