Skip to content

加密django的示例项目时,运行加密之后的文件会报错 #1308

Description

@bwmaples

PS G:\PythonEnc\dist\HelloWorld> python .\manage.py
Traceback (most recent call last):
File "G:\PythonEnc\dist\HelloWorld\manage.py", line 2, in
from .pyarmor_runtime_006026 import pyarmor
ImportError: attempted relative import with no known parent package

PS G:\PythonEnc\dist\HelloWorld> pyarmor
INFO Python 3.10.6
INFO Pyarmor 8.2.3 (group), 006026, abi
INFO Platform windows.x86_64

加密命令

pyarmor gen -O dist -r -i HelloWorld

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentedplease check documentation to find answerwrong usageplease check document to find right way to use pyarmor

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions