juliaup
juliaup copied to clipboard
Alternative to Windows Store for Windows - an msi installer for juliaup
My work computer is forbidden by policy to access the Windows Store. Could there be an alternative source for JuliaUp for Windows as there is for Linux and Mac?
@NicholasWMRitchie Could you try a new install option that avoids the store? Here is how:
- Click on https://install.julialang.org/Julia.appinstaller
- Launch the file that gets downloaded (just "open" it or double click on it in explorer)
Be warned, the version that you are getting there is very much a dev version, and you probably will have to uninstall this and then re-install a more robust version down the road. Right now I'm just trying to figure out whether this option is one that could solve this scenario for us.
I did as you instructed. It installs a 64-bit instance of Julia 1.7.3 and the instance works as expected. The juliaup command seems to work though I have not checked it extensively.
Thanks, this is really helpful!
I suggest to add the link to the appinstaller to the Readme file of this repo so that it is easier to find for other users.
I suggest to add the link to the appinstaller to the Readme file of this repo so that it is easier to find for other users.
For now it is an experiment, as soon as we decide that we want to have that option permantely I'll put a link in the README. Oh, and we need to change code signing from my personal cert to the JuliaComputing one as well before we really declare this done.
Is there a reason that the "juliaup self update" is not implemented on this version or is this just one of those things that you still need to complete?
I just reinstalled Julia.appinstaller to get the latest 1.8.0-rc4 version as it wasn't available on the initial test version.
Is there a reason that the "juliaup self update" is not implemented on this version or is this just one of those things that you still need to complete?
Yep, that still needs to be implemented. I think in theory this appinstaller distributed version should auto-check for new versions, and then auto-update in the background, but there might be delays in that. Once I implement the juliaup self update
thing that should force-trigger that.
I also plan to change how Juliaup in general learns about new Julia versions, at that point the delays should be minimal.
I think in theory this appinstaller distributed version should auto-check for new versions, and then auto-update in the background, but there might be delays in that.
Is there some way to detect/confirm that? I installed the appinstaller 1.7.20 version a couple of days ago -- worked flawlessly on a machine without admin rights or a useful Windows Store 🥳 . However, even after a reboot juliaup is still at that version (and therefore does not see the julia 1.8.0 release).
Just did an update on my work PC via Julia.appinstaller For me this is the currently the most convenient way of getting/updating Julia on Windows. Typically I don't have any problems with other ways of installing Julia, but for the general Julia users my guess is, this is the best, even in this early stage. As I don't have any issues which aren't already known or anything unexpected this is just meant as an encouraging note and a general WELL DONE! Thank you for your great work.
@ViralBShah Can you give this approach a try?
@davidanthoff I tried the Julia.appinstaller as well, and this is the result (immediate uppon clicking Install):
😢 Screenshot
I can not find more detailed information.
What version of Windows are you on? I thought MS had resolved this now (in a previous version of App installer this always happened...).
Windows 10 Home 21H2, build 19044.2130.
Not sure if this leads to a solution but @MatthijsBlom can you open a PowerShell and show the output of
Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine RemoteSigned
OK, it's same for me but I can install. So it was a wrong track, never mind.
I tried on my company computer and I got the following message:
App installation failed with error message: Appinstaller operation failed with error code 0x80070490. Detail: Element not found. (0x80070490)
First I got the same error as MatthijsBlom but then I updated the Store App from inside the Store and now it worked fine. (We can only install a bunch of apps from the store and sadly Julia is not (yet) one of them)
I can confirm that updating "App Installer" fixes my previous problem.
Not sure if this app was update since, but it is still not working (see screenshot).
Version 1.8.16 was successfully installed on my work computer.
Does anybody have a recipe for how to install the juliaup on the Windows Server (2019 or 2022)? We are using the server editions on the SuperMicro stations (2 NUMA nodes, 100+ cores, 1.5TB RAM) but the .appinstaller file cannot be opened there. I'd be glad to have juliaup (even only locally installed) on the system for the ease of use of the version multiplexing, even sacrificing the auto-update functionality.
not really a show stopper, but a mild inconvenience. It seems that now I lost the ability to run julia in Windows from bash.
Now I get an error message like:
bash: /c/Users/USERNAME/AppData/Local/Microsoft/WindowsApp/julia: Permission denied
Not really a show stopper, but extended the usability of shell>
mode from Windows. Otherwise, shell mode is sort of useless in Windows. If someone knows how to fix this problem, I would be very grateful :-)
not really a show stopper, but a mild inconvenience. It seems that now I lost the ability to run julia in Windows from bash.
This seems like a pretty big bug to me. I frequently use Bash on Windows, and I would definitely want to be able to run Julia in Bash.
@davidanthoff @staticfloat Any ideas what might be going on?
Sounds like the file doesn't have executable permissions. Try chmod +x ./julia
from bash
?
Oh, and we need to change code signing from my personal cert to the JuliaComputing one as well before we really declare this done.
OT: Is there a JuliaLang cert we could use instead?
Sounds like the file doesn't have executable permissions. Try
chmod +x ./julia
frombash
?
Even if this works, shouldn't Juliaup automatically set the correct permissions?
Forgot to mentioned that I already tried to do chmod +x
was the first thing that I tried. First of all, reports Permission denied
as well. I already looked into it, but since I don't really know how this works I left the question a bit open.
From what I can see juliaup
also installs a "fake" julia executable that is the one that does the multi-plexing. The specifics on how this is achieved in Windows are beyond me. The files that are installed in the "WindowsApp" folder are not real files, instead they are just some sort of links. This linking mechanism is not available from my bash and that's why the Permission denied
message is raised.
Edit: Found that they are called Execution Aliases. https://stackoverflow.com/questions/58296925/what-is-zero-byte-executable-files-in-windows
Found a workaround that is not too bad. Type winpty julia
or winpty juliaup
and that works fine. Those can be made as an alias in your .bashrc
I do not have access to Windows Store (employer police) thus I wanted to try this way. But I do not have AppInstaller either, and as far as I know, I can install it only from the Windows Store. Is there a third way to install juliaup?
https://www.augmentedmind.de/2021/05/30/distributing-windows-applications/ is useful.