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

TypeError between str and int with '<' comparison when using peer 2.5.0 and fabric-ca-server 1.5.6 in build_network.sh #648

Open
silliman opened this issue May 11, 2023 · 1 comment

Comments

@silliman
Copy link
Contributor

When I use the fabric 2.5.0 binaries and the fabric-ca-* binaries in my path when running the build_network.sh tutorial, I get a Python TypeError, cannot use '<' between str and int from distutils/version.py. I suspect that this may be due to Fabric 2.5 puts a 'v' in front of the version prefix (as does fabric-ca-server 1.5.6)

E.g., peer version returns

Version: 2.4.4

for 2.4.4

but it returns

Version: v2.5.0

for 2.5.0

Similarly, you get

Version: 1.5.5

for fabric-ca-server 1.5.5

and

Version: v1.5.6

for fabric-ca-server 1.5.6

So, if I have peer 2.4.4 and fabric-ca-server 1.5.5 in my path, I can run the tutorial scripts, but if I have peer 2.5.0 and fabric-ca-server 1.5.6 in my path, they fail with the type error between str and int.

Note: I can run the playbook to install the operator and console with the peer 2.5.0 and fabric-ca-server 1.5.6.

I'm not certain that this added 'v' is the source of the problem, I just suspect it. More details available on request.

@maghbari
Copy link

Exactly, I am having similar issue..
I am using fabric 2.5 binaries and fabric-ca 1.5.6
and when the playbook call creating certificate authority I got this error

TypeError: '<' not supported between instances of 'str' and 'int'

Did you find out what's the 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

2 participants