From nobody Sun Jul 14 08:11:13 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WMJ2D5Db0z5QXMS for ; Sun, 14 Jul 2024 08:11:32 +0000 (UTC) (envelope-from xavier@groumpf.org) Received: from aragorn.amdh.fr (aragorn.groumpf.org [176.31.180.205]) by mx1.freebsd.org (Postfix) with ESMTP id 4WMJ2C5Y5Zz4PDc for ; Sun, 14 Jul 2024 08:11:31 +0000 (UTC) (envelope-from xavier@groumpf.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=groumpf.org header.s=dkim header.b="H 4f8ogB"; dmarc=none; spf=pass (mx1.freebsd.org: domain of xavier@groumpf.org designates 176.31.180.205 as permitted sender) smtp.mailfrom=xavier@groumpf.org Received: from numenor.groumpf.org (freebox-server.groumpf.org [82.64.247.11]) by aragorn.amdh.fr (Postfix) with ESMTP id 34B293E60879 for ; Sun, 14 Jul 2024 10:11:24 +0200 (CEST) Received: from numenor.groumpf.org (localhost [127.0.0.1]) by numenor.groumpf.org (Postfix) with ESMTP id 13B2B1EC43D for ; Sun, 14 Jul 2024 10:11:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groumpf.org; h= content-transfer-encoding:content-type:content-type:subject :subject:from:from:content-language:user-agent:mime-version:date :date:message-id:received:received; s=dkim; t=1720944673; x= 1721808674; bh=nB2cKsfwzTA7bZJnMOCLa+1LgZylJUACJgi6EPxe8WM=; b=H 4f8ogBmaBfL/9+3xRl4i4Ql8T1c9/Mq80O9T4lHF6OeFMeC+1n5pKCE4+Bg6quqL 93pcH/GLpKq6d87VlIkwT0dklQcmISV8pjr8gcFA76d43gQkyGxSVQu2Ln/zmb1z 33YgtdJXsaHKnSLHe57/jUaP+2DZEg/ZNnKpE1r0+Z2wKeftAPFvd0q5bF0V8NEe 5xfxeZcuJKZFgI8vzEQQGku824a+BJ8hhjGvHIlcpsrndrcL5KR3Ge19V97o6f/9 m0D1eSs/jCF1BcIpIf1TKV4bunJQTBQ66mFMtfW+ykz+jVsaC1jqWIMIHTEWbyOZ LmWhLCnbNx72zETv8wP8WfFLQgzi6LQJLJnCe1SATM9+hbxluLIK+fjWoYJUU0+1 bqyeKs0yMIlmHQ2NvB/EU6IcwPszAY95JWYnpnKpxuGBtIRjVFmbzi+MZiDM7awZ VhJoO0q2E15cxNvHgW1UGANGFESv/zKwRoGT1NkBI94DKEWVw+9voxiu7EUAuM6z IlsInrVn+sARR4++gjY41q/4inVL0t5gn8oiBi4vrpIVpVz6HxEucwflkHfLplxV MTqznabYy9JtAzaSQYHQjyoBrgX5i4Q/6gyn6LoolUm6ZE84OT/o0old6U4jAOk2 jP1HMGH/gwdzjGl0Z3PtFMTo/PJwsX7ddlHSCNZDtI= Received: from numenor.groumpf.org ([127.0.0.1]) by numenor.groumpf.org (ns3.groumpf.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4CJMBkSen1Wg for ; Sun, 14 Jul 2024 10:11:13 +0200 (CEST) Received: from [192.168.100.30] (imladris.groumpf.org [192.168.100.30]) by numenor.groumpf.org (Postfix) with ESMTPSA id C68E21EC3C8 for ; Sun, 14 Jul 2024 10:11:13 +0200 (CEST) Message-ID: <59b38c2d-e596-402d-9ef0-34e892a5e8c1@groumpf.org> Date: Sun, 14 Jul 2024 10:11:13 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Content-Language: fr, en-US To: FreeBSD Ports ML From: Xavier Humbert Subject: Duplicity ResourceWarning: unclosed file Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.39 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+ip4:176.31.180.205]; R_DKIM_ALLOW(-0.20)[groumpf.org:s=dkim]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:16276, ipnet:176.31.0.0/16, country:FR]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[groumpf.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[groumpf.org:+] X-Rspamd-Queue-Id: 4WMJ2C5Y5Zz4PDc Hi, Since the last upgrade of Duplicity, I experience these warnings : ===================================================================================== /usr/local/lib/python3.11/threading.py:986: ResourceWarning: unclosed file <_io.BufferedReader name=5>   del self._target, self._args, self._kwargs ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/local/lib/python3.11/site-packages/duplicity/backends/ssh_paramiko_backend.py:461: ResourceWarning: unclosed file <_io.TextIOWrapper name='/etc/ssh/ssh_config' mode='r' encoding='UTF-8'>   sshconfig.parse(open(file)) ResourceWarning: Enable tracemalloc to get the object allocation traceback Local and Remote metadata are synchronized, no sync needed. Last full backup date: Mon Jul  1 10:33:46 2024 /usr/local/lib/python3.11/site-packages/duplicity/dup_main.py:779: ResourceWarning: unclosed file <_io.BufferedReader name=b'/root/.cache/duplicity/b0ba93458b58f009d3339ea64701a6b2/duplicity-inc.20240714T020354Z.to.20240714T075149Z.manifest.part'>   new_man_outfp.to_remote() ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/local/lib/python3.11/site-packages/duplicity/dup_main.py:780: ResourceWarning: unclosed file <_io.BufferedReader name=b'/root/.cache/duplicity/b0ba93458b58f009d3339ea64701a6b2/duplicity-inc.20240714T020354Z.to.20240714T075149Z.manifest.part'>   new_man_outfp.to_final() ResourceWarning: Enable tracemalloc to get the object allocation traceback ===================================================================================== A similar issue has been reported in 2019 : https://bugs.launchpad.net/duplicity/+bug/1847122 The warning appears also when I ask for Duplicity version : ===================================================================================== duplicity 3.0.0 May 29, 2024 /usr/local/lib/python3.11/threading.py:986: ResourceWarning: unclosed file <_io.BufferedReader name=5>   del self._target, self._args, self._kwargs ResourceWarning: Enable tracemalloc to get the object allocation traceback ===================================================================================== Again in rebuild of duplicity, same warning ===================================================================================== ===>   duplicity-3.0.0 depends on package: py311-future>0 - found ===>   duplicity-3.0.0 depends on package: py311-mock>0 - found ===>   duplicity-3.0.0 depends on package: py311-paramiko>=0 - found ===>   duplicity-3.0.0 depends on package: py311-pexpect>0 - found ===>   duplicity-3.0.0 depends on package: py311-requests>=0 - found ===>   duplicity-3.0.0 depends on package: py311-urllib3>=0 - found ===>   duplicity-3.0.0 depends on package: py311-b2sdk>=0.1.8 - found ===>   duplicity-3.0.0 depends on package: py311-dropbox>0 - found ===>   duplicity-3.0.0 depends on package: gnupg1>=1.4.7 - found ===>   duplicity-3.0.0 depends on file: /usr/local/bin/python3.11 - found ===>   Generating temporary packing list sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/usr/ports/sysutils/duplicity/work/stage/usr/local/lib/python3.11/site-packages/duplicity-3.0.0.dist-info/RECORD' mode='r' encoding='utf-8'> ===================================================================================== Should I report upstream ? Regards, Xavier -- Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer https://www.amdh.fr