silkaj issueshttps://git.duniter.org/clients/python/silkaj/-/issues2023-11-21T22:25:46+01:00https://git.duniter.org/clients/python/silkaj/-/issues/437Issue to import libsodium on Windows2023-11-21T22:25:46+01:00MoulIssue to import libsodium on Windows```bash
OSError: Could not locate nacl lib, searched for libsodium
```
In DuniterPy we are using `libnacl` which requires `libsodium` to be installed on Unix from the distribution package
manager. On Windows, [it can be installed](https...```bash
OSError: Could not locate nacl lib, searched for libsodium
```
In DuniterPy we are using `libnacl` which requires `libsodium` to be installed on Unix from the distribution package
manager. On Windows, [it can be installed](https://stackoverflow.com/questions/47413755/installing-pythons-cryptography-on-windows).
For DuniterPy, we could use `PyNaCl`: duniterpy#83.
Or migrate to `substrate-interface` cryptography’s.Backloghttps://git.duniter.org/clients/python/silkaj/-/issues/399Use click.CliRunner instead of check_output for testing2023-06-05T10:03:08+02:00matograineUse click.CliRunner instead of check_output for testingsee this [message](https://git.duniter.org/clients/python/silkaj/-/merge_requests/179#note_27418).
Tests using `check_output()` result in not passing on some local installations (here on Debian10).
They could use `click.CliRunner` inste...see this [message](https://git.duniter.org/clients/python/silkaj/-/merge_requests/179#note_27418).
Tests using `check_output()` result in not passing on some local installations (here on Debian10).
They could use `click.CliRunner` instead.
This only concerns `tests/test_end_to_end.py` file.Backloghttps://git.duniter.org/clients/python/silkaj/-/issues/187Certification confirmation tests broken since Click.confirm() and async usage2022-06-26T22:35:56+02:00MoulCertification confirmation tests broken since Click.confirm() and async usage- Since `click.confirm()` usage in e7b6e26.
- [x] Should be fixable with https://click.palletsprojects.com/en/7.x/testing/#input-streams
- Since asynchronism usage in 583c3d4:
- [x] #225: Install [pytest-asyncio](https://pypi.org/pro...- Since `click.confirm()` usage in e7b6e26.
- [x] Should be fixable with https://click.palletsprojects.com/en/7.x/testing/#input-streams
- Since asynchronism usage in 583c3d4:
- [x] #225: Install [pytest-asyncio](https://pypi.org/project/pytest-asyncio/)
- [ ] Unfortunately, Click does not handle async. And the return `Result` object does not contains values but only defaults one. It does return like a coroutine instead of the `Result` object.Backloghttps://git.duniter.org/clients/python/silkaj/-/issues/14IPv6-only nodes are not handled2022-06-25T11:51:20+02:00MoulIPv6-only nodes are not handled```bash
2a01:e35:8ae7:8bb0:7b0a:b4ec:ad04:dd57
Traceback (most recent call last):
File "./silkaj", line 50, in <module>
manage_cmd(ep, c)
File "./silkaj", line 25, in manage_cmd
network_info(ep, c.contains_switches("discover"...```bash
2a01:e35:8ae7:8bb0:7b0a:b4ec:ad04:dd57
Traceback (most recent call last):
File "./silkaj", line 50, in <module>
manage_cmd(ep, c)
File "./silkaj", line 25, in manage_cmd
network_info(ep, c.contains_switches("discover"))
File "/home/moul/projects/silkaj/src/commands.py", line 67, in network_info
endpoints = discover_peers(ep, discover)
File "/home/moul/projects/silkaj/src/network_tools.py", line 18, in discover_peers
if best_node(ep, 0) is None: endpoints.remove(ep)
File "/home/moul/projects/silkaj/src/network_tools.py", line 101, in best_node
s.connect((ep[address], port))
socket.gaierror: [Errno -9] Address family for hostname not supported
```
- It [seems it doesn't works as it's a local IP6 address](https://stackoverflow.com/questions/30790075/ipv6-python-sockets-not-working/30790206#30790206)
- Remote nodes with only IP6 are not here: may be as there are not know by non IPv6 nodes.
- [Socket documentation](https://docs.python.org/3/library/socket.html)Backlog