[issue37025] Misleading error message "Python failed to load the default activation context"

2020-02-04 Thread Steve Dower


Steve Dower  added the comment:

Fixed in 2.7 - using issue39553 for removing the code in master.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37025] Misleading error message "Python failed to load the default activation context"

2019-10-23 Thread Steve Dower


Steve Dower  added the comment:

Merged the 2.7 fix. Let's just delete the whole block in master.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37025] Misleading error message "Python failed to load the default activation context"

2019-10-23 Thread Steve Dower


Steve Dower  added the comment:


New changeset 009a6928727b23344613ab6a9a52b9da56ab905c by Steve Dower (Zackery 
Spytz) in branch '2.7':
bpo-37025: AddRefActCtx() shouldn't be checked for failure (GH-16897)
https://github.com/python/cpython/commit/009a6928727b23344613ab6a9a52b9da56ab905c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37025] Misleading error message "Python failed to load the default activation context"

2019-10-22 Thread Zackery Spytz


Change by Zackery Spytz :


--
pull_requests: +16435
pull_request: https://github.com/python/cpython/pull/16897

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37025] Misleading error message "Python failed to load the default activation context"

2019-10-04 Thread Steve Dower


Steve Dower  added the comment:

This doesn't apply since Python 3.5, as the HAVE_SXS preprocessor variable is 
not defined.

We should just delete this code entirely in 3.9, and patch the message in 2.7.

--
versions:  -Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37025] Misleading error message "Python failed to load the default activation context"

2019-10-04 Thread Zackery Spytz


Zackery Spytz  added the comment:

Thank you for the report. I've created a pull request to fix this issue.

--
nosy: +ZackerySpytz
versions: +Python 2.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37025] Misleading error message "Python failed to load the default activation context"

2019-10-04 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +16170
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16579

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37025] Misleading error message "Python failed to load the default activation context"

2019-05-23 Thread Ralf Habacker


New submission from Ralf Habacker :

When I started Kicad under Windows I got the following error message in 
dbgview: "Python could not load the default activation context".

This message is issued by the Python runtime environment when checking the 
return value of the Windows API function AddRefActCtx() if the return value is 
zero (see 
https://github.com/python/cpython/blob/a3488e5902f5c26e5cc289aec2518e7b5058e5d1/PC/dl_nt.c#L107).

According to 
https://docs.microsoft.com/de-de/windows/desktop/api/winbase/nf-winbase-AddRefActCtx,
 this function does not return a value, which makes the check result dependent 
on temporary internal register/stack values and does not indicate a real 
problem.

This check should be completely removed so as not to waste the precious time of 
developers and users searching for the reason for this misleading message.

The corresponding definitions 
https://github.com/python/cpython/blob/2.7/PC/dl_nt.c#L36 (and line 37) should 
also be adjusted.

The issue is also present in version 2.7.

--
components: Windows
messages: 343329
nosy: paul.moore, rhabacker, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Misleading error message "Python failed to load the default activation 
context"
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com