mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] license-yaml2csv.py fails on Debian 9 (stretch)
@ 2019-05-14 14:56 Alexander Dahl
  2019-05-15  6:38 ` Alexander Dahl
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl @ 2019-05-14 14:56 UTC (permalink / raw)
  To: ptxdist

Hello,

I tried to run license-yaml2csv.py today, just out of curiosity, but it does 
not work:


adahl@ada /mnt/data/adahl/src/DistroKit (git)-[master] % /usr/local/lib/
ptxdist-$(p version)/scripts/license-yaml2csv.py platform-v7a/report/misc/
openssl/license-report.yaml
Traceback (most recent call last):
  File "/usr/local/lib/ptxdist-2019.05.0/scripts/license-yaml2csv.py", line 
56, in <module>
    value = record.get(field, None)
AttributeError: 'str' object has no attribute 'get'


As you can see, I'm using the current DistroKit master with ptxdist 2019.05.0. 
The host system is Debian 9 (stretch) on amd64, nothing special. I'm no Python 
expert, so I essentially don't at all know what problem could be? Python3 is 
installed through apt, including the necessary modules.

Any ideas?

Greets
Alex


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] license-yaml2csv.py fails on Debian 9 (stretch)
  2019-05-14 14:56 [ptxdist] license-yaml2csv.py fails on Debian 9 (stretch) Alexander Dahl
@ 2019-05-15  6:38 ` Alexander Dahl
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Dahl @ 2019-05-15  6:38 UTC (permalink / raw)
  To: ptxdist

Hei hei,

Am Dienstag, 14. Mai 2019, 16:56:54 CEST schrieb Alexander Dahl:
> I tried to run license-yaml2csv.py today, just out of curiosity, but it does
> not work:
> 
> 
> adahl@ada /mnt/data/adahl/src/DistroKit (git)-[master] % /usr/local/lib/
> ptxdist-$(p version)/scripts/license-yaml2csv.py platform-v7a/report/misc/
> openssl/license-report.yaml
> Traceback (most recent call last):
>   File "/usr/local/lib/ptxdist-2019.05.0/scripts/license-yaml2csv.py", line
> 56, in <module>
>     value = record.get(field, None)
> AttributeError: 'str' object has no attribute 'get'

Well, it seems, that was the wrong input file. The followin works:

adahl@ada ~/src/DistroKit (git)-[master] % /usr/local/lib/ptxdist-$(ptxdist 
version)/scripts/license-yaml2csv.py platform-v7a/release/license-
compliance.yaml

To generate that yaml file, one has to call this:

  ptxdist make license-compliance-data

If you're interested in license report topics, there are more interesting make 
targets in rules/post/ptxd_make_license_report.make …

Thanks for reading. ;-)
Alex


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-15  6:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14 14:56 [ptxdist] license-yaml2csv.py fails on Debian 9 (stretch) Alexander Dahl
2019-05-15  6:38 ` Alexander Dahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox