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

how to use? #13

Open
Jzhenli opened this issue Dec 24, 2024 · 0 comments
Open

how to use? #13

Jzhenli opened this issue Dec 24, 2024 · 0 comments

Comments

@Jzhenli
Copy link

Jzhenli commented Dec 24, 2024

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?

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