py2sec icon indicating copy to clipboard operation
py2sec copied to clipboard

Py2Sec Encrypt Encounter Error

Open XZ1314XZ opened this issue 8 months ago • 0 comments

Environment: Python==3.11.4 Cython==3.0.5

Command:python py2sec.py -f example/test1.py -r Error message:

Compiling example/test1.py because it changed.
[1/1] Cythonizing example/test1.py

Error compiling Cython file:
------------------------------------------------------------
...
print(1)
^
------------------------------------------------------------

example\test1.py:1:0: 'example/test1' is not a valid module name
Traceback (most recent call last):
  File "E:\DevProject\PythonProject\LIBRARY\py2sec\tmp_py2sec_build.py", line 28, in <module>
    ext_modules = cythonize(extentions, nthreads=1, build_dir="tmp_build", quiet=False, compiler_directives=compiler_directives)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\MiniConda\Lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
    cythonize_one(*args)
  File "D:\MiniConda\Lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: example/test1.py

Py2Sec Encrypt Encounter Error

XZ1314XZ avatar Nov 02 '23 14:11 XZ1314XZ