Re: [Tutor] subprocess.Popen()

2018-12-03 Thread Alan Gauld via Tutor
On 02/12/2018 10:29, Dave Hill wrote: > Having 'graduated' to Python 3.7, I thought I would explore > Traceback (most recent call last): >File "/home/pi/Code/TestVideo#4.py", line 31, in > player.playVideo(FILE, 'HDMI') >File "/home/pi/Code/VideoPlayer.py", line 51, in playVideo >

Re: [Tutor] Moving a conda environment to an off-line computer

2018-12-03 Thread Henrique Castro
Thank you for all the insightful replies! It looks like the problem is exactly that deepchem is looking for an internet connection and crashing. I'll see what I can do and provide some feedback here. Again, thank you for using some of your time to take a look at this. -- Henrique C. S. Junior _

[Tutor] Beginners Book, Python and PyScripter

2018-12-03 Thread James Stapleton-Cotton
Hello, On this page ( http://openbookproject.net/thinkcs/python/english3e/way_of_the_program.html) - a book for learning Computer Science using Python - I am directed to ( http://code.google.com/p/pyscripter) in order to access the appropriate program development environment, PyScripter. I have do

Re: [Tutor] Beginners Book, Python and PyScripter

2018-12-03 Thread Steven D'Aprano
Hi James, and welcome. On Mon, Dec 03, 2018 at 12:35:29PM +0200, James Stapleton-Cotton wrote: [...] > I have downloaded the latest > version of Python from Python.org and PyScripter from a site that I am > directed to from the original site mentioned in the beginning of this email > - (https://so

Re: [Tutor] Beginners Book, Python and PyScripter

2018-12-03 Thread Mats Wichmann
On 12/3/18 3:35 AM, James Stapleton-Cotton wrote: > Hello, > > On this page ( > http://openbookproject.net/thinkcs/python/english3e/way_of_the_program.html) > - a book for learning Computer Science using Python - I am directed to ( > http://code.google.com/p/pyscripter) in order to access the appr

Re: [Tutor] subprocess.Popen()

2018-12-03 Thread Mats Wichmann
On 12/2/18 3:29 AM, Dave Hill wrote: > Having 'graduated' to Python 3.7, I thought I would explore > subprocess.Popen, and put the code in a Class, see code below. The video > runs, but an error occurs, which I do not understand, see further below the error happens in the except clause of your tr

Re: [Tutor] subprocess.Popen()

2018-12-03 Thread Dave Hill
I had not spotted that! It appears that, although I have 3.7 on my laptop, 3.7 is not a part of the latest standard Raspbian release. I will install this later today and try again. Dave On 03/12/2018 10:12, Alan Gauld via Tutor wrote: On 02/12/2018 10:29, Dave Hill wrote: Having 'graduated'

Re: [Tutor] subprocess.Popen()

2018-12-03 Thread Dave Hill
The combination of installing Python 3.7 on RasPi and removing the StringIO() cures the error. I now get the statistics and the 'have a nice day' output from omxplayer. I just need to find out how to invoke the idle 3.7, rather than idle 3.5, but I think that is a question for the RasPi forum.

Re: [Tutor] To check for empty string after a portion of the string in python 3.6

2018-12-03 Thread Cameron Simpson
Note: post returned to the tutor list. Please DO NOT cross post to multiple lists (i.e. tutor and python-list, as you have). This makes things difficult for people who are not on both lists. Pick a _single_ list, and use that. On 04Dec2018 02:46, srinivasan wrote: Could you please help me,

Re: [Tutor] To check for empty string after a portion of the string in python 3.6

2018-12-03 Thread Cameron Simpson
Again, _please_ use just one list: tutor or python-list. I've have directed replies to the tutor list. - Cameron On 04Dec2018 04:05, srinivasan wrote: Thanks a lot for your quick responses, Could you please let me know when the device is not enabled I get the error " I get the below error sayi

Re: [Tutor] I need help with my project

2018-12-03 Thread Treyton Hendrix
Awesome! Thanks to your help, I finally got my program done. Click here if you want to see it! > On Fri, Nov 30, 2018 at 5:14 PM Cameron Simpson wrote: > Avi and Alan and Sibylle, you're making this a bit hard on the OP > (Treyton). > > Yes he's supplied no context, but it is easy to make so

[Tutor] sftp using subprocess

2018-12-03 Thread Asad
Hi All , I am looking for a solution to automate downloading file using sftp process using : batch.txt :contains the following two lines cd 12345678 get 12345678_1.zip import subprocess host="abc.com" user="sa" user_host="%s@%s" % (user, host) sftp_process = subprocess.Popen(['sftp', '-

[Tutor] Regarding Python api script

2018-12-03 Thread Ravi Kumar
Hi, I have developed a python script to get api calls for meraki clientlogevents I am wanting the output of apicalls which is in xml format integrated to sql server management studio how do i do that? Thanks ___ Tutor maillist - Tutor@python.org To u

[Tutor] To check for empty string after a portion of the string in python 3.6

2018-12-03 Thread srinivasan
Dear Python Experts, Could you please help me, as am still learning python syntax, how can I add conditional check for empty string after running "hcitool scan" (ie., when there is no Bluetooth devices discovered) ie., after the word "Scanning..." , when there are no Bluetooth discover-able devic

Re: [Tutor] sftp using subprocess

2018-12-03 Thread David Rock
> On Dec 3, 2018, at 16:01, Asad wrote: > > Hi All , > >I am looking for a solution to automate downloading file using sftp > process using : > > batch.txt :contains the following two lines > cd 12345678 > get 12345678_1.zip > > > import subprocess > host="abc.com" > user="sa" > user

Re: [Tutor] To check for empty string after a portion of the string in python 3.6

2018-12-03 Thread srinivasan
Dear Mr. Cameron Thanks a lot for your quick responses, Could you please let me know when the device is not enabled I get the error " I get the below error saying "IndexError: list index out of range"" Code snippet: cmd = "sudo hcitool scan" res = self._helper.execute_cmd_output_string(cmd) print

Re: [Tutor] sftp using subprocess

2018-12-03 Thread Steven D'Aprano
On Tue, Dec 04, 2018 at 03:31:53AM +0530, Asad wrote: > however it gives error even unable to provide password . Is the error a secret? Would you like us to guess what it is? -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change s

Re: [Tutor] Regarding Python api script

2018-12-03 Thread Steven D'Aprano
On Mon, Dec 03, 2018 at 04:15:51PM -0600, Ravi Kumar wrote: > Hi, > > I have developed a python script to get api calls for meraki > clientlogevents I am wanting the output of apicalls which is in xml format > integrated to sql server management studio how do i do that? What have you tried? --

Re: [Tutor] Regarding Python api script

2018-12-03 Thread Alan Gauld via Tutor
On 03/12/2018 22:15, Ravi Kumar wrote: > I have developed a python script to get api calls for meraki > clientlogevents I am wanting the output of apicalls which is in xml format > integrated to sql server management studio how do i do that? XML is such a flexible format that without seeing the