holochain / holochain/holochain-client-python

Test failed 18 jan 2025

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
35
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I do the readme.md and installation works, but test fail. I installed python 3.8.20

```bash
nix develop
python -m venv .venv
source .venv/bin/activate
poetry install --no-root
cd fixture
npm install
npm run build:happ
cd ..
poetry run pytest
```

Output
```
======================================================================================= test session starts =======================================================================================
platform linux -- Python 3.8.20, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/git/holochain-client-python
plugins: asyncio-0.23.4
asyncio: mode=strict
collected 0 items / 3 errors

============================================================================================= ERRORS ==============================================================================================
_________________________________________________________________________ ERROR collecting tests/api/admin/client_test.py _________________________________________________________________________
tests/api/admin/client_test.py:2: in
from holochain_client.api.admin.types import (
holochain_client/api/admin/types.py:219: in
class AppEnabled:
holochain_client/api/admin/types.py:221: in AppEnabled
errors: List[Tuple[CellId, str]]
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:804: in __getitem__
return self.__getitem_inner__(params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:261: in inner
return func(*args, **kwds)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in __getitem_inner__
params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in
params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:149: in _type_check
raise TypeError(f"{msg} Got {arg!r:.100}.")
E TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [, ].
________________________________________________________________________ ERROR collecting tests/api/admin/signing_test.py _________________________________________________________________________
tests/api/admin/signing_test.py:1: in
from holochain_client.api.common.signing import (
holochain_client/api/common/signing.py:4: in
from holochain_client.api.admin.client import AdminClient
holochain_client/api/admin/client.py:4: in
from holochain_client.api.admin.types import (
holochain_client/api/admin/types.py:219: in
class AppEnabled:
holochain_client/api/admin/types.py:221: in AppEnabled
errors: List[Tuple[CellId, str]]
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:804: in __getitem__
return self.__getitem_inner__(params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:261: in inner
return func(*args, **kwds)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in __getitem_inner__
params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in
params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:149: in _type_check
raise TypeError(f"{msg} Got {arg!r:.100}.")
E TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [, ].
__________________________________________________________________________ ERROR collecting tests/api/app/client_test.py __________________________________________________________________________
tests/api/app/client_test.py:2: in
from holochain_client.api.admin.types import (
holochain_client/api/admin/types.py:219: in
class AppEnabled:
holochain_client/api/admin/types.py:221: in AppEnabled
errors: List[Tuple[CellId, str]]
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:804: in __getitem__
return self.__getitem_inner__(params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:261: in inner
return func(*args, **kwds)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in __getitem_inner__
params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in
params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:149: in _type_check
raise TypeError(f"{msg} Got {arg!r:.100}.")
E TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [, ].
===================================================================================== short test summary info =====================================================================================
ERROR tests/api/admin/client_test.py - TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [, ].
ERROR tests/api/admin/signing_test.py - TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [, ].
ERROR tests/api/app/client_test.py - TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [, ].
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================================== 3 errors in 0.39s ========================================================================================

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.