Code Monkey home page Code Monkey logo

nostrdvm's People

Contributors

believethehype avatar greenart7c3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nostrdvm's Issues

Demo with custodial lnbits possible?

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.

Possible custodial options:

What I tried:

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"

thread 'client' panicked

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)

No module named "nostr_dvm" when translation dvm tries to respond

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.