Skip to content

ImportError: dynamic module does not define module export function (PyInit_uftrace_python) #1994

@whiteyn

Description

@whiteyn

Hello, we installed uftrace in ubuntu20.04 to trace python, and the result was an error, as shown below:


(torch_pg) root@testpc115159:/mnt/test# uftrace -e record ./simple.py
Traceback (most recent call last):
  File "/root/anaconda3/envs/torch_pg/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/root/anaconda3/envs/torch_pg/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/uftrace/uftrace.py", line 26, in <module>
    import uftrace_python
ImportError: dynamic module does not define module export function (PyInit_uftrace_python)
WARN: child terminated by signal: 11: Segmentation fault


Is there any solution for this? Thank you very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions