vinland-technology / flict

free and open source software license compatibility tool.
GNU General Public License v3.0
45 stars 6 forks source link

`flict -el outbound-candidate` fails unexpectedly #391

Closed mxmehl closed 3 weeks ago

mxmehl commented 3 months ago

Description

Thanks for your tool which I love to experiment with! :)

Steps for reproduction

I used the example from the EXAMPLE.md file to get an outbound candidate from all known licenses:

flict -el outbound-candidate Apache-2.0 AND LGPL-2.1-only

Expected behavior

No error ;)

The output, based on the examples, should be something like: ["GPL-3.0-only", "GPL-3.0-or-later"]

Actual behavior

$ flict -el outbound-candidate Apache-2.0 AND LGPL-2.1-only
ERROR:flict:Invalid license expression: ['Apache-2.0', 'AND', 'LGPL-2.1-only']. Original cause: sequence item 0: expected str instance, list found

Environment

tool version how to get it
flict 1.2.14 flict --version
python3 3.10.12 python3 --version
os Ubuntu 22.04.4 n.a.

Happens both in poetry and pipx environment.