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
For some reasons, we can't run script command as follows.
$ uftrace record t-abc
$ uftrace script -S scripts/simple.py
ImportError: dynamic module does not define module export function (PyInit_simple)
WARN: "scripts/simple.py" cannot be imported!
WARN: failed to init python scripting
Here is with the output with debug messages.
$ uftrace script -S scripts/simple.py --debug-domain script:3
script: script_init("scripts/simple.py")
script: script_init_for_python("scripts/simple.py")
script: libpython3.8.so is loaded
script: set_python_path("scripts/simple.py")
ImportError: dynamic module does not define module export function (PyInit_simple)
WARN: "scripts/simple.py" cannot be imported!
WARN: failed to init python scripting
script: script_finish()
script: script_finish_for_python()
The text was updated successfully, but these errors were encountered:
This problem happens because my scripts directory also has simple.so that is compiled when developing #1205.
It works fine after removing all the .so files that have the same name as .py files under scripts directory. I hope there is a way to import a .py module over the .so module with the same name.
For some reasons, we can't run script command as follows.
Here is with the output with debug messages.
The text was updated successfully, but these errors were encountered: