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

Can't start pool #286

Open
rabbitii opened this issue Feb 5, 2023 · 2 comments
Open

Can't start pool #286

rabbitii opened this issue Feb 5, 2023 · 2 comments

Comments

@rabbitii
Copy link

rabbitii commented Feb 5, 2023

(venv) root@chia-pool:~/pool-reference# CHIA_ROOT="/root/.chia/mainnet/" ./venv/bin/python -m pool
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/root/pool-reference/pool/main.py", line 1, in
from pool.pool_server import main
File "/root/pool-reference/pool/pool_server.py", line 35, in
from .pool import Pool
File "/root/pool-reference/pool/pool.py", line 50, in
from .singleton import create_absorb_transaction, get_singleton_state, get_coin_spend, get_farmed_height
File "/root/pool-reference/pool/singleton.py", line 20, in
from chia.types.blockchain_format.program import Program, SerializedProgram
ImportError: cannot import name 'SerializedProgram' from 'chia.types.blockchain_format.program' (/root/pool-reference/venv/lib/python3.10/site-packages/chia/types/blockchain_format/program.py)

@netcom-rs
Copy link

This is caused by some changes. please change following line in /root/pool-reference/pool/singleton.py

from chia.types.blockchain_format.program import Program, SerializedProgram

to

from chia.types.blockchain_format.serialized_program import Program, SerializedProgram.

Cheers.

@AmineKhaldi
Copy link
Contributor

AmineKhaldi commented Mar 10, 2023

I sent #287 to address this. Thank you both!

AmineKhaldi added a commit to AmineKhaldi/pool-reference that referenced this issue Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants