Closed PhattyOgre closed 3 years ago
Hmm that is interesting. I have not tried to run it on 2012 R2, and I can’t think of any reason it wouldn’t run on that version to be honest.
@PhattyOgre What is your PowerShell version?
@PhattyOgre What is your PowerShell version?
I've used both the native version (doesn't recognize the 'Install-Module' command), and so installed the latest version (7.1.3) to install the PSChiaPlotter package.
It installed everything correctly (I noticed the brief download progress bar) and it even recognizes the command to run PSChiaPlotter, but where my Win10 system then opens the GUI after a few seconds, the server OS just sits idle while nothing happens. To make sure it wasn't running through drive recognition (I don't have much on this system compared to others), I left it open to hopefully open the GUI at a later time. After leaving it alone for a night (about 6-7 hours) it still hadn't opened the GUI at that point.
So I think I've actually found a way to fix the issue. I'm going to attempt and will report back with my results and steps to replicate if this turns out to be a solution.
So here's the final answer on how to get things working:
It turns out that WinServer 2012 R2, even when fully updating .NET packages, doesn't update PS itself (which I didn't think about). So, PSChiaPlotter being written for 5.1 doesn't work for now obvious reasons. Certain functionalities just aren't present. You can get Windows to update its version of powershell though - here are the steps.
1) Head over to https://dotnet.microsoft.com/download/dotnet-framework and grab the latest .NET Framework Runtime and install. Restart if needed.
2) Grab the latest Windows Management Framework (currently located here - https://www.microsoft.com/en-us/download/details.aspx?id=54616). This is what actually updates PowerShell. Restart if needed.
3) If you attempt to install PSChiaPlotter at this point, chances are you hit an error when you try and update NuGet. Run the following command with PS in Admin mode to update the TLS version requirements if you hit the error when trying to update NuGet
4) The -Repository arg is apparently broken for some reason for me, so I ran the following:
-Install-Module -Name PSChiaPlotter
Now things are working fine. Not sure why the Repository arg throws errors, but whatever. This is apparently the same steps taken to get it working on other OSes as well (7 & 8.1, for example - read attached photo warning)
Hopefully this helps someone else get things up and running as well.
Currently using a system running Win Server 2012 R2 to plot with. Installed PSChiaPlotter and went to run the code, but nothing happened. As far as PS is concerned, it ran the code fine (no errors, etc). On my Win10 system, the GUI opens just fine, but not on this 2012 system.
Is this just a limitation of the older OS? I'd ask if it were an older PS issue, but it runs PS7 without any issues and pulled/installed from the PSGallery repo just fine.
I'd attach screenshots, but yeah, there's nothing to show. It acts like it running the command, but then nothing ever ends up happening.