FHIR Chat · Cannot resolve local package · IG creation

Stream: IG creation

Topic: Cannot resolve local package


view this post on Zulip Natasha Singh (Dec 10 2019 at 19:49):

Hi @Grahame Grieve ,

I'm having trouble getting the publisher to resolve a local fhir package. Hoping you can help me figure out what I'm doing wrong. I've attached the publisher stdout. ig-publisher.log

I tried putting this into my control file:

"dependencyList": [
     {
        "name" : "Phenopackets",
        "location": "http://ga4gh.org/fhir/phenopackets",
        "package" : "ga4gh.fhir.phenopackets",
        "version" : "dev"
     }
   ]

And here is what I have installed in ~/.fhir/packages:

➜  kf-model-fhir git:(refactor-validation) ✗ l ~/.fhir/packages/                                                                                       [venv]
total 40
drwxr-xr-x  15 singhn4  1768498755   510B Dec  6 20:42 .
drwxr-xr-x   4 singhn4  1768498755   136B Dec  3 10:35 ..
-rw-r--r--@  1 singhn4  1768498755   6.0K Dec  3 19:29 .DS_Store
drwxr-xr-x   5 singhn4  1768498755   170B Dec  3 21:48 example.fhir.uv.myig#dev
drwxr-xr-x  12 singhn4  1768498755   408B Dec  3 15:32 fhir.base.template#current
drwxr-xr-x   5 singhn4  1768498755   170B Dec  3 16:21 ga4gh.fhir.phenopackets#dev
drwxr-xr-x   5 singhn4  1768498755   170B Dec  3 19:28 hl7.fhir.pubpack#0.0.2
drwxr-xr-x   3 singhn4  1768498755   102B Dec  3 10:43 hl7.fhir.r4.core#4.0.1
drwxr-xr-x  12 singhn4  1768498755   408B Dec  3 10:44 hl7.fhir.template#current
drwxr-xr-x   3 singhn4  1768498755   102B Dec  4 21:35 hl7.fhir.us.core#3.0.0
drwxr-xr-x   6 singhn4  1768498755   204B Dec  4 21:39 hl7.fhir.us.mcode#dev
drwxr-xr-x   6 singhn4  1768498755   204B Dec  3 16:20 hl7.fhir.uv.genomics-reporting#current
drwxr-xr-x   6 singhn4  1768498755   204B Dec  3 16:15 kids-first-ig#dev
drwxr-xr-x   3 singhn4  1768498755   102B Dec  4 22:47 kidsfirst.fhir#dev
-rw-r--r--   1 singhn4  1768498755   9.1K Dec  6 20:42 packages.ini

view this post on Zulip Grahame Grieve (Dec 10 2019 at 19:57):

is ga4gh.fhir.phenopackets building on the ci-build? or published anywhere as v0.0.2?

view this post on Zulip Natasha Singh (Dec 10 2019 at 20:02):

is ga4gh.fhir.phenopackets building on the ci-build?

No its not on the ci-build.

published anywhere as v0.0.2?

Not sure what this one means

view this post on Zulip Grahame Grieve (Dec 10 2019 at 20:33):

because you nominate your depedency as 0.0.2, the IG publisher wants to find the published version of 0.0.2, but it doesn't know how to find it

view this post on Zulip Natasha Singh (Dec 10 2019 at 20:35):

Hmm can you point me to where this is happening? I'm not seeing the 0.0.2 wrt ga4gh.fhir.phenopackets. I specified the version as dev which I thought points to the local package ga4gh.fhir.phenopackets#dev

view this post on Zulip Grahame Grieve (Dec 10 2019 at 20:37):

oops. I read the wrong line

view this post on Zulip Grahame Grieve (Dec 10 2019 at 20:37):

try taking out the location

view this post on Zulip Natasha Singh (Dec 10 2019 at 20:38):

I tried that before, didn't change anything :(

view this post on Zulip Natasha Singh (Dec 10 2019 at 20:40):

actually im sorry it does give a different error which is why i put the location in there. if i take out the location then i get an error that says:

java.lang.Exception: You must specify a canonical URL for the IG Phenopackets
    at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:2314)
    at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1800)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1172)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:650)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6651)```

view this post on Zulip Grahame Grieve (Dec 10 2019 at 21:39):

well, I'm going to do a new release shortly. I'm guessing what's going on, and I've made a change, and we'll see if it fixes your problem

view this post on Zulip Natasha Singh (Dec 18 2019 at 18:11):

Hi @Grahame Grieve I'm on publisher version 1.025 and I'm still having the same issues ^.

Thanks!

view this post on Zulip Grahame Grieve (Dec 18 2019 at 23:41):

so you've built ga4gh.fhir.phenopackets? What do you see for that in your local package cache?

view this post on Zulip Natasha Singh (Dec 19 2019 at 16:08):

@Grahame Grieve Yep, I've built this before. Here's what I see in ~/.fhir/packages/ga4gh.fhir.phenopackets:
ga4gh.fhir.phenopackets-content.txt

view this post on Zulip Natasha Singh (Jan 09 2020 at 15:51):

Hi @Grahame Grieve, happy new year! Were you able to figure out the cause of this issue and is there a release for the fix I can use?

Thanks!


Last updated: Apr 12 2022 at 19:14 UTC