TingsongYu / TingsongYu/PyTorch_Tutorial
依赖包报错
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Traceback (most recent call last):
File "E:/王庆洲毕设/PyTorch_Tutorial-master/Code/main_training/main.py", line 38, in
writer = SummaryWriter(log_dir=log_dir)
File "D:\MiniConda3\envs\PyTorch_Tutorial-master\lib\site-packages\tensorboardX\writer.py", line 292, in init
from caffe2.python import workspace # workaround for pytorch/issue#10249
File "D:\MiniConda3\envs\PyTorch_Tutorial-master\lib\site-packages\caffe2\python_init_.py", line 2, in
from caffe2.proto import caffe2_pb2
File "D:\MiniConda3\envs\PyTorch_Tutorial-master\lib\site-packages\caffe2\proto_init_.py", line 11, in
from caffe2.proto import caffe2_pb2, metanet_pb2, torch_pb2
File "D:\MiniConda3\envs\PyTorch_Tutorial-master\lib\site-packages\caffe2\proto\caffe2_pb2.py", line 22, in
create_key=_descriptor._internal_create_key,
AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'
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
Start at Code/main_training/main.py line 38, where SummaryWriter is created, and trace the tensorboardX, caffe2, and google.protobuf imports shown in the traceback. Reproduce the failure in the reported environment and inspect the installed dependency versions. Done means the training entry point initializes SummaryWriter without the descriptor AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100