[issue44869] MacOS Monterrey malloc issue

2021-09-07 Thread Eduardo Morales
Change by Eduardo Morales : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue44869> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44869] MacOS Monterrey malloc issue

2021-09-07 Thread Eduardo Morales
Eduardo Morales added the comment: Also: (base) ➜ backend git:(development) ✗ PYTHONFAULTHANDLER=1 python3 server.py CONFIG_FILE=../config/development.json Python(27657,0x10839f600) malloc: *** error for object 0x7ffb4ac81d10: pointer being freed was not allocated Python(27657,0x10839f600

[issue44869] MacOS Monterrey malloc issue

2021-09-07 Thread Eduardo Morales
Eduardo Morales added the comment: Not sure if this is helpful, but I am attaching the MacOS bug log that is auto-generated when Python fails. -- Added file: https://bugs.python.org/file50267/bug.log ___ Python tracker <https://bugs.python.

[issue44869] MacOS Monterrey malloc issue

2021-08-11 Thread Eduardo Morales
Eduardo Morales added the comment: I've been able to tackle the issue down and reported it to the library. Although I'm not sure if it's a Python or library issue. https://github.com/ibmdb/python-ibmdb/issues/648 -- ___ Python

[issue44869] MacOS Monterrey malloc issue

2021-08-08 Thread Eduardo Morales
Eduardo Morales added the comment: These are the libraries that I'm using: ``` ibm-db~=3.0.4 Flask~=2.0.1 pandas~=1.2.5 requests~=2.25.1 flask_basicauth~=0.2.0 schedule~=1.1.0 ``` -- ___ Python tracker <https://bugs.python.org/is

[issue44869] MacOS Monterrey malloc issue

2021-08-08 Thread Eduardo Morales
Eduardo Morales added the comment: I am not sure how to reproduce it, I think it's being caused by an imported library. -- ___ Python tracker <https://bugs.python.org/is

[issue44869] MacOS Monterrey malloc issue

2021-08-08 Thread Eduardo Morales
New submission from Eduardo Morales : Running on MacOS Monterrey throws following error: ```malloc: *** error for object 0x7ffb5ea1a120: pointer being freed was not allocatedPython(4899,0x1061a8600)``` This started happening right after upgrading to the new MacOS Beta. -- messages

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2019-04-30 Thread Eduardo Suarez-Santana
Eduardo Suarez-Santana added the comment: In my opinion, 'setup.cfg' is setuptools stuff and not part of python project. Anyway I think it is a good idea to read it as UTF-8. Setuptools seems to be defaulting to UTF-8: https://github.com/pypa/setuptools/pull/1735 -

[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2019-03-08 Thread Ernesto Eduardo Medina Núñez
Ernesto Eduardo Medina Núñez added the comment: While this gets fixed, can you provide a workaround? or recommend another library? -- nosy: +Ernesto Eduardo Medina Núñez ___ Python tracker <https://bugs.python.org/issue21

[issue35626] Python dictreader KeyError issue

2018-12-31 Thread Eduardo Orochena
New submission from Eduardo Orochena : def load_file(filename): with open(filename, 'r', encoding='utf-8') as fin: header = fin.readline() print('Found ' + header) reader = csv.DictReader(fin) for row in reader:

[issue32398] OSX C++ linking workaround in distutils breaks other packages

2017-12-21 Thread Eduardo Suarez-Santana
Eduardo Suarez-Santana added the comment: When compiling GDAL with python support, before Lib/distutils/unixccompiler.py:180, self.compiler_cxx = ['/bin/sh', '/usr/x86_64-pc-linux-gnu/bin/libtool', '--mode=compile', '--tag=CXX', 'x86_64-pc-linu

[issue32398] OSX C++ linking workaround in distutils breaks other packages

2017-12-21 Thread Eduardo Suarez-Santana
Change by Eduardo Suarez-Santana : -- title: GDAL compilation error -> OSX C++ linking workaround in distutils breaks other packages ___ Python tracker <https://bugs.python.org/issu

[issue32398] GDAL compilation error

2017-12-21 Thread Eduardo Suarez-Santana
New submission from Eduardo Suarez-Santana : When compiling GDAL with python support, under certain build chain environment variables, next error may appear when building and linking python extensions (https://www.mail-archive.com/freebsd-ports@freebsd.org/msg41030.html): /bin/sh: -d: invalid

[issue22163] max_wbits set incorrectly to -zlib.MAX_WBITS in tarfile, shouldn't be negative

2014-08-07 Thread Eduardo Robles Elvira
New submission from Eduardo Robles Elvira: I think I have found a small typo-bug in tarfile.py, that seems to be present in cpython upstream, which makes tarfile compression slower. The issue can be seen here, in line 415 [1] of tarfile.py: self.cmp = self.zlib.compressobj(9

[issue21261] Teach IDLE to Autocomplete dictionary keys

2014-06-20 Thread Eduardo Seabra
Eduardo Seabra added the comment: I've added three lines to cls.code to test_hyperparser. So I can test for subscripts with double quotes, single quotes and with no strings at all. Should I implement try_open_completions_event for COMPLETE_DICTIONARY? Calling this event everytime so

[issue21261] Teach IDLE to Autocomplete dictionary keys

2014-06-19 Thread Eduardo Seabra
Eduardo Seabra added the comment: >From the example, I couldn't know if the patch should also autocomplete int >and other types. So here's a patch that autocompletes string dictionary keys. I'm new contributing so let me know if I made anything wrong and I'l

[issue21579] Python 3.4: tempfile.close attribute does not work

2014-06-16 Thread Eduardo Seabra
Eduardo Seabra added the comment: I've attached a patch with @mmarkk proposal. -- keywords: +patch nosy: +Eduardo.Seabra Added file: http://bugs.python.org/file35662/issue21579.patch ___ Python tracker <http://bugs.python.org/is

[issue21697] shutil.copytree() handles symbolic directory incorrectly

2014-06-16 Thread Eduardo Seabra
Eduardo Seabra added the comment: Berker Peksag, I don't think your patch is okay. When symlinks is set to true, it should copy the symbolic link of the directory. Your code is calling copytree instead. I think the following patch is working, no errors on regression tests. --

[issue21109] tarfile: Traversal attack vulnerability

2014-04-26 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: Also, I guess this patch solves and is closely related to #1044 which was, at the time (2007), considered "not a bug". -- ___ Python tracker <http://bugs.python.o

[issue21109] tarfile: Traversal attack vulnerability

2014-04-26 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: Do we have any final decision on what's the best approach to solve this? I see some possibilities: a) leave the issue to the library user. I think that's a not good solution security-wise as many will be unaware of the problem and this pro

[issue18321] Multivolume support in tarfile module

2014-04-13 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: >> [...] but remember, we split a volume only in the middle of a big file, not >> in any other case (AFAIK). Hopefully you don't get huge pax headers or >> anything strange. [...] > Hopefully? Sorry, but have you tested

[issue18321] Multivolume support in tarfile module

2014-04-13 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: > The example I gave is based on the idea that there is a TarVolumeSet class in > the tarfile module that implements all the required file-object methods (e.g. > read(), write(), seek(), etc.) and acts as if the sequence of volumes is >

[issue18321] Multivolume support in tarfile module

2014-03-11 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: I guess I got it wrong, it's not part of the POSIX standard, just part of the GNU tar documentation. About the getmembers and getnames not reflecting the entirety of the archive, it's an optimization I needed and I think ccan be quite handy.

[issue18321] Multivolume support in tarfile module

2014-01-29 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: > I cannot yet go into the details, because I have not tested the patch. > The comments, docstrings and quoting are not very consistent with the rest of > the module. There are a few spelling mistakes. I can try to take care of this, thoug

[issue18321] Multivolume support in tarfile module

2014-01-27 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: Do we have any news on this patch? -- ___ Python tracker <http://bugs.python.org/issue18321> ___ ___ Python-bugs-list m

[issue18728] Increased test coverage for filecmp.py

2013-11-23 Thread Eduardo Seabra
Eduardo Seabra added the comment: I've also increased the test coverage of filecmp.py. Don't know if I should merge my patch with Alex.Volkov's patch. I'm uploading it as a separate patch. -- nosy: +Eduardo.Seabra Added file: http://bugs.python.org/file3280

[issue18321] Multivolume support in tarfile module

2013-10-22 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: could you please check if my contributor form is already processed? -- ___ Python tracker <http://bugs.python.org/issue18

[issue18575] Fixing tarfile._mode when using gzip via ":gz"

2013-07-28 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: Fixing gzip.patch, it was using basestring (python2) instead of str -- Added file: http://bugs.python.org/file31062/gzip.patch ___ Python tracker <http://bugs.python.org/issue18

[issue18575] Fixing tarfile._mode when using gzip via ":gz"

2013-07-28 Thread Eduardo Robles Elvira
Changes by Eduardo Robles Elvira : Removed file: http://bugs.python.org/file31061/gzip.patch ___ Python tracker <http://bugs.python.org/issue18575> ___ ___ Python-bug

[issue18575] Fixing tarfile._mode when using gzip via ":gz"

2013-07-28 Thread Eduardo Robles Elvira
New submission from Eduardo Robles Elvira: A TarFile object constructor accepts a fileobj argument. When this argument is set and it has a "mode" property, tarfile._mode is blindly copied from there. Otherwise, mode is set using the mode argument in the constructor. This usually wor

[issue18321] Multivolume support in tarfile module

2013-07-28 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: Sure, I will fill it out. But is it required? -- ___ Python tracker <http://bugs.python.org/issue18321> ___ ___ Python-bug

[issue18321] Multivolume support in tarfile module

2013-06-28 Thread Eduardo Robles Elvira
New submission from Eduardo Robles Elvira: The patch attached provides implementation for multivolume support for tarfile module. It contains both the changes in the module and a battery of unit tests. It contains support for multivolume for both GNU and PAX formats. The main idea behind this

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-10 Thread Eduardo A . Bustamante López
Eduardo A. Bustamante López added the comment: Hi Senthil, > I fail to see the bug in here. Robotparser module is for reading and > parsing the robot.txt file, the module responsible for fetching it > could urllib. You're right, but robotparser's read() does a call to urllib

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-09 Thread Eduardo A . Bustamante López
Eduardo A. Bustamante López added the comment: I forgot to mention that I ran a nc process in parallel, to see what data is being sent: ``nc -l -p ``. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-09 Thread Eduardo A . Bustamante López
Eduardo A. Bustamante López added the comment: I'm not sure what's the best approach here. 1. Avoid changes in the Lib, and document a work-around, which involves installing an opener with the specific User-agent. The draw-back is that it modifies the behaviour of urlopen() gl

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-02 Thread Eduardo A . Bustamante López
Eduardo A. Bustamante López added the comment: I guess a workaround is to do: robotparser.URLopener.version = 'MyVersion' -- ___ Python tracker <http://bugs.python.o

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-02 Thread Eduardo A . Bustamante López
Changes by Eduardo A. Bustamante López : Added file: http://bugs.python.org/file27101/myrobotparser.py ___ Python tracker <http://bugs.python.org/issue15851> ___ ___ Pytho

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-02 Thread Eduardo A . Bustamante López
New submission from Eduardo A. Bustamante López: I found that http://en.wikipedia.org/robots.txt returns 403 if the provided user agent is in a specific blacklist. And since robotparser doesn't provide a mechanism to change the default user agent used by the opener, it becomes unusabl

[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2012-07-13 Thread Eduardo Cereto Carvalho
Changes by Eduardo Cereto Carvalho : -- nosy: +Eduardo.Cereto.Carvalho ___ Python tracker <http://bugs.python.org/issue11445> ___ ___ Python-bugs-list mailin

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread eduardo
New submission from eduardo : >From the example: http://docs.python.org/py3k/library/tempfile.html#examples The error message is weird... but I guess the problem is the default mode 'w+b'. Python 3.3a0 (default:78a66c98288d, Apr 9 2011, 16:13:31) [GCC 4.4.5] on linu

[issue5395] array.fromfile not checking I/O errors

2009-10-06 Thread Eduardo Aguiar
Eduardo Aguiar added the comment: Another try. I have opened a file for writing, and have tried to read from it: >>> fp = open ('xxx', 'w') >>> fp.read () Traceback (most recent call last): File "", li

[issue5395] array.fromfile not checking I/O errors

2009-10-05 Thread Eduardo Aguiar
Eduardo Aguiar added the comment: Maybe you could create a file without read permission (000) and try to read from it. -- ___ Python tracker <http://bugs.python.org/issue5

[issue5396] os.read not handling O_DIRECT flag

2009-03-15 Thread Eduardo Aguiar
Eduardo Aguiar added the comment: Hi, I think I have a few more issues you can consider: 1) to allocated an aligned buffer it is as simple as allocate 4096 + len (buffer) and truncate address to 4k boundary. 2) I wrote a floppy imager, and without O_DIRECT, it gives me 8 sectors (4k = kernel

[issue5396] os.read not handling O_DIRECT flag

2009-02-28 Thread Eduardo Aguiar
New submission from Eduardo Aguiar : At posixmodule.c (line 6306) static PyObject * posix_read(PyObject *self, PyObject *args) { int fd, size, n; PyObject *buffer; if (!PyArg_ParseTuple(args, "ii:read", &fd, &size)) return NULL;

[issue5395] array.fromfile not checking I/O errors

2009-02-28 Thread Eduardo Aguiar
New submission from Eduardo Aguiar : At arraymodule.c (line 1258): nread = fread(item + (Py_SIZE(self) - n) * itemsize, itemsize, n, fp); if (nread < (size_t)n) { Py_SIZE(self) -= (n - nr

[issue4219] Problem with regular expression

2008-10-28 Thread Carlos Eduardo Klock
Carlos Eduardo Klock <[EMAIL PROTECTED]> added the comment: Sorry, it is really a problem with the comma. Thanks for helping! :) ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4219] Problem with regular expression

2008-10-28 Thread Carlos Eduardo Klock
New submission from Carlos Eduardo Klock <[EMAIL PROTECTED]>: Hello, I am having a weird problem with regex. I am trying to get the tokens that match the pattern below, but it is not working only for a specific case. I do this for many lines of text, and it works, except for the

[issue2811] doctest doesn't treat unicode literals as specified by the file declared encoding

2008-05-10 Thread Paulo Eduardo Neves
New submission from Paulo Eduardo Neves <[EMAIL PROTECTED]>: Doctest doesn't obey the specified file encoding for unicode literals. I've put the minimum test case that demonstrate the error in the attached file. The program has the # -*- coding: utf-8 -*- as the first line

[issue2441] Mac build_install.py script fetches unavailable SQLite version

2008-03-20 Thread Carlos Eduardo de Paula
New submission from Carlos Eduardo de Paula <[EMAIL PROTECTED]>: The build_installer.py script, used to create MacPython installers tries to fetch a SQLite version that is not available anymore. I provided a patch with an updated version and its corresponding hash. Maybe this sho

[issue2060] python2.6 -3 gives "warning: callable() not supported in 3.x" on startup

2008-02-10 Thread Eduardo Padoan
Eduardo Padoan added the comment: > By the way, what are you supposed you use in py3k instead of callable? Either "try: foo(); except TypeError: ...", or "if hasattr(foo, '__call__'): foo()". __ Tracker <[EMAIL PROTECTED

[issue2060] python2.6 -3 gives "warning: callable() not supported in 3.x" on startup

2008-02-10 Thread Eduardo Padoan
New submission from Eduardo Padoan: Running python2.6 with the -3 option, you get 6 warnings about callable(): [EMAIL PROTECTED]:~/dev/svn/python2.6$ python2.6 -3 warning: callable() not supported in 3.x warning: callable() not supported in 3.x warning: callable() not supported in 3.x warning

[issue2046] patch to fix_import: UserDict -> collections

2008-02-07 Thread Eduardo Padoan
New submission from Eduardo Padoan: UserDict moved from UserDict module (deleted) to collections on py3k. This patch adds this case to fix_import.py on 2to3. -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) files: fix_import_udict.diff messages: 62186 nosy

[issue1151] "TypeError: expected string, bytes found" instead of KeyboardInterrupt

2007-10-19 Thread Eduardo Padoan
Eduardo Padoan added the comment: Can't reproduce this error anymore with revision 58472. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1151> __ ___ Python-

[issue1161] Garbled chars in offending line of SyntaxError traceback

2007-10-19 Thread Eduardo Padoan
Eduardo Padoan added the comment: Can't reproduce this error anymore with revision 58472. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1161> __ ___ Python-

[issue1165] Should itertools.count work for arbitrary integers?

2007-09-16 Thread Eduardo Padoan
Changes by Eduardo Padoan: -- severity: critical -> minor __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1165> __ ___ Python-bugs-list mailing li

[issue1165] Should itertools.count work for arbitrary integers?

2007-09-15 Thread Eduardo Padoan
New submission from Eduardo Padoan: Currently, itertools.count.__next__ checks wether the current value is > PY_SSIZE_T_MAX and raises OverflowError if so. Shouldn't the value be stored as "long", at least in Py3k? Not that I have any use case for it, so it is minor. ---

[issue1161] Garbled chars in offending line of SyntaxError traceback

2007-09-13 Thread Eduardo Padoan
Changes by Eduardo Padoan: -- title: Mangled chars in offending line of SyntaxError traceback -> Garbled chars in offending line of SyntaxError traceback __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1161] Mangled chars in offending line of SyntaxError traceback

2007-09-13 Thread Eduardo Padoan
New submission from Eduardo Padoan: Python 3.0a1 (py3k:58103, Sep 11 2007, 13:52:21) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> asd asd File &qu

[issue1151] "TypeError: expected string, bytes found" instead of KeyboardInterrupt

2007-09-11 Thread Eduardo Padoan
New submission from Eduardo Padoan: On revision 54803, interactive mode, on linux: if type ctrl+c you type ctrl+c, it should raise KeyboardInterrupt, but "TypeError: expected string, bytes found" printed. Also, I could *not* catch it doing: >>> try: ... while Tr

[issue1148] TypeError on join - httplib mixing str and bytes

2007-09-11 Thread Eduardo Padoan
New submission from Eduardo Padoan: To reproduce: >>> import httplib >>> conn = httplib.HTTPConnection("www.python.org") >>> conn.request("GET", "/index.html") >>> r1 = conn.getresponse() >>> r1.read() Traceback (most re