cython compiled module import error(Ren'Py 7.4)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
nnhope
Newbie
Posts: 1
Joined: Sun May 02, 2021 6:55 am
Contact:

cython compiled module import error(Ren'Py 7.4)

#1 Post by nnhope »

When importing a module compiled with cython, the following error occurs from Ren'Py 7.4 version.
(This error did not occur in Ren'Py version 7.3.5 or lower.)

In 'traceback.txt'

Code: Select all

While running game code:
  File "game/script.rpy", line 1, in script
    癤퓁nit python:
  File "game/script.rpy", line 1, in script
    癤퓁nit python:
  File "game/script.rpy", line 3, in <module>
    import hello
ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.
-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "renpy/bootstrap.py", line 326, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 515, in main
    renpy.game.context().run(node)
  File "game/script.rpy", line 1, in script
    癤퓁nit python:
  File "game/script.rpy", line 1, in script
    癤퓁nit python:
  File "renpy/ast.py", line 922, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2218, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/script.rpy", line 3, in <module>
    import hello
ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.

Windows-10-10.0.18362
Ren'Py 7.4.4.1439
The cython version I use is 0.29.21 and the python version is 2.7.18.
'hello.pyx' code just like below,

Code: Select all

def Hello():
    print('Hello!')
What should I do?

Post Reply

Who is online

Users browsing this forum: No registered users