<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello everybody,<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’ve tried several versions of python3-debian (or python-debian)…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">… always with the very same result:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Always the following error message is printed:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">(dbInspVirtEnv) kuka@dev-gschreiber:~/projekte/3rdparty/python-debian $ /usr/share/doc/python3-debian/examples/debfile/dpkg-info /var/cache/apt/archives/python3.9_3.9.2-1_amd64.deb
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "/usr/share/doc/python3-debian/examples/debfile/dpkg-info", line 31, in <module><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> os.stat(fname)[stat.ST_SIZE], deb['control.tar.gz'].size))<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "/usr/lib/python3/dist-packages/debian/arfile.py", line 202, in __getitem__<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> return self.getmember(name)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "/usr/lib/python3/dist-packages/debian/arfile.py", line 137, in getmember<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> return self.__members_dict[name]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">KeyError: 'control.tar.gz'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Buster & python3-debian 0.1.35<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Bullseye & Python3-debian 0.1.39<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">buster & python3 & python-debian from master<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any clue?<br>
My usecase: I’d like to parse the copyright infos from the deb packages for license clearance on my project,
<br>
And I’d like to use a library already able to perform that job.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in Advance,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Günter<o:p></o:p></span></p>
<br>
<p class="msipfooter71c191a6" align="Center" style="margin:0"><span style="font-size:10.0pt;font-family:Calibri;color:#676c71">Internal</span></p>
</div>
</body>
</html>