Skip to content

missing dependency? #10

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

Closed
balhoff opened this issue Apr 17, 2020 · 4 comments
Closed

missing dependency? #10

balhoff opened this issue Apr 17, 2020 · 4 comments
Assignees
Labels
bug something is not right

Comments

@balhoff
Copy link

balhoff commented Apr 17, 2020

I installed jabberwocky and tried to run the first example from jabberwocky-tests. I got this output:

(pyenv) localhost:catch jim (master)$ catch --ontology ../ontology/pocketmonsters.owl --keywords listofwords.txt --textfile blogs_formatted.json --parameter blog_post > catch_output.txt
Traceback (most recent call last):
  File "/Users/jim/Documents/Reviews/JOSS/pyenv/bin/catch", line 11, in <module>
    load_entry_point('jabberwocky==0.5.0.1', 'console_scripts', 'catch')()
  File "/Users/jim/Documents/Reviews/JOSS/pyenv/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/jim/Documents/Reviews/JOSS/pyenv/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/jim/Documents/Reviews/JOSS/pyenv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/jim/Documents/Reviews/JOSS/pyenv/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/jim/Documents/Reviews/JOSS/pyenv/lib/python3.7/site-packages/jabberwocky-0.5.0.1-py3.7.egg/catch/catch.py", line 426, in main
    search_term_dictionary = ontologyPurl(ontology, keywords)
  File "/Users/jim/Documents/Reviews/JOSS/pyenv/lib/python3.7/site-packages/jabberwocky-0.5.0.1-py3.7.egg/catch/catch.py", line 77, in ontologyPurl
    souped = souping(ontology) # Reading in the ontology file
  File "/Users/jim/Documents/Reviews/JOSS/pyenv/lib/python3.7/site-packages/jabberwocky-0.5.0.1-py3.7.egg/catch/catch.py", line 25, in souping
    soup = BeautifulSoup(contents,'xml')
  File "/Users/jim/Documents/Reviews/JOSS/pyenv/lib/python3.7/site-packages/bs4/__init__.py", line 228, in __init__
    % ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: xml. Do you need to install a parser library?

I'm running in a virtual environment with only the jabberwocky dependencies installed.

(this is part of JOSS review openjournals/joss-reviews#2168)

@sap218
Copy link
Owner

sap218 commented May 1, 2020

@balhoff did you run this in the your local/cloned 'jabberwocky-tests' directory?

@sap218
Copy link
Owner

sap218 commented May 1, 2020

it may be an issue with the 'jabberwocky-tests' repo documentation but the idea is that
$ catch --ontology ../ontology/pocketmonsters.owl --keywords .............
your -ontology file should direct where you clone the directory, e.g.
--ontology /home/samantha/git-clones/jabberwocky-tests/ontology/pocketmonsters.owl

and so on for the other files: the repo has the files, and you direct to them in the CLI:

$ catch --ontology /home/samantha/git-clones/jabberwocky-tests/ontology/pocketmonsters.owl --keywords /home/samantha/git-clones/jabberwocky-tests/ontology/listofwords.txt --textfile /home/samantha/git-clones/jabberwocky-tests/ontology/blogs_formatted.json --parameter blog_post > catch_output.txt

@balhoff
Copy link
Author

balhoff commented May 2, 2020

Thanks @sap218—I am running in the 'jabberwocky-tests/catch' directory. The command line does seem to point to the right folders. If the paths are wrong, I get a different error about 'No such file', which makes sense.

I installed jabberwocky by first making a virtual environment: python3 -m venv pyenv; source ./pyenv/bin/activate. Then I installed all the packages using that python environment.

@sap218
Copy link
Owner

sap218 commented May 4, 2020

Thanks @balhoff - really sorry about that! It seems I did forget about a dependency! I've just updated the requirements.txt and README. you may need to re-clone.

I'm going to close this issue, but please reopen an issue if you find another issue!

@sap218 sap218 closed this as completed May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is not right
Projects
None yet
Development

No branches or pull requests

2 participants