believethehype / nostrdvm Goto Github PK
View Code? Open in Web Editor NEWFramework to run NIP90 Nostr DVMs
License: MIT License
Framework to run NIP90 Nostr DVMs
License: MIT License
I tried to run trending-notes example, but I'm getting this error:
thread 'client' panicked at /github/home/.cargo/git/checkouts/uniffi-rs-6f89edd2a1ffa4bd/59c1e3e/uniffi_core/src/ffi_converter_traits.rs:326:9:
Callback interface failure: UnexpectedUniFFICallbackError(reason: "AttributeError(\"'Event' object has no attribute 'author'\")")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)
Ran the current master branch via python main.py
on a small digital ocean instance, then posted a translation request through vendata.io. This is the error I kept getting:
Getting profile metadata for npub1mgvwnpsqgrem7jfcwm7pdvdfz2h95mm04r23t8pau2uzxwsdnpgs0gpdjc... Adding User: da18e9860040f3bf493876fc16b1a912ae5a6f6fa8d5159c3de2b8233a0d9851 (da18e9860040f3bf493876fc16b1a912ae5a6f6fa8d5159c3de2b8233a0d9851) [Google Translator] Received new Request: translation from Dustin Dannenhauer [Google Translator] Free task or Whitelisted for task translation. Starting processing.. {"id":"f26ba824a7ce3dae071997cb3f7d34aa2157f629ac862545f94596ee5123000d","pubkey":"24851ba52d1d7c090fd92184d9f11caddb760a733b2e9180408c367da7454242","created_at":1704873572,"kind":7000,"tags":[["e","2b9909d6d6628ba84476fe1800c2da81fe98f1fb60b9d747eae4fb8f448612fa"],["alt","NIP90 DVM AI task translation started processing. "],["status","processing"],["p","da18e9860040f3bf493876fc16b1a912ae5a6f6fa8d5159c3de2b8233a0d9851"]],"content":"NIP90 DVM AI task translation started processing. ๐","sig":"f68f8d6c5defa20892b2f9b13a49e79d6fc3f67a3865c91b5235bfec734f10cc8759a77c5c992be92a3b8d7a73f5aafed1f000669c2986490dbeaf7a8a071e1b"} {"id":"accf2713a5c818e3dfa8aaae385064b97be3ccd3f2336819efb9dc119e2a553b","pubkey":"ee5595ded47f1c376576cb7d31e786eaf454df24c91ca2d2967062ccf7d28e53","created_at":1704873572,"kind":7000,"tags":[["e","2b9909d6d6628ba84476fe1800c2da81fe98f1fb60b9d747eae4fb8f448612fa"],["alt","NIP90 DVM AI task translation started processing. "],["status","processing"],["p","da18e9860040f3bf493876fc16b1a912ae5a6f6fa8d5159c3de2b8233a0d9851"]],"content":"NIP90 DVM AI task translation started processing. ๐","sig":"6ba73f38071204bb311562c61f680b2e73c54a19881ffecb78f34ecb2877a03dc6b3b521d04128420057d5adb3412d6ecf1b9c14e4788ccea7439aa05c6eb159"} [Google Translator]: Sent Kind 7000 Reaction: processing {"id":"accf2713a5c818e3dfa8aaae385064b97be3ccd3f2336819efb9dc119e2a553b","pubkey":"ee5595ded47f1c376576cb7d31e786eaf454df24c91ca2d2967062ccf7d28e53","created_at":1704873572,"kind":7000,"tags":[["e","2b9909d6d6628ba84476fe1800c2da81fe98f1fb60b9d747eae4fb8f448612fa"],["alt","NIP90 DVM AI task translation started processing. "],["status","processing"],["p","da18e9860040f3bf493876fc16b1a912ae5a6f6fa8d5159c3de2b8233a0d9851"]],"content":"NIP90 DVM AI task translation started processing. ๐","sig":"6ba73f38071204bb311562c61f680b2e73c54a19881ffecb78f34ecb2877a03dc6b3b521d04128420057d5adb3412d6ecf1b9c14e4788ccea7439aa05c6eb159"} Traceback (most recent call last): File "/home/dustin/nostrdvm/nostr_dvm/tasks/translation_google.py", line 3, in <module> from nostr_dvm.interfaces.dvmtaskinterface import DVMTaskInterface, process_venv ModuleNotFoundError: No module named 'nostr_dvm' Finished processing, loading data.. {"id":"a6faae81e085b72fc56ca9c7206daf0ab6671ced67154fa017a72939c8b49b91","pubkey":"ee5595ded47f1c376576cb7d31e786eaf454df24c91ca2d2967062ccf7d28e53","created_at":1704873572,"kind":7000,"tags":[["e","2b9909d6d6628ba84476fe1800c2da81fe98f1fb60b9d747eae4fb8f448612fa"],["alt","NIP90 DVM AI task translation had an error. "],["status","error"],["p","da18e9860040f3bf493876fc16b1a912ae5a6f6fa8d5159c3de2b8233a0d9851"]],"content":"NIP90 DVM AI task translation had an error. ๐ ","sig":"98bd539113bcac8eded2de7502a96236163440b79b8ff1fea95bb87aa48eb4947f0e4078c9744fa078eb933f07b5407170ec746871b86a6ccce3e42557ebadeb"} [Google Translator]: Sent Kind 7000 Reaction: error {"id":"a6faae81e085b72fc56ca9c7206daf0ab6671ced67154fa017a72939c8b49b91","pubkey":"ee5595ded47f1c376576cb7d31e786eaf454df24c91ca2d2967062ccf7d28e53","created_at":1704873572,"kind":7000,"tags":[["e","2b9909d6d6628ba84476fe1800c2da81fe98f1fb60b9d747eae4fb8f448612fa"],["alt","NIP90 DVM AI task translation had an error. "],["status","error"],["p","da18e9860040f3bf493876fc16b1a912ae5a6f6fa8d5159c3de2b8233a0d9851"]],"content":"NIP90 DVM AI task translation had an error. ๐ ","sig":"98bd539113bcac8eded2de7502a96236163440b79b8ff1fea95bb87aa48eb4947f0e4078c9744fa078eb933f07b5407170ec746871b86a6ccce3e42557ebadeb"}
nostr_dvm is clearly being imported properly in the beginning when it gets set up. I'm still getting up to speed on the code base. It looks like each dvm may run it's own virtualenv and perhaps the translation virtual_env didn't get nostr_dvm installed?
Could we see about getting a demo set up that uses custodial lnbits (or other solutions) for accepting payments? This would help folks that don't happen to already be running a full bitcoin + lightning node with lnbits.
I tried to use legend.lnbits.com but kept getting this error:
WARNING:dotenv.main:Python-dotenv could not parse statement starting at line 18
https://legend.lnbits.com/usermanager/api/v1/users
and my .env file looks like:
# Optional LNBITS options to create invoices (if empty, it will use the lud16 from profile)
# Admin Key is (only) required for bot or if any payments should be made
#Create an account with a lnbits instance of your choice, add the admin key and id here. This account will be used to create a new lnbits wallet for each dvm/bot
LNBITS_ADMIN_KEY = "c0d20....." # In order to pay invoices, e.g. from the bot to DVMs, or reimburse users. Keep this secret and use responsibly.
LNBITS_ADMIN_ID = "696c...."
LNBITS_HOST = "https://legend.lnbits.com"
# In order to create a zappable lightning address, host nostdress on your domain or use this preinstalled domain.
# We will use the api to create and manage zapable lightning addresses
NOSTDRESS_DOMAIN = "nostrdvm.com"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.