Skip to content
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

[Bug] 2.3.0 unable to run on FreeBSD #17988

Open
alghmma opened this issue May 8, 2024 · 1 comment
Open

[Bug] 2.3.0 unable to run on FreeBSD #17988

alghmma opened this issue May 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@alghmma
Copy link

alghmma commented May 8, 2024

What happened?

Built 2.3.0 on Freebsd 14, won't run because of missing system_delays for this platform.

Locally added

    try:
        _system_delay = system_delays["local"][sys.platform]
    except KeyError:
        _system_delay = system_delays["local"]["linux"]

to chia/util/timing.py to fallback to linux settings if platform not found

Version

2.3.0

What platform are you using?

Linux

What ui mode are you using?

CLI

Relevant log output

# chia start farmer
Traceback (most recent call last):
  File "/usr/home/chia/chia_builds/2.3.0/venv/bin/chia", line 5, in <module>
    from chia.cmds.chia import main
  File "/usr/home/chia/chia_builds/2.3.0/chia/cmds/chia.py", line 15, in <module>
    from chia.cmds.dev import dev_cmd
  File "/usr/home/chia/chia_builds/2.3.0/chia/cmds/dev.py", line 5, in <module>
    from chia.cmds.installers import installers_group
  File "/usr/home/chia/chia_builds/2.3.0/chia/cmds/installers.py", line 12, in <module>
    from chia.util.timing import adjusted_timeout
  File "/usr/home/chia/chia_builds/2.3.0/chia/util/timing.py", line 28, in <module>
    _system_delay = system_delays["local"][sys.platform]
KeyError: 'freebsd14'
@ChristopherP1221
Copy link

ChristopherP1221 commented May 9, 2024

Please disregard, this seems to have worked great. I had two different files to make the change in. I glossed over the stacktrace path on the 2nd error.

"/home/chia/chia-blockchain/venv/lib/python3.9/site-packages/chia/util/timing.py"
"/home/chia/chia-blockchain/chia/util/timing.py"

I have the same bug on freebsd13. I tried updating locally and rerunning 'chia init' it still fails. Do I need to recompile anything or delete any cache files?

~(venv) [chia@chia /chia-blockchain]$ chia init -c
Traceback (most recent call last):
File "/home/chia/chia-blockchain/venv/bin/chia", line 5, in
from chia.cmds.chia import main
File "/home/chia/chia-blockchain/venv/lib/python3.9/site-packages/chia/cmds/chia.py", line 15, in
from chia.cmds.dev import dev_cmd
File "/home/chia/chia-blockchain/venv/lib/python3.9/site-packages/chia/cmds/dev.py", line 5, in
from chia.cmds.installers import installers_group
File "/home/chia/chia-blockchain/venv/lib/python3.9/site-packages/chia/cmds/installers.py", line 12, in
from chia.util.timing import adjusted_timeout
File "/home/chia/chia-blockchain/venv/lib/python3.9/site-packages/chia/util/timing.py", line 28, in
_system_delay = system_delays["local"][sys.platform]
KeyError: 'freebsd13'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants