[issue19868] Importing humanhash and uuid causes a segmentation fault crash
New submission from Drew: $ pip-3.3 install humanhash $ python3 Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import uuid >>> import humanhash Segmentation fault: 11 -- assignee: ronaldoussoren components: Macintosh files: Python_2013-12-02-231131_shadowfax.crash messages: 205075 nosy: compaqdrew, ronaldoussoren priority: normal severity: normal status: open title: Importing humanhash and uuid causes a segmentation fault crash versions: Python 3.3 Added file: http://bugs.python.org/file32946/Python_2013-12-02-231131_shadowfax.crash ___ Python tracker <http://bugs.python.org/issue19868> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12140] Crash upon start up
Philip Drew added the comment: The error message is: ImportError: No module named site. -- ___ Python tracker <http://bugs.python.org/issue12140> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12140] Crash upon start up
Philip Drew added the comment: The site module is in the right place This is what I got running the -v flag: (I don't know what you're looking for) Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\PWTD>c:\Python27\python.exe -v # installing zipimport hook import zipimport # builtin # installed zipimport hook ImportError: No module named site # clear __builtin__._ # clear sys.path # clear sys.argv # clear sys.ps1 # clear sys.ps2 # clear sys.exitfunc # clear sys.exc_type # clear sys.exc_value # clear sys.exc_traceback # clear sys.last_type # clear sys.last_value # clear sys.last_traceback # clear sys.path_hooks # clear sys.path_importer_cache # clear sys.meta_path # clear sys.flags # clear sys.float_info # restore sys.stdin # restore sys.stdout # restore sys.stderr # cleanup __main__ # cleanup[1] zipimport # cleanup[1] signal # cleanup[1] exceptions # cleanup[1] _warnings # cleanup sys # cleanup __builtin__ # cleanup ints: 6 unfreed ints # cleanup floats C:\Users\PWTD>c:\Python27\python.exe ImportError: No module named site -- ___ Python tracker <http://bugs.python.org/issue12140> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12140] Crash upon start up
Philip Drew added the comment: Reinstalling makes no difference- have tried multiple times -- ___ Python tracker <http://bugs.python.org/issue12140> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12140] Crash upon start up
Philip Drew added the comment: Gave it a go: the prompt appears, but none of the functions work thereafter C:\Users\PWTD>c:\Python27\python -S Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 >>> print "hello" LookupError: no codec search functions registered: can't find encoding >>> -- ___ Python tracker <http://bugs.python.org/issue12140> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12140] Crash upon start up
Philip Drew added the comment: C:\Users\PWTD>set PY PYTHONHOME=c:\program files (x86)\steam\steamapps\common\alien swarm\swarm\..\sdktools\python\2.5 C:\Users\PWTD>chcp Active code page: 850 C:\Users\PWTD> -- ___ Python tracker <http://bugs.python.org/issue12140> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12140] Crash upon start up
Philip Drew added the comment: Ok, python now works in command prompt, but IDLE still wont run. Also, PYTHONHOME needs to be reset on every start up of command prompt. -- ___ Python tracker <http://bugs.python.org/issue12140> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12140] Crash upon start up
Philip Drew added the comment: Awesome. It's fixed- do you still want to know whether or not the game works. In case it helps, I installed the game before python -- ___ Python tracker <http://bugs.python.org/issue12140> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12140] Crash upon start up
New submission from Philip Drew : Upon execution of python.exe a command line box appears for a fraction of a second, closes and is followed by nothing. On executing IDLE from the start menu, nothing happens. I have installed python to C:\Python27 using the python windows installer. I am running win7 64 bit on a toshiba satellite 17X -- components: IDLE, Installation messages: 136481 nosy: Philip.Drew priority: normal severity: normal status: open title: Crash upon start up type: crash versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue12140> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39119] email/_header_value_parser.py:parse_message_id: UnblondLocalError
New submission from Drew DeVault : File "/usr/lib/python3.8/site-packages/emailthreads/threads.py", line 14, in get_message_by_id if msg["message-id"] == msg_id: File "/usr/lib/python3.8/email/message.py", line 391, in __getitem__ return self.get(name) File "/usr/lib/python3.8/email/message.py", line 471, in get return self.policy.header_fetch_parse(k, v) File "/usr/lib/python3.8/email/policy.py", line 163, in header_fetch_parse return self.header_factory(name, value) File "/usr/lib/python3.8/email/headerregistry.py", line 602, in __call__ return self[name](name, value) File "/usr/lib/python3.8/email/headerregistry.py", line 197, in __new__ cls.parse(value, kwds) File "/usr/lib/python3.8/email/headerregistry.py", line 530, in parse kwds['parse_tree'] = parse_tree = cls.value_parser(value) File "/usr/lib/python3.8/email/_header_value_parser.py", line 2116, in parse_message_id message_id.append(token) -- components: Library (Lib) messages: 358794 nosy: ddevault priority: normal severity: normal status: open title: email/_header_value_parser.py:parse_message_id: UnblondLocalError versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue39119> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39119] email/_header_value_parser.py:parse_message_id: UnblondLocalError
Drew DeVault added the comment: Sorry for the delay, was travelling for the holidays. I'll check that this is not an issue with 3.8.1. Thanks! -- ___ Python tracker <https://bugs.python.org/issue39119> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39346] gzip module only supports half of possible read/write scenarios
Change by Drew DeVault : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue39346> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39346] gzip module only supports half of possible read/write scenarios
New submission from Drew DeVault : A gzip file can have uncompressed data written to it, writing compressed data to the underlying file. It can also have uncompressed data read from it, reading compressed data from the underlying file. However, it does not support reading compressed data from an underlying uncompressed file, nor writing compressed data to an underlying uncompressed file. This makes it impossible to, for example, obtain an arbitrary file-like object and produce another file-like object which transparently compresses data read from the first. -- components: Library (Lib) messages: 360072 nosy: ddevault priority: normal severity: normal status: open title: gzip module only supports half of possible read/write scenarios versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue39346> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41828] No longer able to override DATA_UPLOAD_MAX_MEMORY_SIZE outside of settings.py
New submission from Drew Scholz : After upgrading our Django 1.11 project from Python 2.7 to 3.7, our single endpoint decorator to override django conf settings no longer works. requests.py inside the virtual environment /lib/python3.7/site-packages/django/http triggers the RequestDataTooBig exception (~line 271) before the change to DATA_UPLOAD_MAX_MEMORY_SIZE has been increased by our decorator. We are able to make the change global inside settings.py however we are concerned with the security vulnerabilities due to the size we want to allow for the single endpoint. -- files: decorators.py messages: 377293 nosy: drew.scholz priority: normal severity: normal status: open title: No longer able to override DATA_UPLOAD_MAX_MEMORY_SIZE outside of settings.py type: security versions: Python 3.7 Added file: https://bugs.python.org/file49470/decorators.py ___ Python tracker <https://bugs.python.org/issue41828> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41828] No longer able to override DATA_UPLOAD_MAX_MEMORY_SIZE outside of settings.py
Drew Scholz added the comment: I think you are right. I'll move this to the Django bug tracker. Thank you. -- ___ Python tracker <https://bugs.python.org/issue41828> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36636] Inner exception is not being raised using asyncio.gather
New submission from Drew Budwin : Using Python 3.7, I am trying to catch an exception and re-raise it by following an example I found on StackOverflow (https://stackoverflow.com/a/6246394/1595510). While the example does work, it doesn't seem to work for all situations. Below I have two asynchronous Python scripts that try to re-raise exceptions. The first example works, it will print both the inner and outer exception. import asyncio class Foo: async def throw_exception(self): raise Exception("This is the inner exception") async def do_the_thing(self): try: await self.throw_exception() except Exception as e: raise Exception("This is the outer exception") from e async def run(): await Foo().do_the_thing() def main(): loop = asyncio.get_event_loop() loop.run_until_complete(run()) if __name__ == "__main__": main() Running this will correctly output the following exception stack trace: $ py test.py Traceback (most recent call last): File "test.py", line 9, in do_the_thing await self.throw_exception() File "test.py", line 5, in throw_exception raise Exception("This is the inner exception") Exception: This is the inner exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "test.py", line 21, in main() File "test.py", line 18, in main loop.run_until_complete(run()) File "C:\Python37\lib\asyncio\base_events.py", line 584, in run_until_complete return future.result() File "test.py", line 14, in run await Foo().do_the_thing() File "test.py", line 11, in do_the_thing raise Exception("This is the outer exception") from e Exception: This is the outer exception However, in my next Python script, I have multiple tasks that I queue up that I want to get a similar exception stack trace from. Essentially, I except the above stack trace to be printed 3 times (once for each task in the following script). The only difference between the above and below scripts is the run() function. import asyncio class Foo: async def throw_exception(self): raise Exception("This is the inner exception") async def do_the_thing(self): try: await self.throw_exception() except Exception as e: raise Exception("This is the outer exception") from e async def run(): tasks = [] foo = Foo() tasks.append(asyncio.create_task(foo.do_the_thing())) tasks.append(asyncio.create_task(foo.do_the_thing())) tasks.append(asyncio.create_task(foo.do_the_thing())) results = await asyncio.gather(*tasks, return_exceptions=True) for result in results: if isinstance(result, Exception): print(f"Unexpected exception: {result}") def main(): loop = asyncio.get_event_loop() loop.run_until_complete(run()) if __name__ == "__main__": main() The above code snippet produces the disappointingly short exceptions lacking stack traces. $ py test.py Unexpected exception: This is the outer exception Unexpected exception: This is the outer exception Unexpected exception: This is the outer exception If I change return_exceptions to be False, I will get the exceptions and stack trace printed out once and then execution stops and the remaining two tasks are cancelled. The output is identical to the output from the first script. The downside of this approach is, I want to continue processing tasks even when exceptions are encountered and then display all the exceptions at the end when all the tasks are completed. -- components: asyncio messages: 340297 nosy: Drew Budwin, asvetlov, yselivanov priority: normal severity: normal status: open title: Inner exception is not being raised using asyncio.gather type: behavior versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue36636> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15303] Minor revision to the method in Tkinter
New submission from Drew French : In the method, is evaluated as a Boolean (when Tkinter attempts to find a parent for the widget). I think it should really be evaluated against , seeing as that is the default keyword argument value for most widgets. I ran into problems with this when making a container widget class that inherited from the , then implementing the <__len__> magic method. When the length was zero the widget would evaluate as false, which would prevented me from packing widgets inside my container widget. I attached a revised version of the method. -- components: Tkinter files: tkbugfix.py messages: 165070 nosy: Drew.French priority: normal severity: normal status: open title: Minor revision to the method in Tkinter type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file26326/tkbugfix.py ___ Python tracker <http://bugs.python.org/issue15303> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15189] tkinter.messagebox does not use the application's icon
Drew French added the comment: This is also true for some of the other dialogs (such as the file dialogs). Does anyone know if this behavior can be changed in Tk itself? -- nosy: +Drew.French ___ Python tracker <http://bugs.python.org/issue15189> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5301] add mimetype for image/vnd.microsoft.icon (patch)
New submission from Drew Hintz : Adds a mimetype entry for image/vnd.microsoft.icon This mimetype is commonly used for favicon.ico files and is registered with IANA. -- components: Library (Lib) files: mimetypes.py.diff keywords: patch messages: 82373 nosy: adhintz severity: normal status: open title: add mimetype for image/vnd.microsoft.icon (patch) type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file13125/mimetypes.py.diff ___ Python tracker <http://bugs.python.org/issue5301> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com