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

TypeError: cannot unpack non-iterable async_generator object #35

Closed
GuidoBartoli opened this issue Jul 19, 2022 · 1 comment
Closed

Comments

@GuidoBartoli
Copy link

GuidoBartoli commented Jul 19, 2022

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
Copy link
Contributor

Should be fixed now, sorry about that

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

2 participants