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

Py2Sec Encrypt Encounter Error #20

Open
XZ1314XZ opened this issue Nov 2, 2023 · 0 comments
Open

Py2Sec Encrypt Encounter Error #20

XZ1314XZ opened this issue Nov 2, 2023 · 0 comments

Comments

@XZ1314XZ
Copy link

XZ1314XZ commented Nov 2, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant