-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Windows #7
Comments
I was able to successfully run it without any issues on Windows 10 with the latest Python 3.9.4 Windows distribution. The steps for running it are pretty much the same, only difference is that on Windows , the Python virtual environment is activated by running the
What else I probably had to set differently is the |
Get the following error when trying to run on Windows 10 with Python 3.9.4 and modified debug.log file path.
|
@stoatlemon Hm the error mainly seem to be that its not finding your specified debug.log file. Try with different path configuration like Also try commenting the last line in main.py since |
I just tried to get this up and going, and everything seemed to work.. but when I try to launch main.py, here’s what I get:
Any ideas? Thanks in advance. |
Hi @cipriani14 , two things:
Did you use the pattern suggested |
Thanks, I have removed those lines and that did the trick for the last errors. I can find my debug.log in the expected spot, and have chiadog pointed to it in the config.yaml file. When I paste the same path into File Explorer it opens the debug.log file as expected. I have also tried the suggestion above by changing the path _C:/Users//.chia/mainnet/log/debug.log or C:\Users\\.chia\mainnet\log\debug.log with no luck. I have to step out for a while, but will keep tinkering to get it working. |
I have the same issue as @cipriani14 , have tried :
Pasting either of those into explorer opens the debug log without issue. Also tried this but it isn't a valid path: |
Was anyone able to solve this issue on windows? No path seems to be accepted. With shell=true (NOT recommended) there's no error but also no updates... |
Do you get number of plots detected when doing that? You can switch log level to |
What to you mean by "With shell=true"? Is this a setting to be added in config.yaml? Thanks! |
Ok I apologize, apparently both of the ways I tried running it using VS Code or Cmder, both had bash console emulators, which support the Edit: Using powershell commands works so I could PR it as well. In the meantime you can replace Line 69 with:
|
@skrustev this fixed it for me. Thank you, all! |
The above fix works. I can start the main.py with my config.yaml and it detects the plots. But as soon as the time comes to create the daily stats, it crashes with a "division by zero".
Is there something wrong on my side? I tried with and without notifiers (tried Pushover and SMTP), but always get the same result. Edit: |
@angryBOT this isn't windows specific. It's recently introduced bug reported also here #46 It happens only when running harvester separately from the node, that's a use-case that wasn't properly covered by tests. I'll aim to release a hot fix release later today. Edit: You can just return empty string from get_summary() if total is 0. |
@martomi thanks a lot for replying quickly! Just additional info from my side: I am running the Chia GUI on one machine. So basically everything is running on localhost/127.0.0.1 (full node and harvester). Edit:
I even do not know, what "signage points" are and wether they should be 0 or always higher. Nonetheless: I now get my daily summary via Pushover, which also contains reasonable numbers: Proofs: 0 found Should I remove the "workaround" or can it keep running like that without major issues? Thanks again! |
@angryBOT You can keep the workaround but it's interesting that you're not seeing signage points on your node's logs.
If that's not the case, then please open a separate issue describing the exact setup + chia version. |
I'm going to close this issue because it's now very noisy and we already had a major PR for support #43 merged. Some additional testing and contributions to documentations are necessary to officially announce the support but that should be handled in separate new issues or discussions |
I personally don't have Windows to test and am not familiar with how the chia environment there is setup but can provide guidance on the steps necessary to add such support.
Here are some jumping off points if someone wants to take over:
Get-Content <log-file> -Tail <#-of-rows> -Wait
windows_log_consumer
config. See here for an example. It needs to point to default path on Windows wheredebug.log
is stored.I suggest doing a quick test by directly modifying the FileLogConsumer and changing the path in the config to see if there are any other showstoppers to make this work on Windows. That will already be very valuable feedback.
The text was updated successfully, but these errors were encountered: