silkaj issueshttps://git.duniter.org/clients/python/silkaj/-/issues2021-03-25T20:25:14+01:00https://git.duniter.org/clients/python/silkaj/-/issues/327limit recipients number for 0.8 (discussion)2021-03-25T20:25:14+01:00matograinelimit recipients number for 0.8 (discussion)For 0.8, we plan to release the feature "multiple recipients". However, this feature introduces a possible bug (#281). With max 40 inputs, the created transaction document may be too big if there are more than 15 outputs = 14 receivers +...For 0.8, we plan to release the feature "multiple recipients". However, this feature introduces a possible bug (#281). With max 40 inputs, the created transaction document may be too big if there are more than 15 outputs = 14 receivers + 1 backchange. This bug is not harmful, no money is sent when it happens.
`max_outputs = 100 - 3 - 2 x SENDERS - 2 x MAX_OUTPUTS = 100-3-(2x1)-(2x40) = 15`
Should we :
* leave this bug open (it never happened with the developpers funding account, which seems to be the only one exceeding the limit of 15)
* add a MAX_RECEIVERS = 14 limit, with an error message telling the user to spend the money with littler receivers list.
Since 0.8 is to be released in Debian repos, I would rather add the MAX_RECEIVERS limit to avoid this bug ; and go on fixing it on 0.8.x if we have time, or 0.9+ if not.0.8.xmatograinematograinehttps://git.duniter.org/clients/python/silkaj/-/issues/360jsonschema.exceptions.ValidationError: Could not parse json2020-12-06T15:25:52+01:00pokajsonschema.exceptions.ValidationError: Could not parse jsonSince I installed version 0.8.0 on my Mint 20, I got this error when I try to use Silkaj:
```
$ silkaj id poka
Traceback (most recent call last):
File "/home/poka/.local/lib/python3.8/site-packages/duniterpy/api/client.py", line 89, i...Since I installed version 0.8.0 on my Mint 20, I got this error when I try to use Silkaj:
```
$ silkaj id poka
Traceback (most recent call last):
File "/home/poka/.local/lib/python3.8/site-packages/duniterpy/api/client.py", line 89, in parse_response
data = json.loads(response)
File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/poka/.local/bin/silkaj", line 8, in <module>
sys.exit(cli())
File "/home/poka/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/poka/.local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/poka/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/poka/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/poka/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/poka/.local/lib/python3.8/site-packages/silkaj/tools.py", line 53, in wrapper
return loop.run_until_complete(f(*args, **kwargs))
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/poka/.local/lib/python3.8/site-packages/silkaj/wot.py", line 182, in id_pubkey_correspondence
pubkeys = await wot_lookup(id_pubkey)
File "/home/poka/.local/lib/python3.8/site-packages/silkaj/wot.py", line 274, in wot_lookup
results = await client(wot.lookup, identifier)
File "/home/poka/.local/lib/python3.8/site-packages/duniterpy/api/client.py", line 455, in __call__
return _function(self, *args, **kwargs)
File "/home/poka/.local/lib/python3.8/site-packages/duniterpy/api/bma/wot.py", line 282, in lookup
return client.get(MODULE + "/lookup/%s" % search, schema=LOOKUP_SCHEMA)
File "/home/poka/.local/lib/python3.8/site-packages/duniterpy/api/client.py", line 372, in get
return client.request_url(
File "/home/poka/.local/lib/python3.8/site-packages/duniterpy/api/client.py", line 285, in request_url
parse_response(content, schema)
File "/home/poka/.local/lib/python3.8/site-packages/duniterpy/api/client.py", line 94, in parse_response
raise jsonschema.ValidationError(
jsonschema.exceptions.ValidationError: Could not parse json : Expecting value: line 1 column 1 (char 0)
```
Maybe it's due to my environment, but I don't understand what's wrong.0.8.xMoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/358Unable to have a working installation: libnacl issue − poetry install2020-11-30T21:48:53+01:00Andréas LivetUnable to have a working installation: libnacl issue − poetry installI'm unable to get Silkaj working with Ubuntu 18.04 (with python 3.6.9 and pip 9.0.1)
I tried to install it with pip3 :
`pip3 install silkaj --user`
And run it with :
`~/.local/bin/silkaj`
But got an error with libnacl which is used b...I'm unable to get Silkaj working with Ubuntu 18.04 (with python 3.6.9 and pip 9.0.1)
I tried to install it with pip3 :
`pip3 install silkaj --user`
And run it with :
`~/.local/bin/silkaj`
But got an error with libnacl which is used by DuniterPy :
> File "/home/dede/.local/lib/python3.6/site-packages/duniterpy/key/ascii_armor.py", line 17, in <module>
VERSION_FIELD_VALUE = "Python Libnacl " + libnacl.__version__
AttributeError: module 'libnacl' has no attribute '__version__'
Tried to install libnacl via `apt` but pip does not use it.
I don't understand why `__version__` is not present in pip version of libnacl.
Here is what `print(libnacl.__file__)` tells me :
> /home/dede/.local/lib/python3.6/site-packages/libnacl/__init__.py
Which seems to be OK.
I tried to uninstall and reinstall libnacl but got the same problem.
So, I tried to install it locally via poetry (don't know this tool) and seems that dependencies are not installed...
When I tried :
`~/.local/bin/poetry run silkaj`
I got this error :
`ModuleNotFoundError: No module named 'click'`
Despite the fact that click is installed (at least via pip)...
I'm not a python expert, but I used pip for projects which uses click and didn't have any of those problems...
If someone can put me to the right direction it would be great.
Thanks,
Andréas0.8.xmatograinematograine