Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

ModuleNotFoundError: No module named 'caffe2' #24

Open
naumanshah007 opened this issue Jan 10, 2023 · 2 comments
Open

ModuleNotFoundError: No module named 'caffe2' #24

naumanshah007 opened this issue Jan 10, 2023 · 2 comments

Comments

@naumanshah007
Copy link

when i execute this command:-

(base) macbook@macbooks-MacBook-Pro Clinical-Trial-Parser-main % pytext train < src/resources/config/ner.json

following is error which arrise despite i installed caffe and all other dependencies. moreover, also tried all possible solutions on git posted by others to solve but still having the issue in my macbook:-

Traceback (most recent call last):
File "/Users/macbook/opt/anaconda3/bin/pytext", line 5, in
from pytext.main import main
File "/Users/macbook/opt/anaconda3/lib/python3.9/site-packages/pytext/init.py", line 8, in
from caffe2.python import workspace
ModuleNotFoundError: No module named 'caffe2'

Please apprise the solution or make a docker image to encounter all such issues.

Thanking you in anticipation

@victormurcia
Copy link

when i execute this command:-

(base) macbook@macbooks-MacBook-Pro Clinical-Trial-Parser-main % pytext train < src/resources/config/ner.json

following is error which arrise despite i installed caffe and all other dependencies. moreover, also tried all possible solutions on git posted by others to solve but still having the issue in my macbook:-

Traceback (most recent call last): File "/Users/macbook/opt/anaconda3/bin/pytext", line 5, in from pytext.main import main File "/Users/macbook/opt/anaconda3/lib/python3.9/site-packages/pytext/init.py", line 8, in from caffe2.python import workspace ModuleNotFoundError: No module named 'caffe2'

Please apprise the solution or make a docker image to encounter all such issues.

Thanking you in anticipation

I'm having the same issue. I've tried a variety of different things like using different Python versions, dependency install methods, and CUDA version but no luck.

@ryota3915
Copy link

Commented in the Link
Hope this helps.
I use Ubuntu 18.04.6 LTS, python3.7 and annaconda for package management.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants