question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Chia does not work with python 3.10

See original GitHub issue

Describe the bug

After a routine OS upgrade from Python 3.9 to 3.10, chia start node fails to start the node. While the chia_daemon process starts (and writes out its mainnet/run/start-daemon.launching), the main “chia” CLI thinks that it has not done so, and refuses to start any of the other requested processes (node, farmer, etc).

To Reproduce

Steps to reproduce the behavior:

  1. Upgrade OS from Python 3.9 to 3.10
  2. (re)Build Chia
~$ cd /usr/local/chia-blockchain
~$ rm -rf venv
~$ bash ./install.sh
...
~$ . ./activate
(venv) ~$ chia version
1.2.9
(venv) ~$ chia start node
Daemon not started yet
Starting daemon
Daemon not started yet
Failed to create the chia daemon
(venv) ~$ pgrep chia
4368
(venv) ~$ ps -p 4368
  PID TTY          TIME CMD
 4368 pts/0    00:00:01 chia_daemon
(venv) ~$ cat ../mainnet/log/debug.log
2021-10-12T17:22:24.578 daemon chia.daemon.server         : INFO     Starting Daemon Server
2021-10-12T17:22:24.580 daemon chia.daemon.server         : INFO     Waiting Daemon WebSocketSer
(venv) $~ chia stop -d node
Daemon not started yet
Couldn't connect to chia daemon
(venv) ~$ killall chia_daemon
(venv) ~$ cat ../mainnet/log/debug.log
2021-10-12T17:22:24.578 daemon chia.daemon.server         : INFO     Starting Daemon Server
2021-10-12T17:22:24.580 daemon chia.daemon.server         : INFO     Waiting Daemon WebSocketServer closure
2021-10-12T17:39:34.066 daemon chia.daemon.server         : INFO     chia daemon exiting in 5 seconds
(venv) ~$
  1. Build an OS package for Python3.9 that installs to /opt or somewhere other than /usr. Install it. [ Insert expletives here ]
  2. Rebuild Chia
~$ python --version
Python 3.9.7
~$ cd /usr/local/chia-blockchain
~$ rm -rf venv
~$ bash ./install.sh
...
~$ . ./activate
(venv) ~$ chia version
1.2.9
(venv) ~$ chia start farmer
Daemon not started yet
Starting daemon
chia_harvester: Already running, use `-r` to restart
chia_farmer: Already running, use `-r` to restart
chia_full_node: Already running, use `-r` to restart
chia_wallet: Already running, use `-r` to restart
(venv) ~$

Expected behavior

Chia should start normally, as in the latter half of the description, above.

Desktop

  • OS: Slackware Linux
  • OS Version/Flavor: Current (pre-15.0)
  • CPU: x86_64, Ryzen 2700

Additional context

Note that the GUI works just fine under Python 3.10. Only the daemon has issues. (I didn’t try the timelord, as the CPU running the actual daemon - not my development machine - is much older.)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
emlowecommented, May 2, 2022

Note, main right now does work with python 3.10

1reaction
emlowecommented, Apr 26, 2022

Targeted to be fixed in 1.3.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - [BUG] Chia does not work with python 3.10 -
After a routine OS upgrade from Python 3.9 to 3.10, chia start node fails to start the node. While the chia_daemon process starts...
Read more >
Python version help - Q&A - Clear Linux OS Forum
I am farming Chia cryptocurrency and the various forks of Chia. Some are compatible with python 3.10 and then I have some that...
Read more >
bisect — Array bisection algorithm — Python 3.11.1 ...
To support searching complex records, the key function is not applied to the x value. If key is None , the elements are...
Read more >
chia-blockchain Changelog - pyup.io
This was causing the GUI application to fail in many "fun" ways after plotting a lot of plots in parallel. - Fixed plot...
Read more >
Chia daemon refuse to start (Waiting Daemon ... - Chia Forum
I just restarted operating system hoping that this will help. After restart I still wasn't able to run chia farmer services (broken python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found