Skip to content

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

@silliman

Description

@silliman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions