[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Éric Araujo mer...@netwok.org added the comment: Closing after no reply. If someone can reproduce the bug, please say so and reopen. -- stage: - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Éric Araujo mer...@netwok.org added the comment: The test failures you quoted are not related to distutils. I cannot see the ResourceWarnings in 3.2 or 3.3, so I think I’m going to close this issue. -- components: -Distutils, Distutils2 status: open - pending versions: -3rd party, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Nadeem Vawda nadeem.va...@gmail.com added the comment: The first ResourceWarning looks like the test_cgi leak from issue10512, which was fixed in changeset ae186b3b2c55. -- nosy: +nvawda status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Nadeem Vawda nadeem.va...@gmail.com added the comment: Sorry about accidentally changing the issue status to open. It seems that I don't have the requisite privileges to change it back to pending... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Éric Araujo mer...@netwok.org added the comment: Any message will automatically change pending to open, don’t worry. -- resolution: - works for me status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
LW cjejuni2...@yahoo.com added the comment: so i downloaded the python-3.2 source again, applied the .diff file. still getting _io.TextIOWrapper open file error. then ran the major 5 individual make test_ files errors. hope u can find from these: === les@Liquid:~/Desktop/Python-3.2$ ./python -m test -v test_distutils == CPython 3.2 (r32:88445, Mar 3 2011, 16:17:04) [GCC 4.4.5] == Linux-2.6.35-27-generic-pae-i686-with-debian-squeeze-sid little-endian == /home/les/Desktop/Python-3.2/build/test_python_32202 Testing with flags: sys.flags(debug=0, division_warning=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0) test_no_optimize_flag (distutils.tests.test_bdist_rpm.BuildRpmTestCase) ... unknown, 0: Warning: using regular magic file `/etc/magic' ok test_quiet (distutils.tests.test_bdist_rpm.BuildRpmTestCase) ... unknown, 0: Warning: using regular magic file `/etc/magic' ok == == ./python -m test -v test_parser test_trigger_memory_error (test.test_parser.ParserStackLimitTestCase) ... Expecting 's_push: parser stack overflow' in next line s_push: parser stack overflow ok = ./python -m test -v test_startfile test_startfile skipped -- module os has no attribute startfile = = ./python -m test -v test_subprocess test_executable_without_cwd (test.test_subprocess.ProcessTestCase) ... skipped 'need an installed Python. See #7774' test_stdout_none (test.test_subprocess.ProcessTestCase) ... this bit of output is from a test of stdout in a different process ... ok test_pass_fds (test.test_subprocess.POSIXProcessTestCase) ... -- maxfd = 1024 -- fds that should have been closed: {4, 5, 6, 7, 8, 9, 10, 11, 12} -- fds that remained open: {0, 1, 2, 3} -- fds that should have been closed: {3, 5, 6, 7, 8, 9, 10, 11, 12} -- fds that remained open: {0, 1, 2, 4} -- fds that should have been closed: {3, 4, 6, 7, 8, 9, 10, 11, 12} -- fds that remained open: {0, 1, 2, 5} -- fds that should have been closed: {3, 4, 5, 7, 8, 9, 10, 11, 12} -- fds that remained open: {0, 1, 2, 6} -- fds that should have been closed: {3, 4, 5, 6, 8, 9, 10, 11, 12} -- fds that remained open: {0, 1, 2, 7} -- fds that should have been closed: {3, 4, 5, 6, 7, 9, 10, 11, 12} -- fds that remained open: {0, 1, 2, 8} -- fds that should have been closed: {3, 4, 5, 6, 7, 8, 10, 11, 12} -- fds that remained open: {0, 1, 2, 9} -- fds that should have been closed: {3, 4, 5, 6, 7, 8, 9, 11, 12} -- fds that remained open: {0, 1, 2, 10} -- fds that should have been closed: {3, 4, 5, 6, 7, 8, 9, 10, 12} -- fds that remained open: {0, 1, 2, 11} -- fds that should have been closed: {3, 4, 5, 6, 7, 8, 9, 10, 11} -- fds that remained open: {0, 1, 2, 12} ok test_executable_without_cwd (test.test_subprocess.ProcessTestCasePOSIXPurePython) ... skipped 'need an installed Python. See #7774' == == ./python -m test -v test_urllib2_localnet test_sending_headers (test.test_urllib2_localnet.TestUrlopen) ... ok == FAIL: test_proxy_with_bad_password_raises_httperror (test.test_urllib2_localnet.ProxyAuthTests) -- Traceback (most recent call last): File /home/les/Desktop/Python-3.2/Lib/test/test_urllib2_localnet.py, line 267, in test_proxy_with_bad_password_raises_httperror self.URL) AssertionError: HTTPError not raised by open == FAIL: test_proxy_with_no_password_raises_httperror (test.test_urllib2_localnet.ProxyAuthTests) -- Traceback (most recent call last): File /home/les/Desktop/Python-3.2/Lib/test/test_urllib2_localnet.py, line 273, in test_proxy_with_no_password_raises_httperror self.URL) AssertionError: HTTPError not raised by open -- Ran 18 tests in 1.888s FAILED (failures=2) test test_urllib2_localnet failed -- multiple errors occurred 1 test failed: test_urllib2_localnet thanks again -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe:
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Éric Araujo mer...@netwok.org added the comment: Can you try updating your py3k checkout and applying with “patch -p1”? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
LW cjejuni2...@yahoo.com added the comment: thanks.py3k done. still having rejects, applied patch: les@Liquid:~$ patch -p1 -i ~/Desktop/distutils_files.diff ~/Downloads/Python-3.2/distutils/command patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 245. 1 out of 1 hunk FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 511. 1 out of 1 hunk FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 124. 1 out of 1 hunk FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 294. Hunk #2 FAILED at 359. 2 out of 2 hunks FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 270. 1 out of 1 hunk FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej les@Liquid:~$ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Éric Araujo mer...@netwok.org added the comment: And of course, I said the wrong thing :) This patch needs -p0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
LW cjejuni2...@yahoo.com added the comment: btw, if not know yet the patches are applied to python 3.2. anyway the patch -p0 resulted exactly the same rejects. les@Liquid:~$ patch -p0 -i ~/Desktop/distutils_files.diff ~/Downloads/Python-3.2/distutils/command patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 245. 1 out of 1 hunk FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 511. 1 out of 1 hunk FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 124. 1 out of 1 hunk FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 294. Hunk #2 FAILED at 359. 2 out of 2 hunks FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 270. 1 out of 1 hunk FAILED -- saving rejects to file /home/les/Downloads/Python-3.2/distutils/command.rej les@Liquid:~$ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
LW cjejuni2...@yahoo.com added the comment: hi eric, maybe we are troubleshooting the wrong thing. so i downloaded the python3.2 package again. configured no error. now make gives, just one bad or missing module(s). Failed to build these modules: ossaudiodev             i can't find it in synaptic manager. what are the packages i need to install to build ossaudiodev! can you help or should i post? thanks, lw --- On Tue, 3/1/11, Ãric Araujo rep...@bugs.python.org wrote: From: Ãric Araujo rep...@bugs.python.org Subject: [issue11342] ResourceWarning: unclosed file _io.TextIOWrapper To: cjejuni2...@yahoo.com Date: Tuesday, March 1, 2011, 7:10 PM Ãric Araujo mer...@netwok.org added the comment: And of course, I said the wrong thing :) This patch needs -p0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ -- Added file: http://bugs.python.org/file20968/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___table cellspacing=0 cellpadding=0 border=0 trtd valign=top style=font: inherit;hi eric,brmaybe we are troubleshooting the wrong thing. so i downloaded the python3.2 package again. configured no error. brnow make gives, just one bad or missing module(s). brbrFailed to build these modules:brossaudiodevnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; brbri can't find it in synaptic manager. what are the packages i need to install to build ossaudiodev! can you help or should i post?brthanks,brlwbrbrbrbr--- On bTue, 3/1/11, Ãric Araujo ilt;rep...@bugs.python.orggt;/i/b wrote:brblockquote style=border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;brFrom: Ãric Araujo lt;rep...@bugs.python.orggt;brSubject: [issue11342] ResourceWarning: unclosed file lt;_io.TextIOWrapperbrTo: cjejuni2...@yahoo.combrDate: Tuesday, March 1, 2011, 7:10 PMbrbrdiv class=plainMailbrÃric Araujo lt;a ymailto=mailto:mer...@netwok.org; href=/mc/compose?to=mer...@netwok.orgmer...@netwok.org/agt; added the comment:brbrAnd of course, I said the wrong thing :)nbsp; This patch needs -p0.brbr--brbr___brPython tracker lt;a ymailto=mailto:rep...@bugs.python.org; href=/mc/compose?to=rep...@bugs.python.orgrep...@bugs.python.org/agt;brlt;a href=http://bugs.python.org/issue11342; target=_blankhttp://bugs.python.org/issue11342/agt;br___br/div/blockquote/td/tr/tablebr ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Éric Araujo mer...@netwok.org added the comment: ossaudiodev is a platform-specific module that you don’t have to care about. It’s just a compilation warning that an option module has not been built, nothing to worry about. I just realized that I was not paying enough attention to your error messages. I have never used patch with the -d or -i options. To apply the patch, change directory to the source of Python, where you should see the Lib and Modules directories for example, and then patch -p0 distutils-files.diff -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file20968/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Éric Araujo mer...@netwok.org added the comment: So the patch fixes the resource warnings? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
LW cjejuni2...@yahoo.com added the comment: only the sysconfig.py was patched, the rest were reject'ed. no compilation yet at this time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Éric Araujo mer...@netwok.org added the comment: Does the attached patch fix the issue? -- assignee: tarek - eric.araujo components: +Distutils2 keywords: +patch nosy: +alexis versions: +3rd party, Python 2.7, Python 3.1, Python 3.3 Added file: http://bugs.python.org/file20933/distutils-files.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: @Éric: You should probably strip the colour from your diff :-) -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file20933/distutils-files.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file20934/distutils-files.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
LW cjejuni2...@yahoo.com added the comment: hi eric: thanks for the reply. here is what i'm getting from 'patch --dry-run' command: les@Liquid:~/Desktop$ patch -i ~/Desktop/distutils_files.diff -d ~/Downloads/Python-3.2/Lib/distutils --dry-run --backup patching file bdist_wininst.py Hunk #1 FAILED at 245. 1 out of 1 hunk FAILED -- saving rejects to file bdist_wininst.py.rej patching file bdist_rpm.py Hunk #1 FAILED at 511. 1 out of 1 hunk FAILED -- saving rejects to file bdist_rpm.py.rej patching file upload.py Hunk #1 FAILED at 124. 1 out of 1 hunk FAILED -- saving rejects to file upload.py.rej patching file sdist.py Hunk #1 FAILED at 294. Hunk #2 FAILED at 359. 2 out of 2 hunks FAILED -- saving rejects to file sdist.py.rej patching file sysconfig.py les@Liquid:~/Desktop$ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
Éric Araujo mer...@netwok.org added the comment: Can you test with a checkout of the py3k branch? http://docs.python.org/devguide/setup#checking-out-the-code -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
LW cjejuni2...@yahoo.com added the comment: seemed no errors. end of check attach: U py3k Checked out revision 88674. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
New submission from LW cjejuni2...@yahoo.com: 1 test failed: test_urllib2_localnet 1 test altered the execution environment: test_urllib2 21 tests skipped: test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_gdb test_kqueue test_ossaudiodev test_smtpnet test_socketserver test_startfile test_timeout test_tk test_ttk_guionly test_urllib2net test_urllibnet test_winreg test_winsound test_xmlrpc_net test_zipfile64 1 skip unexpected on linux2: test_ttk_guionly sys:1: ResourceWarning: unclosed file _io.TextIOWrapper name='/dev/null' mode='a' encoding='UTF-8' make: *** [test] Error 1 -- components: IO messages: 129598 nosy: cjejuni2000 priority: normal severity: normal status: open title: ResourceWarning: unclosed file _io.TextIOWrapper versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper
LW cjejuni2...@yahoo.com added the comment: [ 92/349] test_distutils /home/les/Downloads/Python-3.2/Lib/distutils/command/sdist.py:197: ResourceWarning: unclosed file _io.TextIOWrapper name='MANIFEST.in' mode='r' encoding='UTF-8' self.read_template() unknown, 0: Warning: using regular magic file `/etc/magic' unknown, 0: Warning: using regular magic file `/etc/magic' -- assignee: - tarek components: +Distutils -IO nosy: +eric.araujo, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com