Chia-Network / chia-dev-tools

A utility for developing in the Chia ecosystem: Chialisp functions, object inspection, RPC client and more.
Apache License 2.0
45 stars 32 forks source link

ImportError: cannot import name 'SerializedProgram' from 'chia.types.blockchain_format.program' #90

Closed 4oooo4 closed 1 year ago

4oooo4 commented 1 year ago

Error

image

Steps to reproduce

mkdir learning
cd learning
py -m venv venv
./venv/Scripts/activate
pip install chia-dev-tools
cdv --version

Environment

OS: Windows 11 python: 3.10.5 pip: 23.0.1

pip list

Package                Version
---------------------- -------
aiofiles               23.1.0
aiohttp                3.8.4
aiosignal              1.3.1
aiosqlite              0.17.0
anyio                  3.6.2
async-timeout          4.0.2
attrs                  22.2.0
bitstring              4.0.1
blspy                  1.0.16
cffi                   1.15.1
charset-normalizer     3.1.0
chia-blockchain        1.7.1
chia-dev-tools         1.1.5
chia_rs                0.2.4
chiabip158             1.2
chiapos                1.0.11
chiavdf                1.0.8
click                  8.1.3
clvm                   0.9.7
clvm-tools             0.4.6
clvm_tools_rs          0.1.30
colorama               0.4.6
colorlog               6.7.0
concurrent-log-handler 0.9.20
cryptography           39.0.1
dnslib                 0.9.23
dnspython              2.3.0
exceptiongroup         1.1.1
filelock               3.9.0
frozenlist             1.3.3
idna                   3.4
importlib-metadata     6.3.0
iniconfig              2.0.0
jaraco.classes         3.2.3
psutil                 5.9.4
pybind11               2.10.4
pycparser              2.21
pytest                 7.3.1
pytest-asyncio         0.21.0
pytimeparse            1.1.8
pywin32                306
pywin32-ctypes         0.2.0
PyYAML                 6.0
setproctitle           1.3.2
setuptools             58.1.0
sniffio                1.3.0
sortedcontainers       2.4.0
tomli                  2.0.1
typing_extensions      4.5.0
watchdog               2.2.0
yarl                   1.8.2
zipp                   3.15.0
zstd                   1.5.4.0

Clear cache and reinstall chia-dev-tools doesn't help. Any idea how to solve this issue? Thank you in advance.

4oooo4 commented 1 year ago

Just an update: from git repo works fine, branch: main, cdv version: 1.2.0b1

dev-bjoern commented 1 year ago

I get the same error on my Apple M1, mac os 13.3.1.

Python 3.10.11 pip 23.0.1

Install from git also works for me.

forReason commented 1 year ago

same issue on ubuntu 22.04. Chia version is 1.7.1

thanks for the heads up with the Repo installation

installation brings an error but also seems to work for me ERROR: chia-blockchain 1.7.1 has requirement packaging==23.0, but you'll have packaging 23.1 which is incompatible.

jack60612 commented 1 year ago

was this resolved?

Quexington commented 1 year ago

This should be good in the latest version.