Re: Python installer hangs in Windows 7

2017-02-05 Thread Terry Reedy
On 2/6/2017 12:03 AM, Jean-Claude Roy via Python-list wrote: I am trying to install Python 3.6.0 on a Windows 7 computer. The download of 29.1 MB is successful and I get the nextwindow. I choose the "install now" selection and thatopens the Setup Program window. Now the trouble starts:I get "

Re: best way to ensure './' is at beginning of sys.path?

2017-02-05 Thread Wildman via Python-list
On Mon, 06 Feb 2017 09:07:34 +1100, Steve D'Aprano wrote: > On Sun, 5 Feb 2017 07:01 pm, Wildman wrote: > >> Sure, you >> could trick someone into running a program that could >> mess with $HOME but that is all.  For anyone, like me, >> that makes regular backups, that is not a big problem. >> To

Python installer hangs in Windows 7

2017-02-05 Thread Jean-Claude Roy via Python-list
  I am trying to install Python 3.6.0 on a Windows 7 computer. The download of 29.1 MB is successful and I get the nextwindow.  I choose the "install now" selection and thatopens the Setup Program window. Now the trouble starts:I get "Installing:" and the Initialization progress...and nothing els

Re: best way to ensure './' is at beginning of sys.path?

2017-02-05 Thread Chris Angelico
On Mon, Feb 6, 2017 at 1:19 PM, Steve D'Aprano wrote: > On Mon, 6 Feb 2017 09:26 am, Chris Angelico wrote: > >> On Mon, Feb 6, 2017 at 9:07 AM, Steve D'Aprano >> wrote: >>> As far as "regular backups", well, you're just not thinking deviously >>> enough. If I were to write a ransomware applicatio

Re: best way to ensure './' is at beginning of sys.path?

2017-02-05 Thread Steve D'Aprano
On Mon, 6 Feb 2017 09:26 am, Chris Angelico wrote: > On Mon, Feb 6, 2017 at 9:07 AM, Steve D'Aprano > wrote: >> As far as "regular backups", well, you're just not thinking deviously >> enough. If I were to write a ransomware application, running as the >> regular user, I would have the applicatio

RE: Python: How do I resolve oauth2client.client.ApplicationDefaultCredentialsError: The Application Default Credentials are not available?

2017-02-05 Thread Deborah Swanson
MRAB wrote, on February 05, 2017 4:34 PM > > On 2017-02-06 00:08, Deborah Swanson wrote: > > Hi David, > > > > Well, I really don't know the first thing about Macs, but it looks > > like you got the download and environment variable right, at least > > it's not complaining about that. > > > > Lo

Re: Python: How do I resolve oauth2client.client.ApplicationDefaultCredentialsError: The Application Default Credentials are not available?

2017-02-05 Thread MRAB
On 2017-02-06 00:08, Deborah Swanson wrote: Hi David, Well, I really don't know the first thing about Macs, but it looks like you got the download and environment variable right, at least it's not complaining about that. Looks like the current problem is with the parameters you're passing to th

Re: Beginner help

2017-02-05 Thread breamoreboy
On Sunday, February 5, 2017 at 11:27:19 PM UTC, pha...@u.rochester.edu wrote: > Hi everyone. I'm new to python and have hit a bit of a wall with an > assignment I'm working on. I created a number of classes and instantiated > them, now I need to create a list out of them. I am looking for somethi

RE: Python: How do I resolve oauth2client.client.ApplicationDefaultCredentialsError: The Application Default Credentials are not available?

2017-02-05 Thread Deborah Swanson
Hi David, Well, I really don't know the first thing about Macs, but it looks like you got the download and environment variable right, at least it's not complaining about that. Looks like the current problem is with the parameters you're passing to the build() function. I don't have the apiclie

Beginner help

2017-02-05 Thread phaas3
Hi everyone. I'm new to python and have hit a bit of a wall with an assignment I'm working on. I created a number of classes and instantiated them, now I need to create a list out of them. I am looking for something more elegant than appending each object to the list as I instantiate it. I tried

Re: Python: How do I resolve oauth2client.client.ApplicationDefaultCredentialsError: The Application Default Credentials are not available?

2017-02-05 Thread Amadi, David
If I understand your previous email well, I've created the bits I highlighted below and I'm still getting error messages - see below. I'm running the python script on a Macbook Pro. *DEVELOPER_KEY = "AIza*"* *YOUTUBE_API_SERVICE_NAME = "youtube"* *YOUTUBE_API_VERSION = "v3"* *GOOGLE_APPLICATI

Re: best way to ensure './' is at beginning of sys.path?

2017-02-05 Thread Chris Angelico
On Mon, Feb 6, 2017 at 9:07 AM, Steve D'Aprano wrote: > As far as "regular backups", well, you're just not thinking deviously > enough. If I were to write a ransomware application, running as the regular > user, I would have the application encrypt files and emails just a few at a > time, over a p

Re: best way to ensure './' is at beginning of sys.path?

2017-02-05 Thread Steve D'Aprano
On Sun, 5 Feb 2017 07:01 pm, Wildman wrote: > Sure, you > could trick someone into running a program that could > mess with $HOME but that is all.  For anyone, like me, > that makes regular backups, that is not a big problem. > To do any real damage to the system or install a key > logger or some

Re: Python: How do I resolve oauth2client.client.ApplicationDefaultCredentialsError: The Application Default Credentials are not available?

2017-02-05 Thread Amadi, David
Hi Deborah, Thank you for stepping in, I appreciate it. Here's the python code I'm working with - http://codegists.com/snippet/python/youtube_searchpy_valeraradu_python To be honest, I don't know how to define the environment variable GOOGLE_APPLICATION_CREDENTIALS to point to a file defining th

RE: Python: How do I resolve oauth2client.client.ApplicationDefaultCredentialsError: The Application Default Credentials are not available?

2017-02-05 Thread Deborah Swanson
OK David, I'm also a Linux newbie and my Linux PC has a dead power supply that I've been too sick to fix. Since it is a choice (given my limited energy resources), I've spent my time learning python on a very old Windows PC instead of reviving the Linux PC, and I've never used Google Apps. Howeve

Re: best way to ensure './' is at beginning of sys.path?

2017-02-05 Thread Wildman via Python-list
On Sat, 04 Feb 2017 19:12:55 +, Grant Edwards wrote: > On 2017-02-04, Wildman via Python-list wrote: >>> >>> The next time you are in the /tmp directory looking for something, can >>> you guess what happens when you mistype "ls" as "sl"? >>> DOS and Windows has searched the current dir