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)

Most upvoted comments

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 farmer and 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:

git clone https://github.com/Chia-Network/chia-blockchain.git --recurse-submodules
cd chia-blockchain
git checkout release/2.0.0
git log # => 8c83d938d - (HEAD -> release/2.0.0, tag: 2.0.0-rc6, origin/release/2.0.0) 
           #      Bump chia-blockchain-gui to 2.0.0-rc6 (#16105) (Jeff 6 days ago)
[[ -z $VIRTUAL_ENV ]] || deactivate
[[ -d "venv" ]] && rm -rf venv
./install.sh &> /tmp/install.log
. ./activate
CI=true ./install-gui.sh &> /tmp/install-gui.log
cd chia-blockchain-gui
npm run electron 2>&1 | tee /tmp/start-gui.log

Unfortunately, the CI=true ./install-gui.sh &> /tmp/install-gui.log did nothing (returned instantly), and the start-gui returned an error: lerna not found image

install.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.sh alone, it does the install. I’ll try the CI=true ./install-gui.sh &> /tmp/install-gui.log after it finishes (my laptop takes a while to compile the GUI)