chia-blockchain: [Bug] [v2.0.0-RC4] Cannot run the GUI wallet due to "ModuleNotFoundError"
What happened?
Hello,
I’m used to install chia from source, on Archlinux, and I wanted to give a try to the v2.0.0 RC2. (wallet only) The CLI appears to work so far.
When I launch the GUI wallet, it remains stuck on “Loading keyring status”, and I get some error in the console (see bellow). Here the commands I used to build:
git checkout -- .
git checkout 2.0.0-rc2
git reset --hard --recurse-submodules
git status # shows no modifications, HEAD is now at 40134512c remove chip13 (#15871)
sh install.sh
. ./activate
chia init
cd chia-blockchain-gui
git fetch
cd ..
chmod +x ./install-gui.sh
./install-gui.sh
bash start-gui.sh &
No error during the build/install
Version
v2.0.0-RC2
What platform are you using?
Linux
What ui mode are you using?
GUI
Relevant log output
# bash ~/git/chia-blockchain/start-gui.sh &
[1] 13216
### Checking GUI dependencies
Found npm 9.8.1
### Checking GUI build
Found /home/ealrann/git/chia-blockchain/chia-blockchain-gui/packages/gui/build/electron/main.js
### Starting GUI
npm run electron
> root@2.0.0-rc3.dev0 electron
> npm run start:gui
> root@2.0.0-rc3.dev0 start:gui
> lerna run start --scope @chia-network/gui
lerna notice cli v7.1.3
lerna notice filter including "@chia-network/gui"
lerna info filter [ '@chia-network/gui' ]
> @chia-network/gui:start
> @chia-network/gui@2.0.0-rc3.dev0 start
> npm run electron
> @chia-network/gui@2.0.0-rc3.dev0 electron
> electron .
Checking if userData migration is needed
/home/ealrann/.config/Chia Blockchain/Local Storage/leveldb exists: true
/home/ealrann/.chia/mainnet/gui/Chia Blockchain/Local Storage/leveldb exists: true
/home/ealrann/.config/Chia Blockchain/Local Storage/leveldb/migrated exists: true
Migration needed: false
Setting user data directory to /home/ealrann/.chia/mainnet/gui/Chia Blockchain
Running python script
Script ../../../chia/daemon/server.py
child process success
stderr: Traceback (most recent call last):
File "/home/ealrann/git/chia-blockchain/chia-blockchain-gui/packages/gui/../../../chia/daemon/server.py", line 25, in <module>
from chia.cmds.init_funcs import check_keys, chia_full_version_str, chia_init
stderr: File "/home/ealrann/git/chia-blockchain/chia/cmds/init_funcs.py", line 13, in <module>
from chia.consensus.coinbase import create_puzzlehash_for_pk
File "/home/ealrann/git/chia-blockchain/chia/consensus/coinbase.py", line 8, in <module>
from chia.wallet.puzzles.p2_delegated_puzzle_or_hidden_puzzle import puzzle_hash_for_pk
File "/home/ealrann/git/chia-blockchain/chia/wallet/puzzles/p2_delegated_puzzle_or_hidden_puzzle.py", line 66, in <module>
from chia.types.blockchain_format.program import Program
File "/home/ealrann/git/chia-blockchain/chia/types/blockchain_format/program.py", line 6, in <module>
from chia_rs import ALLOW_BACKREFS, run_chia_program, tree_hash
ImportError: cannot import name 'ALLOW_BACKREFS' from 'chia_rs' (/home/ealrann/.local/lib/python3.11/site-packages/chia_rs/__init__.py)
closing code: 1
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 39 (28 by maintainers)
this works for me too, yeay!
Sure, running the daemon alone won’t start any other services. I was just curious if you would see the same blspy issue when running the daemon alone.
By the way, you can always start chia services before starting the GUI. I frequently will run
chia start farmerand then launch the GUI. I expect that would at least get you past initial failure you’re seeing.Thanks for your time!
Ok, I deleted again my repo (
rm -rf ~/git/chia-blockchain/), and I used these commands to rebuild:Unfortunately, the
CI=true ./install-gui.sh &> /tmp/install-gui.logdid nothing (returned instantly), and the start-gui returned an error: lerna not foundinstall.log install-gui.log start-gui.log
I’m available on discord if you want/need to debug that faster (Ealrann#5116)
Edit 1: If I run the
install-gui.shalone, it does the install. I’ll try theCI=true ./install-gui.sh &> /tmp/install-gui.logafter it finishes (my laptop takes a while to compile the GUI)