MrPig91 / PSChiaPlotter

A repo for powershell module that helps Chia Plotting
MIT License
182 stars 47 forks source link

Can't find chia.exe #214

Closed warrengalyen closed 1 year ago

warrengalyen commented 1 year ago

With the release of Chia 1.6.1, the default installation path has changed to "..AppData\Local\Programs\Chia..." which is preventing me from running a job. I added the new folder path for Chia to the Powershell environment path and removed the old one but your script seems to be ignoring this as I get a prompt saying it can't find Chia in the old "chia-blockchain" path.

There doesn't seem to be any other way to set the default Chia path.

Critter-ID commented 1 year ago

I had the same problem. You need to edit

C:\Program Files\WindowsPowerShell\Modules\PSChiaPlotter\1.0.55\PSChiaPlotter.psm1

all

"$ENV:LOCALAPPDATA\chia-blockchain\app-*\resources\app.asar.unpacked\daemon\chia.exe"

to

"$ENV:LOCALAPPDATA\Programs\Chia\resources\app.asar.unpacked\daemon\chia.exe"

warrengalyen commented 1 year ago

@Critter-ID Thanks for identifying that line. Not sure why the Setup instructions define a global variable for the chia.exe path when this is completely ignored and hard-coded. I noticed the path is referenced across about a dozen files as well in the module path, so these need to replaced too to get it working correctly.

I will probably do a fork of this repo with changes to get it working again for other users since it hasn't been updated in a long time.

MrPig91 commented 1 year ago

I went ahead and updated the module. It should work with the new version now.

Critter-ID commented 1 year ago

@MrPig91 glad to see you in this thread, thanks for this module again

Critter-ID commented 1 year ago

@warrengalyen so that is the way we closed our little question :)

warrengalyen commented 1 year ago

@MrPig91 Thanks for jumping on that! Wasn't expecting such a quick response.

warrengalyen commented 1 year ago

@MrPig91 Tossed some ETH your way since I find this tool very useful.

MrPig91 commented 1 year ago

@warrengalyen thank you so much, I really appreciate it! I am also happy to hear you find the tool useful.