Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install tokengen for using in fabric-token-sdk #1273

Open
MohammadrezaNasrabadi opened this issue Nov 29, 2024 · 4 comments
Open

Comments

@MohammadrezaNasrabadi
Copy link

I want to set up the hyperlerdger with token network, as provided in token-sdk fabric-samples. One step is installing the tokengen command, However, it seems like there is some dependencies problem on pkcs11 module.

After issuing the below command:

go install github.com/hyperledger-labs/fabric-token-sdk/cmd/[email protected]

The below error output is shown:

# github.com/hyperledger/fabric/bccsp/pkcs11
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:41:21: undefined: pkcs11.Ctx
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:51:23: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:52:22: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:55:32: undefined: pkcs11.ObjectHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:326:51: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:338:46: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:370:50: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:385:51: undefined: pkcs11.SessionHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:684:72: undefined: pkcs11.ObjectHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:693:77: undefined: pkcs11.ObjectHandle
/root/go/pkg/mod/github.com/hyperledger/[email protected]/bccsp/pkcs11/pkcs11.go:693:77: too many errors
# github.com/hyperledger/fabric-private-chaincode/internal/crypto
/root/go/pkg/mod/github.com/hyperledger/[email protected]/internal/crypto/crypto.go:24:10: undefined: GoCrypto

I have tried different versions of the packages but neither was helpful.

@bestbeforetoday
Copy link
Member

@adecaro @KElkhiyaoui @arner maybe one of you can help with this fabric-token-sdk issue?

@adecaro
Copy link
Contributor

adecaro commented Dec 2, 2024

so, I tried also the main branch of the token-sdk and I get the same error on a container running image golang:1.23-alpine3.20. If I run it on my dev machine, then I get it working fine. There must be something with the dependencies somewhere. @arner , any idea?

@MohammadrezaNasrabadi
Copy link
Author

so, I tried also the main branch of the token-sdk and I get the same error on a container running image golang:1.23-alpine3.20. If I run it on my dev machine, then I get it working fine. There must be something with the dependencies somewhere. @arner , any idea?

Thanks for your response. Could you please provide the details of your dev machine that you have found everything are working fine?
My environment is as below:
I installed the latest version of go (1.23.3) on ubuntu 24.04 operating system. I also cloned the main branch of fabric-samples and I have installed the fabric binary files as provided on the hyperledger documentation.

@MohammadrezaNasrabadi
Copy link
Author

Is there any update regarding this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants