Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run Labeler - invalid package #35

Open
sm-santomartino opened this issue Mar 25, 2022 · 1 comment
Open

Unable to run Labeler - invalid package #35

sm-santomartino opened this issue Mar 25, 2022 · 1 comment

Comments

@sm-santomartino
Copy link

Hello, I am trying to run the chexpert labeler on some reports. I'm first working out how to even get it going, so I'm using the sample_reports.csv file. Upon running label.py, the program quickly fails with the following error:

File "/Users/xxx/opt/miniconda3/envs/chexpert-label/lib/python3.6/site-packages/StanfordDependencies/JPypeBackend.py", line 44, in init
self.corenlp = jpype.JPackage('edu').stanford.nlp
AttributeError: Java package 'edu' is not valid

I've tried importing the edu.stanford.nlp package at the top of the file, using jpype.JClass(...), and a couple other things but this inevitably breaks something else further down the line. Any guidance or suggestions in resolving this problem and getting the labeler up and running is much appreciated!

@jirvin16
Copy link
Contributor

Hello, I am trying to run the chexpert labeler on some reports. I'm first working out how to even get it going, so I'm using the sample_reports.csv file. Upon running label.py, the program quickly fails with the following error:

File "/Users/xxx/opt/miniconda3/envs/chexpert-label/lib/python3.6/site-packages/StanfordDependencies/JPypeBackend.py", line 44, in init self.corenlp = jpype.JPackage('edu').stanford.nlp AttributeError: Java package 'edu' is not valid

I've tried importing the edu.stanford.nlp package at the top of the file, using jpype.JClass(...), and a couple other things but this inevitably breaks something else further down the line. Any guidance or suggestions in resolving this problem and getting the labeler up and running is much appreciated!

I haven't seen this error before. I would guess it's an issue with package versions - may be worth trying a dockerized runtime instead, see this PR for more details: #32

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

No branches or pull requests

2 participants