GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Bug: Cannot import petl with Python 3.15.1 · Issue #768 · petl-developers/petl Closed Labels BugIt must work in all situations, but this failedIt must work in all situations, but this failed DescriptionWhat happened?Python 3.15.1 made changes to the behavior of accessing Importing petl imports, among other things, petl.io.sources. This module attempts to get the binary buffer for sys.stdin during import and does not handle the new exception. I have an application where petl is used after At first glance, simply ignoring ValueError in the same places where The problem reproduces on Windows and FreeBSD; I have no other platforms to test on. What is the expected behavior?Reproducible test casePython 3.15.1 (tags/v3.15.1:c37e74c, Oct 21 2026, 06:24:08) [MSC v.1951 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> d = sys.stdin.detach() >>> import petl Traceback (most recent call last): File "<python-input-2>", line 1, in <module> import petl File "C:\Daten\pyv\x64\Lib\site-packages\petl\__init__.py", line 7, in <module> from petl import util File "C:\Daten\pyv\x64\Lib\site-packages\petl\util\__init__.py", line 13, in <module> from petl.util.vis import look, lookall, lookstr, lookallstr, see File "C:\Daten\pyv\x64\Lib\site-packages\petl\util\vis.py", line 12, in <module> from petl.io.sources import MemorySource File "C:\Daten\pyv\x64\Lib\site-packages\petl\io\__init__.py", line 5, in <module> from petl.io.sources import FileSource, GzipSource, BZ2Source, ZipSource, \ StdinSource, StdoutSource, URLSource, StringSource, PopenSource, \ MemorySource File "C:\Daten\pyv\x64\Lib\site-packages\petl\io\sources.py", line 178, in <module> stdin_binary = _get_stdin_binary() File "C:\Daten\pyv\x64\Lib\site-packages\petl\io\sources.py", line 157, in _get_stdin_binary return sys.stdin.buffer ^^^^^^^^^^^^^^^^ ValueError: underlying buffer has been detached What version of petl are you have found the bug?v1.7.26 - v1.7.30 Versionpython 3.13+ What OS are you seeing the problem on?Windows What OS version are you using?11 What package manager you used to install?pip What's the current installed packages?No response Relevant log outputAdditional NotesNo response Code of Conduct
Activity
MetadataMetadataAssigneesLabelsBugIt must work in all situations, but this failedIt must work in all situations, but this failed TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |