Publish to relays fails with TypeError (python3.11.4, nostr 0.0.2)
Trying the current "Publish to relays" example I get
event = Event("Hello Nostr")
^^^^^^^^^^^^^^^^^^^^
TypeError: Event.__init__() missing 1 required positional argument: 'content'
Not sure what's missing.
Using
- nostr
0.0.2 - Python 3.11
The old example with version 0.0.1 and Pyhton 3.10.9 still works. Rolling back for now.
If I remember correctly, you need to use like this Event(publickey="", content="")
Hm, yes, with 0.0.1 it works like that.
The README example was changed here: https://github.com/jeffthibault/python-nostr/commit/69ff17b163f8af40f9514bcf7937964cb22997a2#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R53 Trying the current example doesn't work for me.
I have the same problem...
the readme is still incorrect... "publish to relays" section
After the current "Python 3.10.9 / nostr 0.0.1"-setup started to fail as well I switched to Calles fork as well and everything works fine again.