Skip to content

File Path Errors running AMI3 #60

@EmanuelFaria

Description

@EmanuelFaria

Having updating Ami, today I ran it for the first time in a long time — and getting errors. (Terminal Log attached).
(I'm running on a mac, by the way, and just made sure I have the latest version of java running).

Thanks in advance for your input and help!

Manny

Here's the command I used:

ami -v -p /Users/emanuelfaria/DAVEapps/getpapers/oil1000 search --dictionary /Users/emanuelfaria/DAVEapps/dictionary/eoActivity.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/eoAnalysisMethod.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/eoCompound.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/eoExtractionMethod.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/eoPlant.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/eoPlantExtractionProduct.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/eoPlantMaterialHistory.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/eoPlantPart.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/eoTargetOrganism.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/geoLocation.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/humanDiseases.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/pests.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/VChumanSkinDiseases.xml --dictionary /Users/emanuelfaria/DAVEapps/dictionary/PetersPhytochemicals.xml

I'm getting the following errors:

cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/eoActivity.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/eoAnalysisMethod.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/eoCompound.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/eoExtractionMethod.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/eoPlant.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/eoPlantExtractionProduct.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/eoPlantMaterialHistory.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/eoPlantPart.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/eoTargetOrganism.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/geoLocation.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/humanDiseases.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/pests.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/VChumanSkinDiseases.xml
cannot find dictionary: /Users/emanuelfaria/DAVEapps/dictionary/PetersPhytochemicals.xml
!logs .Cannot read stopword stream: /org/contentmine/ami/wordutil, ami3, version 2020/08/09_09/54/10/pmcstop.txt
Cannot read stopword stream: /org/contentmine/ami/wordutil, ami3, version 2020/08/09_09/54/10/stopwords.txt

I also have a lot of warnings (?) that look like this:
large document (531) for PMC6479398 truncated to 500 sections

The weirdest error, however, was that ami was looking for "plugins" in a directory I used in the previous version (see path below) — but Ami's new bin folder doesn't even contain a "plugins" folder. Should that be the case?

java.lang.RuntimeException: cannot process argument: --sr.search (RuntimeException: cannot read inputStream for dictionary: /org/contentmine/ami/plugins/dictionary/Users/emanuelfaria/DAVEapps/dictionary/eoAnalysisMethod.xml)

I couldn't remember how to set the default path (I didn't see it in the documentation, nor in the text displayed when typing ami --help), so I recreated the missing folder and contents in the old location and re-ran the command. That eliminated those types of errors errors, but I'll still need to know how to set ami to look in the new (correct) location by default for the seemingly missing plugin folder in Ami3's new bin.

In terms of output, I seem to be missing a lot:

  1. No folders for sections, tables, etc.
  2. search..count.xml and search..documents.xml files have no entries.
  3. But many but not all of the search..snippets.xml files DO have entries in them.

Hopefully these anomalies will resolve once I've got the directories worked out.

Terminal Saved Output.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions