Skip to content

Import Error #30

@AYoub-H

Description

@AYoub-H

Hello,
I want to use this code, but I'm facing three errors:

  • when I try to execute __init__.py, I get this error :
from .aes import AES, AESModeOfOperationCTR, AESModeOfOperationCBC, AESModeOfOperationCFB, AESModeOfOperationECB, AESModeOfOperationOFB, AESModesOfOperation, Counter
ModuleNotFoundError: No module named '__main__.aes'; '__main__' is not a package 
  • when I try to execute test-aes.py, I get this error:
from pyaes import *
ModuleNotFoundError: No module named 'pyaes'
  • Also if you can tell me how can I import an image in this code.
    Can anyone help me to fix these errors, I'm working on image encryption using AES.
    PS: I need it for my education purpose.

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