tensorflow / tensorflow/tensorboard

ImportError: dlopen(/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so, 2): no suitable image found. Did find:

Open
#6,557 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.2k
Forks
1.7k
Avg merge
4d 22h
Merged PRs (30d)
1

Description

Traceback (most recent call last):
File "/Users/zhaochaole/opt/anaconda3/envs/py40/bin/tensorboard", line 5, in
from tensorboard.main import run_main
File "/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/tensorboard/main.py", line 27, in
from tensorboard import default
File "/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/tensorboard/default.py", line 32, in
from tensorboard.plugins.audio import audio_plugin
File "/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/tensorboard/plugins/audio/audio_plugin.py", line 25, in
from tensorboard.data import provider
File "/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/tensorboard/data/init.py", line 17, in
from tensorboard.data import experimental # noqa: F401
File "/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/tensorboard/data/experimental/init.py", line 17, in
from tensorboard.data.experimental.experiment_from_dev import ( # noqa: F401
File "/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/tensorboard/data/experimental/experiment_from_dev.py", line 21, in
import grpc
File "/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/grpc/init.py", line 22, in
from grpc import _compression
File "/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/grpc/_compression.py", line 20, in
from grpc._cython import cygrpc
ImportError: dlopen(/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so, 2): no suitable image found. Did find:
/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so: mach-o, but wrong architecture
/Users/zhaochaole/opt/anaconda3/envs/py40/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so: mach-o, but wrong architecture

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tensorboard/main.py and follow the traceback through tensorboard/plugins/audio/audio_plugin.py and tensorboard/data/experimental/experiment_from_dev.py to the grpc import. Reproduce the tensorboard entry point in the reported Python 3.10 macOS environment and determine whether the architecture mismatch is actionable in TensorBoard; done should include a verified startup result or a clearly scoped project-side fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, macos, python
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.