You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a package named demo as attached files, then compiled it to a single demo.so file, example.zip
but when I try to use this demo.so file:
from demo.func.func_add import add
if __name__ == '__main__':
print("3+2=", add(3,2))
it will raise error:
(.venv) pi@pi:~/so/demo33 $ python main.py
Traceback (most recent call last):
File "/home/pi/so/demo33/main.py", line 1, in <module>
from demo.func.func_add import add
ImportError: dynamic module does not define module export function (PyInit_demo)
would u help to check what's wrong?
The text was updated successfully, but these errors were encountered:
Hi, I have a package named demo as attached files, then compiled it to a single demo.so file,
example.zip
but when I try to use this demo.so file:
it will raise error:
would u help to check what's wrong?
The text was updated successfully, but these errors were encountered: