facebookresearch / Clinical-Trial-Parser

Library for converting clinical trial eligibility criteria to a machine-readable format.
Apache License 2.0
163 stars 58 forks source link

ModuleNotFoundError: No module named 'caffe2' #24

Open naumanshah007 opened 1 year ago

naumanshah007 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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