Service Daemon exposes an AI application as an API that is accessible through the SingularityNET Network. It handles all interaction with the blockchain for authorization and payment using AGI tokens and passes through API calls to the AI application.
On ubuntu 22, the ./scripts/install fails as follows:
mini-me@virtucon ~/h/c/snet-daemon (master)> ./scripts/install
++++ dirname ./scripts/install
+++ cd ./scripts
+++ pwd -P
++ dirname /home/mini-me/home/cellar/snet-daemon/scripts
+ PARENT_PATH=/home/mini-me/home/cellar/snet-daemon
+ pushd /home/mini-me/home/cellar/snet-daemon
~/home/cellar/snet-daemon ~/home/cellar/snet-daemon
+ go get github.com/golang/protobuf/protoc-gen-go@v1.2.0
go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
+ go get github.com/ethereum/go-ethereum/cmd/abigen@v1.8.27
+ go get google.golang.org/grpc@v1.16.0
go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
+ go get golang.org/x/lint/golint
+ pushd resources/blockchain
~/home/cellar/snet-daemon/resources/blockchain ~/home/cellar/snet-daemon ~/home/cellar/snet-daemon
+ npm install
up to date, audited 133 packages in 4s
18 vulnerabilities (1 low, 9 moderate, 4 high, 4 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ popd
~/home/cellar/snet-daemon ~/home/cellar/snet-daemon
+ go generate ./...
blockchain/blockchain.go:1: running "nodejs": exec: "nodejs": executable file not found in $PATH
The nodejs executable is indeed not available in ubuntu 22, at least on my current setup. The only executable I have installed is node.
On ubuntu 22, the ./scripts/install fails as follows:
The
nodejs
executable is indeed not available in ubuntu 22, at least on my current setup. The only executable I have installed isnode
.