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

TypeError: cannot unpack non-iterable async_generator object #35

Closed GuidoBartoli closed 2 years ago

GuidoBartoli commented 2 years ago

I just installed chia-dev-tools on Linux Mint 20.3 following the official instructions.

Next, I tried to execute the test commands to see if everything works:

(chia) $ cdv test --init
(chia) $ cdv test

But after the second command I receive the following error messages:

================================================ test session starts =================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bartoli/Chia
plugins: asyncio-0.19.0
asyncio: mode=strict
collected 1 item                                                                                                     

tests/test_skeleton.py F                                                                                       [100%]

====================================================== FAILURES ======================================================
____________________________________________ TestSomething.test_something ____________________________________________

self = <tests.test_skeleton.TestSomething object at 0x7f50c6cd05b0>
setup = <async_generator object TestSomething.setup at 0x7f50c6ce5b80>

    @pytest.mark.asyncio
    async def test_something(self, setup):
>       network, alice, bob = setup
E       TypeError: cannot unpack non-iterable async_generator object

tests/test_skeleton.py:15: TypeError
============================================== short test summary info ===============================================
FAILED tests/test_skeleton.py::TestSomething::test_something - TypeError: cannot unpack non-iterable async_generato...
================================================= 1 failed in 0.06s ==================================================

It's an installation from scratch in a new virtual environment, so I don't think there are any errors on my part... has anyone had similar problems or know how I can solve them?

Thanks

jack60612 commented 2 years ago

Should be fixed now, sorry about that