Closed splix closed 3 months ago
Thanks for reporting. Is there any other information printed on the screen other than the stack trace? We would need to know what exact data is in the transaction that caused this. If there is no other info being printed, could you add a new log line just before line 138 of transaction resolver (before the if is_unknown(...
):
LOGGER.info("resolving transaction: %s", str(transaction))
Then run again and check what is the last transaction being printed.
Feel free to remove any personally identifiable information from the transactions you post here.
It can be reproduced with the following command:
python - << EOF
from rp2.rp2_decimal import RP2Decimal
RP2Decimal(1) < RP2Decimal(1)
EOF
Produces:
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/rp2/src/rp2/rp2_decimal.py", line 58, in __lt__
return not self.__ge__(other)
File "/rp2/src/rp2/rp2_decimal.py", line 47, in __ge__
return (self - other).quantize(CRYPTO_DECIMAL_MASK).__ge__(ZERO)
File "/rp2/src/rp2/rp2_decimal.py", line 68, in __sub__
return RP2Decimal(Decimal.__sub__(self, other))
File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/_pydecimal.py", line 1257, in __sub__
return self.__add__(other.copy_negate(), context=context)
TypeError: __add__() got an unexpected keyword argument 'context'
NOTE: I downgraded Python to 3.9 thinking it may be something with 3.10 which is in the original error. And tried with rp2
sources as well. Same result.
The command you pasted works for me: the error you got seems similar to what was observed in this RP2 issue.
That seems to be the reason.
My system Python installation was also using _pydecimal.py
implementation. Switching to a python installed with brew (also ensuring I have brew install mpdecimal
) fixed the issue.
Thank you
Running
dali
fails with:Trying with dali from source at commit [97fcb78] (tag
0.6.10
)The installed version of rp2 is: