Skip to content

Running example error? #1

@Rookie619

Description

@Rookie619

I want to know which version of python do you use? This is my problem:
python3 running result:

python3 ../patch.py hello.exe hello.py
Traceback (most recent call last):
File "/home/zhangzheng/pepatch/example/../patch.py", line 7, in
from core.patcher import Patcher
File "/home/zhangzheng/pepatch/core/init.py", line 2, in
from binary import *
ModuleNotFoundError: No module named 'binary'

python2 running result:

python2 ../patch.py hello.exe hello.py
Traceback (most recent call last):
File "../patch.py", line 7, in
from core.patcher import Patcher
File "/home/zhangzheng/pepatch/core/init.py", line 2, in
from binary import *
File "/home/zhangzheng/pepatch/core/binary.py", line 2, in
from dependency import pefile
File "/home/zhangzheng/pepatch/dependency/init.py", line 2, in
from pefile import *
File "/home/zhangzheng/pepatch/dependency/pefile.py", line 23, in
from builtins import bytes
ImportError: No module named builtins

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