python-nostr
python-nostr copied to clipboard
MemoryError: Cannot allocate write+execute memory for ffi.callback().
I'm having this error when trying to use nostr in a core-lightning plugin.
Any suggestions as to what it could be?
Sep 23 03:01:13 lightningd[277366]: Traceback (most recent call last): Sep 23 03:01:13 lightningd[277366]: File "/hdd/cln/.lightning/plugins/managerByNostr.py", line 10, in
Sep 23 03:01:13 lightningd[277366]: from nostr.key import PublicKey, PrivateKey Sep 23 03:01:13 lightningd[277366]: File "/home/bitten/.local/lib/python3.10/site-packages/nostr/key.py", line 151, in Sep 23 03:01:13 lightningd[277366]: def copy_x(output, x32, y32, data): Sep 23 03:01:13 lightningd[277366]: File "/usr/local/lib/python3.10/dist-packages/cffi/api.py", line 396, in callback_decorator_wrap Sep 23 03:01:13 lightningd[277366]: return self._backend.callback(cdecl, python_callable, Sep 23 03:01:13 lightningd[277366]: MemoryError: Cannot allocate write+execute memory for ffi.callback().