Unable to import module while debugging in docker-compose interpreter
Hello,
Os MAC
Docker for mac
I have created a docker-compose interpreter in pycaharm Pro. But getting an error while debugging with pycharm . But it is working fine when i do docker exec and try to import. I guess it is something related to path mapping as i am running it on mac . Can someone tell me how to unblock ,.
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/xxxx/xxxx/api/grpc/grpc_asyncio.py", line 11, in <module>
from grpc import _server
ImportError: cannot import name '_server'
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/xxxx/xxxx/api/grpc/grpc_asyncio.py", line 11, in <module>
from grpc import _server
ImportError: cannot import name '_server'
Please sign in to leave a comment.