Re: compiling 3.7.0 from source with custom libffi path

2019-05-29 Thread abhinav1205
Exactly same issue.. ctypes wont build .. pkg-config finds libffi, headers are located in configure and still INFO: Could not locate ffi libs and/or headers python is getting really annoying to install .. not everyone has root privileges to install system-wide dependencies. On Tuesday, Septe

Re: How to use ssh-agent in windows in python?

2019-05-29 Thread eryk sun
On 5/29/19, Cameron Simpson wrote: > > So start with this: > > p = subprocess.Popen('ssh-agent -s', stdin = subprocess.PIPE, stdout = > subprocess.PIPE, stderr = subprocess.PIPE, shell = True, universal_newlines > = True) I'm wary of relying on the default encoding here. ssh-agent probably writ

write function call _io_BufferedWriter_write_impl twice?

2019-05-29 Thread Windson Yang
My script looks like this: f = open('myfile', 'a+b') f.write(b'abcde') And I also add a `printf` statement in the _io_BufferedWriter_write_impl function. static PyObject *

Re: Threading Keyboard Interrupt issue

2019-05-29 Thread eryk sun
On 5/29/19, Dennis Lee Bieber wrote: > > In the OP's example code, with just one thread started, the easiest > solution is to use > > y.start() > y.join() > > to block the main thread. That will, at least, let the try/except catch the > interrupt. It does not, however, kill the s

Re: How to use ssh-agent in windows in python?

2019-05-29 Thread Fc Zwtyds
在 2019-05-30 6:41, Cameron Simpson 写道: On 29May2019 22:37, Fc Zwtyds wrote: 在 2019-05-27 11:19, Cameron Simpson 写道: The output of "ssh-agent -s" is Bourne shell variable assignment syntax. You need to parse that [...]  I want to rewrite the shell script to python script so I have had change

Re: How to use ssh-agent in windows in python?

2019-05-29 Thread Cameron Simpson
On 29May2019 22:37, Fc Zwtyds wrote: 在 2019-05-27 11:19, Cameron Simpson 写道: The output of "ssh-agent -s" is Bourne shell variable assignment syntax. You need to parse that [...] I want to rewrite the shell script to python script so I have had changed the "ssh-agent -s" to 'ssh-agent cmd'

Re: Threading Keyboard Interrupt issue

2019-05-29 Thread eryk sun
On 5/29/19, David Raymond wrote: > > Keyboard interrupts are only received by the main thread, which in this case > completes real quick. > > So what happens for me is that the main thread runs to completion instantly > and leaves nothing alive to receive the keyboard interrupt, which means the >

RE: Threading Keyboard Interrupt issue

2019-05-29 Thread David Raymond
That's a little weird, and my running it works slightly differently. Please paste exactly what you're running (no time import and true being lowercase for example means we couldn't copy and paste it and have it immediately run) In your script, the main thread hits y.start() which completes succe

Re: Trouble Downloading Python and Numpy

2019-05-29 Thread Shakti Kumar
On Wed, 29 May 2019 at 9:38 PM Shakti Kumar wrote: > > > On Wed, 29 May 2019 at 9:29 PM Contreras, Brian J > wrote: > >> Good Morning, >> >> I am a research student at the Georgia Institute of Technology. I have >> made multiple attempts to download different versions of Python with Numpy >> on

Re: Trouble Downloading Python and Numpy

2019-05-29 Thread Shakti Kumar
On Wed, 29 May 2019 at 9:29 PM Contreras, Brian J wrote: > Good Morning, > > I am a research student at the Georgia Institute of Technology. I have > made multiple attempts to download different versions of Python with Numpy > on my Microsoft Surface Book with no success. > Since you need numpy

Trouble Downloading Python and Numpy

2019-05-29 Thread Contreras, Brian J
Good Morning, I am a research student at the Georgia Institute of Technology. I have made multiple attempts to download different versions of Python with Numpy on my Microsoft Surface Book with no success. I ensured that I have space for the program and the latest windows 10 update, I still am

Re: Threading Keyboard Interrupt issue

2019-05-29 Thread Chris Angelico
On Thu, May 30, 2019 at 1:45 AM nihar Modi wrote: > > I have written a simple code that involves threading, but it does not go to > except clause after Keyboard interrupt. Can you suggest a way out. I have > pasted the code below. It does not print 'hi' after keyboard interrupt and > just stops.

Threading Keyboard Interrupt issue

2019-05-29 Thread nihar Modi
I have written a simple code that involves threading, but it does not go to except clause after Keyboard interrupt. Can you suggest a way out. I have pasted the code below. It does not print 'hi' after keyboard interrupt and just stops. import threading def loop(): while true: print('hello')

Re:

2019-05-29 Thread Bo YU
On Wed, May 29, 2019 at 1:19 PM Sri Tharun wrote: > Why I am unable to install packages > If you really want to get help from the list,please give us more info. > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Re: problem in installing packages

2019-05-29 Thread Joe Pfeiffer
Joel Goldstick writes: > On Wed, May 29, 2019 at 1:17 AM Sri Tharun wrote: >> >> Problem not resolved.Yet >> >> On Wed 29 May, 2019, 6:39 AM Tharun, wrote: >> >> > >> > >>> sudo apt-get update >> > >> > File "", line 1 >> > >> > sudo apt-get update >> >^ >> > SyntaxError:

Re: How to use ssh-agent in windows in python?

2019-05-29 Thread Fc Zwtyds
在 2019-05-27 11:19, Cameron Simpson 写道: The output of "ssh-agent -s" is Bourne shell variable assignment syntax. You need to parse that and then install those values in so.environ before calling the second command. The subprocess module has methods for collecting the output of a command (see t

Re: PEP 594 cgi & cgitb removal

2019-05-29 Thread Robin Becker
... More specifically, with CGI the webserver starts a new process for every single request. That's bad enough for a light C program, but it's certainly not a good idea to start a whole new Python process for every request. At least not for any production website or web service that se