错误详情
2024-06-26 07:35:54 [47,438ms] [Error] [omni.ext._impl._internal] Failed to import python module loadCob_python from /home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/exts/loadCob. Error: source code string cannot contain null bytes. Traceback:
Traceback (most recent call last):
File "/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py", line 187, in _custom_importer
return _import_public(ext_module.path, ext_module.name, reload_enabled)
File "/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/kernel/py/carb/profiler/__init__.py", line 83, in wrapper
r = f(*args, **kwds)
File "/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py", line 94, in _import_public
module = import_module(module_name)
File "/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/kernel/py/carb/profiler/__init__.py", line 83, in wrapper
r = f(*args, **kwds)
File "/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/kernel/py/omni/ext/_impl/custom_importer.py", line 76, in import_module
return importlib.import_module(name)
File "/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/python/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/exts/loadCob/loadCob_python/__init__.py", line 9, in <module>
from .extension import *
File "/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/exts/loadCob/loadCob_python/extension.py", line 25, in <module>
from .ui_builder import UIBuilder
ValueError: source code string cannot contain null bytes
2024-06-26 07:35:54 [47,438ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: 'loadCob_python' in '/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/exts/loadCob' failed to load.
At:
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(213): startup
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(328): startup_extension
PythonExtension.cpp::startup()(2): <module>
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.window.extensions/omni/kit/window/extensions/ext_commands.py(29): do
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.commands/omni/kit/undo/undo.py(80): execute
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.commands/omni/kit/commands/command.py(463): execute
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.window.extensions/omni/kit/window/extensions/common.py(288): toggle_extension
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.window.extensions/omni/kit/window/extensions/ext_components.py(93): toggle
2024-06-26 07:35:54 [47,438ms] [Error] [omni.ext.plugin] [ext: loadCob-1.0.0] Failed to startup python extension.
2024-06-26 07:35:54 [47,659ms] [Error] [omni.ext.python] ValueError: source code string cannot contain null bytes
At:
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/exts/loadCob/loadCob_python/extension.py(25): <module>
<frozen importlib._bootstrap>(241): _call_with_frames_removed
<frozen importlib._bootstrap_external>(883): exec_module
<frozen importlib._bootstrap>(703): _load_unlocked
<frozen importlib._bootstrap>(1006): _find_and_load_unlocked
<frozen importlib._bootstrap>(1027): _find_and_load
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/exts/loadCob/loadCob_python/__init__.py(9): <module>
<frozen importlib._bootstrap>(241): _call_with_frames_removed
<frozen importlib._bootstrap_external>(883): exec_module
<frozen importlib._bootstrap>(703): _load_unlocked
<frozen importlib._bootstrap>(1006): _find_and_load_unlocked
<frozen importlib._bootstrap>(1027): _find_and_load
<frozen importlib._bootstrap>(1050): _gcd_import
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/python/lib/python3.10/importlib/__init__.py(126): import_module
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.graph/omni/graph/core/_impl/_registration/extension_management.py(154): extension_management_factory
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.graph/omni/graph/core/_impl/_registration/register_python_ogn.py(70): register_python_ogn
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/kernel/py/carb/profiler/__init__.py(85): wrapper
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.graph/omni/graph/core/_impl/registration.py(34): __init__
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.graph/omni/graph/core/_impl/extension.py(120): on_after_ext_enabled
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.window.extensions/omni/kit/window/extensions/ext_commands.py(29): do
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.commands/omni/kit/undo/undo.py(80): execute
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.commands/omni/kit/commands/command.py(463): execute
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.window.extensions/omni/kit/window/extensions/common.py(288): toggle_extension
/home/d/.local/share/ov/pkg/isaac-sim-2023.1.1/kit/exts/omni.kit.window.extensions/omni/kit/window/extensions/ext_components.py(93): toggle
我非常确定代码没有问题,因为我只加了一个新行