Re: Modify Python code as newbie

2020-01-17 Thread MRAB
On 2020-01-18 00:34, ron.egg...@ecoation.com wrote: Hi, I'm semi new to Python but need to modify a program that calls the mqtt_client.publish() function from aws iot. Now, if the publish function fails, it raises an exception. I need to change the code so that when an exception is raised, i

modify python code as newbie

2020-01-17 Thread ron . eggler
Hi, I'm semi new to Python but need to modify a program that calls the mqtt_client.publish() function from aws iot. Now, when the publish function fails, it raises an exception. I need to change the code so that when an exception is raised, instead of giving up, it should retry (indefinitely)

Modify Python code as newbie

2020-01-17 Thread ron . eggler
Hi, I'm semi new to Python but need to modify a program that calls the mqtt_client.publish() function from aws iot. Now, if the publish function fails, it raises an exception. I need to change the code so that when an exception is raised, instead of giving up, it should retry. Here's some sem

Re: How to get filesystem in python.

2020-01-17 Thread Cameron Simpson
On 17Jan2020 11:35, Antoon Pardon wrote: I would like to get the information given by the df command on linux/unix. I found the os.statvfs call, but it misses one thing: The filesystem. Does anyone know how to get that information. If you os.stat() the same thing you statvfs()ed you get an st

Re: problem

2020-01-17 Thread DL Neil via Python-list
On 18/01/20 7:39 AM, mrunali wrote: I am face a problem to download MySQL for python as well as I can not able to install kivy on my laptop . please give me solution for it . Sent from Mail for Windows 10 How did you try to download MySQL? Which MySQL Connector? What was the error message?

Re: problem related to using pip

2020-01-17 Thread MRAB
On 2020-01-17 15:09, Ayush Srivastava wrote: when i was running this code on cmd of latest versin of python3.8.1 i got this error pip install qsharp *output* Unable to create process using 'C:\ProgramData\Anaconda3\python.exe C:\ProgramDa ta\Anaconda3\Scripts\pip-script.py install qsharp' "p

Re: Fun with IO

2020-01-17 Thread Chris Angelico
On Sat, Jan 18, 2020 at 6:09 AM Frank Millman wrote: > So I > tried passing the client_writer directly to the handler - > > await pdf_handler(client_writer) > client_writer.write(b'\r\n') > > It works! ReportLab accepts client_writer as a file-like object, and > writes to it directly. I

problem

2020-01-17 Thread mrunali
I am face a problem to download MySQL for python as well as I can not able to install kivy on my laptop . please give me solution for it . Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Fun with IO

2020-01-17 Thread Frank Millman
Hi all I just tried something that I did not think had a snowball's chance of working, but to my surprise it did. I thought I would share it, partly for interest, and partly in case anyone can foresee any problems with it. I use ReportLab to generate pdf files. I do not write them to disk, bu

problem related to using pip

2020-01-17 Thread Ayush Srivastava
when i was running this code on cmd of latest versin of python3.8.1 i got this error pip install qsharp *output* Unable to create process using 'C:\ProgramData\Anaconda3\python.exe C:\ProgramDa ta\Anaconda3\Scripts\pip-script.py install qsharp' -- https://mail.python.org/mailman/listinfo/pytho

Re:

2020-01-17 Thread Bob Gailer
On Jan 17, 2020 5:37 AM, "kiran chawan" wrote: > > Hi, Sir my self kiran chawan studying in engineering and I have HP PC and > windows edition is window 10, system type 64-bit operating system. So tell > me which python version software is suitable for my PC okay and send me > that software dire

Re: How to get filesystem in python.

2020-01-17 Thread Python
Le 17/01/2020 à 11:35, Antoon Pardon a écrit : I would like to get the information given by the df command on linux/unix. I found the os.statvfs call, but it misses one thing: The filesystem. Does anyone know how to get that information. https://stackoverflow.com/questions/25283882/determinin

Re: How to get filesystem in python.

2020-01-17 Thread Cousin Stanley
Antoon Pardon wrote: > I would like to get the information given by the df command on linux/unix. > I found the os.statvfs call, but it misses one thing: The filesystem. > > Does anyone know how to get that information. > import os pipe_in = os.popen( 'df -h -T -x tmpfs -x devtmpfs' ) lis

[no subject]

2020-01-17 Thread kiran chawan
Hi, Sir my self kiran chawan studying in engineering and I have HP PC and windows edition is window 10, system type 64-bit operating system. So tell me which python version software is suitable for my PC okay and send me that software direct link okay thank you. -- https://mail.python.org/mailm

How to get filesystem in python.

2020-01-17 Thread Antoon Pardon
I would like to get the information given by the df command on linux/unix. I found the os.statvfs call, but it misses one thing: The filesystem. Does anyone know how to get that information. -- Antoon. -- https://mail.python.org/mailman/listinfo/python-list