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

[BUG]: invalid v8 code with python 3.13.0 #1989

Open
coco-hkk opened this issue Nov 18, 2024 · 3 comments
Open

[BUG]: invalid v8 code with python 3.13.0 #1989

coco-hkk opened this issue Nov 18, 2024 · 3 comments
Labels

Comments

@coco-hkk
Copy link

info

INFO     Python 3.13.0
INFO     Pyarmor 9.0.5 (trial), 000000, non-profits
INFO     Platform windows.x86_64
INFO     search inputs ...
INFO     find script custom_exceptions.py
INFO     find 1 top resources
INFO     start to generate runtime files
INFO     target platforms {'windows.amd64'}
INFO     write dist\pyarmor_runtime_000000\pyarmor_runtime.pyd
INFO     generate runtime files OK
INFO     start to obfuscate scripts
INFO     process resource "custom_exceptions"
INFO     obfuscating file custom_exceptions.py
ERROR    invalid v8 code

Command Line

...pypoetry\Cache\virtualenvs\test-h1_rXhxc-py3.13\Scripts\pyarmor gen .\custom_exceptions.py

Environments

Python 3.13.0
Pyarmor 9.0.5 (trial), 000000, non-profits
Platform windows.x86_64
Native windows.amd64
Home C:\Users\123456.pyarmor

code

# custom_exceptions.py 所有代码
class ProcessPoolExecutorError(Exception):
    def __init__(self, message, code):
        self.message = message
        self.code = code
        super().__init__(self.message)
@coco-hkk coco-hkk added the bug label Nov 18, 2024
@jondy
Copy link
Contributor

jondy commented Nov 19, 2024

Got it, thanks.

I'll fix it in next Monday when I'm back to office

@rallen10
Copy link

I just want to say that I am also facing the same issue on MacOS with Apple Silicon

Environments

INFO Python 3.13.0
INFO Pyarmor 9.0.5 (trial), 000000, non-profits
INFO Platform darwin.aarch64

@jondy
Copy link
Contributor

jondy commented Nov 22, 2024

@rallen10

I'll appreciated if you could provide the snapshot code which used to reproduece your issue, just like the example in this issue description.

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

No branches or pull requests

3 participants