pyarmor icon indicating copy to clipboard operation
pyarmor copied to clipboard

[Feature] Support Python 3.13

Open jondy opened this issue 1 year ago • 2 comments

The first version to support Python 3.13 is v8.6.0

If there is no unknown technical problem, it will be released around 2024-11-01, one month after Python 3.13 final version is released

jondy avatar Jun 07 '24 10:06 jondy

Will it be compatible with the freethreading library, aka bypass the GIL? Gotta wonder if GIL still exists at all for BCC/RFT modes

Apprisco avatar Oct 17 '24 19:10 Apprisco

Could you show a simple test case for this feature?

jondy avatar Oct 18 '24 05:10 jondy

3.13版本还没有支持吗

wjl130825 avatar Nov 04 '24 13:11 wjl130825

还在开发中,发布延迟了,这个月内应该会发布

jondy avatar Nov 05 '24 03:11 jondy

Sorry because of some other urgent things, it's still developing to support Python 3.13, it will be delayed to publish in this month with Pyarmor 9.1.0

jondy avatar Nov 05 '24 07:11 jondy

Pyarmor v9.0.5 is released to support Python 3.13

jondy avatar Nov 11 '24 04:11 jondy

专家版也升级这个吗,原来是8.5.12

wjl130825 avatar Nov 11 '24 12:11 wjl130825

另外还有一个问题就是,捆绑序列号,在win11下总是失效

wjl130825 avatar Nov 11 '24 12:11 wjl130825

@jondy is there any plan on supporting the freethreading branch? Is it necessary, as in does GIL still prevent full cpu usage when compiled in BCC mode?

Apprisco avatar Nov 16 '24 18:11 Apprisco

In CPython 3.13 sources, I notice there is one macro Py_GIL_DISABLED

I think it need lot of work to support it for extension pyarmor_runtime, all of the sources need to check, I have no plan to support it now.

But there is one lightweight extension pyarmor_mini which is developing to support high performance obfuscated scripts, I may take it into accout if it's possible.

jondy avatar Nov 17 '24 04:11 jondy

I see, the freethreading GIL is very tempting due to better performance all around, and using more than 1 cpu thread. Multiprocessing ProcessPoolExecutor is very high in overhead.

Apprisco avatar Nov 17 '24 18:11 Apprisco

PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module File "pyarmor_runtime_005595_init_.py", line 2, in RuntimeError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 (1:11076)现在打包,程序运行就出现这个问题,是啥原因

wjl130825 avatar Apr 07 '25 06:04 wjl130825

PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module File "pyarmor_runtime_005595_init_.py", line 2, in RuntimeError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 (1:11076),现在打包软件,提示这个,啥原因。

wjl130825 avatar Apr 07 '25 06:04 wjl130825