Re: [Python-Dev] bugs.python.org - outage 08/09/17 until 8:00pm PST

2017-08-10 Thread Berker Peksağ
On Thu, Aug 10, 2017 at 4:44 PM, Berker Peksağ  wrote:
> On Thu, Aug 10, 2017 at 9:19 AM, Terry Reedy  wrote:
>> Fetching pages came back, but updating issues is spotty.  Some work, but for
>> others "an error has occurred" even with multiple tries.
>
> And I can't login to my account. When I tried to login via Google
> OpenID, I got "There is already an account for myem...@address.com". I
> also tried to reset my password and I got "Invalid login" when I tried
> to login with my new password.

Just an FYI: I'm now able to login to my account. Thank you everyone
who worked on migrating bugs.p.o!

--Berker
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Python's Windows code-signing certificate

2017-08-10 Thread Steve Dower
Just a heads-up, primarily for Marc-Andre, but letting everyone know for 
awareness.


Next time we need to renew the PSF code signing certificate used for 
Windows releases, we will need to use a different CA.


Our current certificate is from StartCom, who are losing their status as 
a trusted CA on Windows, which means any of their certificates issued 
after the 26th of September this year will be treated as invalid:


https://blogs.technet.microsoft.com/mmpc/2017/08/08/microsoft-to-remove-wosign-and-startcom-certificates-in-windows-10/

The certificate we have right now is valid through February 2019, so 
there's no urgency to change (unless we want to avoid the risk of 
"accidental certificate revocation", which is one of the reasons 
Microsoft has lost trust in StartCom). Because the revocation of the 
root CA has a start date, all of our current releases and future 
releases with the current certificate will be fine.


Since this will likely harm StartCom's business, it's very likely that 
they will get their act together and by the time we come to renew 
they'll be acceptable again. But we probably do want to be planning 
ahead to switch CA regardless.



And for our macOS and Linux friends who may be uncertain what I'm 
referring to: this is the certificate embedded in the installer and 
every executable binary in our Windows distributions. It has nothing to 
do with GPG or the signature files you can download from python.org 
(these are still associated with my personal and completely unverified 
key, which is fine since nobody on Windows actually cares about GPG :) ).


Cheers,
Steve
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] bugs.python.org - outage 08/09/17 until 8:00pm PST

2017-08-10 Thread Berker Peksağ
On Thu, Aug 10, 2017 at 9:19 AM, Terry Reedy  wrote:
> Fetching pages came back, but updating issues is spotty.  Some work, but for
> others "an error has occurred" even with multiple tries.

And I can't login to my account. When I tried to login via Google
OpenID, I got "There is already an account for myem...@address.com". I
also tried to reset my password and I got "Invalid login" when I tried
to login with my new password.

--Berker
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Py_Main() seems to be a NOOP

2017-08-10 Thread Terry Reedy

On 8/10/2017 3:26 AM, Patrick Rutkowski wrote:

On Thu, Aug 10, 2017 at 2:26 AM, Patrick Rutkowski
 wrote:

I'm working on Windows with Python 3.6. I'm trying to make a wWinMain() GUI
application that uses an embedded python interpreter. I'm having various
issues with being unable to load extension modules, but I won't go into that
now because I've tracked my issue down to a much simpler test case.

To begin, consider the source code of pythonw.exe...


Follow up. Filed a bug in the python issue tracker:
https://mail.google.com/mail/u/0/#inbox/15dcb0731f605c44


This returns a solicitation for gmail.  Try
https://bugs.python.org/issue31172
instead.

--
Terry Jan Reedy

___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Py_Main() seems to be a NOOP

2017-08-10 Thread Patrick Rutkowski
On Thu, Aug 10, 2017 at 2:26 AM, Patrick Rutkowski
 wrote:
> I'm working on Windows with Python 3.6. I'm trying to make a wWinMain() GUI
> application that uses an embedded python interpreter. I'm having various
> issues with being unable to load extension modules, but I won't go into that
> now because I've tracked my issue down to a much simpler test case.
>
> To begin, consider the source code of pythonw.exe...

Follow up. Filed a bug in the python issue tracker:
https://mail.google.com/mail/u/0/#inbox/15dcb0731f605c44
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Py_Main() seems to be a NOOP

2017-08-10 Thread Patrick Rutkowski
I'm working on Windows with Python 3.6. I'm trying to make a wWinMain() GUI
application that uses an embedded python interpreter. I'm having various
issues with being unable to load extension modules, but I won't go into that
now because I've tracked my issue down to a much simpler test case.

To begin, consider the source code of pythonw.exe:

/* Minimal main program -- everything is loaded from the library. */

#include "Python.h"

#define WIN32_LEAN_AND_MEAN
#include 

int WINAPI wWinMain(
HINSTANCE hInstance,  /* handle to current instance */
HINSTANCE hPrevInstance,  /* handle to previous instance */
LPWSTR lpCmdLine, /* pointer to command line */
int nCmdShow  /* show state of window */
)
{
return Py_Main(__argc, __wargv);
}

Now consider a simple python script, which I save in source.py

f = open('C:\\Users\\rutski\\Desktop\\hello.txt', 'w')
f.write('Hello World!\n')
f.flush()
f.close()

and run with

> pythonw.exe source.py

This produces the file `hello.txt` with the expected output. Now I create a
new Visual Studio solution. I make it Win32 project, choose "Windows
Application" and "Empty Project." I create a new source file main.c and I
copy-paste the source code of from pythonw (with Py_Main and all that). Now I
add the following settings:

C:\Users\rutski\Documents\python\PCbuild\amd64 --- Library Search Directory
C:\Users\rutski\Documents\python\Include   --- Include Directory
C:\Users\rutski\Documents\python\PC--- Include
Directory (for pyconfig.h)

I choose "Debug | x64" and hit build. I pop open cmd.exe, browse to where
mything.exe is, and execute

> mything.exe source.py

But this time nothing happens. No hello.txt gets created. I get no crash
window or error message. I do not get thrown into a debugger. I just get no
result. Am I missing some build flags here or something?

I'm running the __exact__ same C code that pythonw.exe is, but mine isn't
working. What gives?

I can't even seem to get Py_Main() to execute some python code from within my
own application, so trying to write my own embed code is basically hopeless.

If anybody could shed any light on this it would be much appreciated!
-Patrick
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] bugs.python.org - outage 08/09/17 until 8:00pm PST

2017-08-10 Thread Terry Reedy

On 8/9/2017 8:24 PM, Terry Reedy wrote:

On 8/9/2017 7:12 PM, MRAB wrote:

On 2017-08-09 23:18, Mark Mangoba wrote:

Dear Colleagues,

I was just informed from our hosting provider for bugs.python.org 
, Hetzner Online - that the server is 
currently being migrated to a new data center.


Unfortunately I was not informed ahead of time and working with the 
provider to better communicate and schedule future maintenance 
periods accordingly.


Apologies for any inconvenience this has caused.  I will be posting 
status updates at https://status.python.org/.


As many of you know, we are working to migrate this off the current 
hosting provider in the next 3 months.


Please could you use a date/time format that's more international, 
such as ISO 8601.


I presume that would be something like 2017-08-10 04:00:00 UTC.


Fetching pages came back, but updating issues is spotty.  Some work, but 
for others "an error has occurred" even with multiple tries.




--
Terry Jan Reedy

___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com