Forum Discussion
How to use AddOptionalPackageAsync?
Thanks for submitting the files davidanthoff. I've forwarded them to the dev team for investigation. sounds good, let me know when you have the GitHib repo available and I'll also have a look at that.
Tanaka_Jimha Alright, I've got the github repo up now, it is here:
https://github.com/davidanthoff/winjulia
You won't be able to run the build steps because you also need various builds of Julia itself, and setting that up is complicated, but it should give you an idea of what scripts I'm using to build things.
I'm also hosting the packages that I've created online now at https://winjulia.s3-us-west-1.amazonaws.com/index.html, so you and the dev team should be able to run the installer etc. on your own system and collect logs.
Here are some random comments that maybe are helpful:
- The link "Install Julia" on that S3 website that I posted links to the appinstaller file. It will install the "Julia" package, and one of the optional packages, namely Julia-1.4.1. There are two other optional packages (Julia-1.4.0 and Julia-1.4.2), and the website has links to all three optional packages.
- Installing any of the three optional packages via the weblink from that S3 site works.
- What I want to do is install optional packages from in-app code, though. The specific code that I'm using for that is https://github.com/davidanthoff/winjulia/blob/4ac34b6d0f4a434ef1902ecf24c17a8a3da65e64/launcher/main.cpp#L97, and that is also the part of the code that errors. If you install the main "Julia" app from the website that I linked to and run it, you will see an error message, and the code that I linked to in this item here is where that error occurs.
Let me know if this helps or if you need any more information!
- davidanthoffJun 24, 2020Brass Contributor
Tanaka_Jimha Cool! Do you think there will be a fairly easy way for me to fix this, or is this a more complicated problem? I'm not tied to S3 either, would be happy to use some other hosting as well.
- Tanaka_JimhaJun 24, 2020Former Employee
Hi davidanthoff,
Thanks for all the details you sent. Based on the logs from the feedback you filed it looks like the "access denied" error is happening when we try to access the AppInstaller file on S3 to get information for downloading the optional package. I'll message you more details.
Tanaka