本地化部署报错'NoneType' object has no attribute 'message_types_by_name'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 12.3k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
root@wyhFire:/mnt/f/MOSS# python3 moss_cli_demo.py
2023-04-27 11:04:26.361098: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-04-27 11:04:27.001897: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-11.7/lib64
2023-04-27 11:04:27.001984: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-11.7/lib64
2023-04-27 11:04:27.002006: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
File "/mnt/f/MOSS/moss_cli_demo.py", line 7, in
from accelerate import init_empty_weights, load_checkpoint_and_dispatch
File "/usr/local/lib/python3.10/dist-packages/accelerate/init.py", line 3, in
from .accelerator import Accelerator
File "/usr/local/lib/python3.10/dist-packages/accelerate/accelerator.py", line 37, in
from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
File "/usr/local/lib/python3.10/dist-packages/accelerate/tracking.py", line 49, in
import wandb
File "/usr/local/lib/python3.10/dist-packages/wandb/init.py", line 26, in
from wandb import sdk as wandb_sdk
File "/usr/local/lib/python3.10/dist-packages/wandb/sdk/init.py", line 5, in
from .wandb_artifacts import Artifact # noqa: F401
File "/usr/local/lib/python3.10/dist-packages/wandb/sdk/wandb_artifacts.py", line 33, in
from wandb.apis import InternalApi, PublicApi
File "/usr/local/lib/python3.10/dist-packages/wandb/apis/init.py", line 42, in
from .internal import Api as InternalApi # noqa
File "/usr/local/lib/python3.10/dist-packages/wandb/apis/internal.py", line 1, in
from wandb.sdk.internal.internal_api import Api as InternalApi
File "/usr/local/lib/python3.10/dist-packages/wandb/sdk/internal/internal_api.py", line 45, in
from ..lib import retry
File "/usr/local/lib/python3.10/dist-packages/wandb/sdk/lib/retry.py", line 17, in
from .mailbox import ContextCancelledError
File "/usr/local/lib/python3.10/dist-packages/wandb/sdk/lib/mailbox.py", line 10, in
from wandb.proto import wandb_internal_pb2 as pb
File "/usr/local/lib/python3.10/dist-packages/wandb/proto/wandb_internal_pb2.py", line 6, in
from wandb.proto.v3.wandb_internal_pb2 import *
File "/usr/local/lib/python3.10/dist-packages/wandb/proto/v3/wandb_internal_pb2.py", line 16, in
from wandb.proto import wandb_base_pb2 as wandb_dot_proto_dot_wandb__base__pb2
File "/usr/local/lib/python3.10/dist-packages/wandb/proto/wandb_base_pb2.py", line 6, in
from wandb.proto.v3.wandb_base_pb2 import *
File "/usr/local/lib/python3.10/dist-packages/wandb/proto/v3/wandb_base_pb2.py", line 21, in
__RECORDINFO = DESCRIPTOR.message_types_by_name['_RecordInfo']
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'

我想知道如何解决,谢谢!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run python3 moss_cli_demo.py and start at moss_cli_demo.py, following the import chain through accelerate and wandb's generated protobuf modules. Inspect the environment's dependency versions and reproduce the reported AttributeError. Done means the local deployment starts without this traceback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100