holochain / holochain/holochain-client-python

Test failed 18 jan 2025

Aperta
#1 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
35
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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 ========================================================================================

```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start at holochain_client/api/admin/types.py line 221, where AppEnabled is defined, and inspect the related type declarations for Python 3.8 compatibility. Run the reported pytest command and check the collection errors in tests/api/admin/client_test.py, tests/api/admin/signing_test.py, and tests/api/app/client_test.py. Done means test collection succeeds and the suite can run.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
api, backend
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.