request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-11 Thread F Massion
Hi, I would like to get information from Wikipedia articles and I am testing the connection to Wikipedia. I am running Python 3.6.2 on Windows 10. I get certificate errors for all pages with https. Any suggestions are welcome! Here my code: import requests, bs4 from bs4 import BeautifulSoup

Re: request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-11 Thread Kryptxy via Python-list
Install pyopenssl package and try again? Original Message On 11 Dec 2017, 16:44, F Massion wrote: > Hi, > > I would like to get information from Wikipedia articles and I am testing the > connection to Wikipedia. > > I am running Python 3.6.2 on Windows 10. > > I get certificate

Re: scipy

2017-12-11 Thread Larry Martell
On Sat, Dec 9, 2017 at 11:43 AM, Thomas Jollans wrote: > > On 08/12/17 23:57, Larry Martell wrote: > > Trying to install scipy on ubuntu-trusty-64 running Python 2.7.6. > > I STRONGLY recommend moving to Python 3 if you can. The scientific > python ecosystem has had good support for Python 3 for y

Re: csv.DictReader line skipping should be considered a bug?

2017-12-11 Thread Neil Cerutti
On 2017-12-05, Steve D'Aprano wrote: > On Wed, 6 Dec 2017 04:20 am, Jason wrote: >> while iterating over two files, which are line-by-line >> corresponding. The DictReader skipped ahead many lines >> breaking the line-by-line correspondence. > > Um... this doesn't follow. If they are line-by-line

Re: csv.DictReader line skipping should be considered a bug?

2017-12-11 Thread Neil Cerutti
On 2017-12-11, Neil Cerutti wrote: > On 2017-12-05, Steve D'Aprano wrote: >> On Wed, 6 Dec 2017 04:20 am, Jason wrote: >>> while iterating over two files, which are line-by-line >>> corresponding. The DictReader skipped ahead many lines >>> breaking the line-by-line correspondence. >> >> Um... th

Re: Processing Game Help

2017-12-11 Thread Michael Torrie
On 12/11/2017 07:27 AM, Dennis Lee Bieber wrote: > On Sun, 10 Dec 2017 16:05:37 -0800 (PST), Lauren Porter > declaimed the following: > >> Hello all! I've been trying to create a game in Python Processing Seems like most of the

Re: Processing Game Help

2017-12-11 Thread Peter Otten
Lauren Porter wrote: > Hello all! I've been trying to create a game in Python Processing where a > spaceship moves horizontally in order to miss a collision with an > asteroid. I'm having difficulty making it so that the game quits when an > asteroid hits the spaceship, could anybody help? Here is

Re: Processing Game Help

2017-12-11 Thread Chris Angelico
On Tue, Dec 12, 2017 at 5:46 AM, Peter Otten <__pete...@web.de> wrote: > You can test for a collision and exit if an asteroid is close to a spaceship > with > > for s in spaceship: > for a in asteroid: > if calculate_distance(s, a) < 62.5: > print("One of you

Re: Python homework

2017-12-11 Thread Python
On Tue, Dec 05, 2017 at 09:02:54PM +1200, ssghotra1997 wrote: > for i in range(num): > rolls = int(random.randint(1, 6)) > if rolls == 1: > sides['One'] += 1 [...] Using integers as the key makes the code a bit shorter... That approach is also better if you're usin

Re: Processing Game Help

2017-12-11 Thread Peter Otten
Chris Angelico wrote: > On Tue, Dec 12, 2017 at 5:46 AM, Peter Otten <__pete...@web.de> wrote: >> You can test for a collision and exit if an asteroid is close to a >> spaceship with >> >> for s in spaceship: >> for a in asteroid: >> if calculate_distance(s, a) < 62.5: >>

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-11 Thread Rick Johnson
Lawrence D’Oliveiro wrote: > Rick Johnson wrote: > > And it's not like we can just pick file up and shake > > it, in a crude attempt to intuit the contents. > > Yes we can! BO??? Is that you? -- https://mail.python.org/mailman/listinfo/python-list

Re: Python homework

2017-12-11 Thread jladasky
On Thursday, December 7, 2017 at 4:49:52 AM UTC-8, edmondo.g...@gmail.com wrote: > import numpy I teach Python to students at varying levels. As much as I love and use Numpy in my regular work, I try to avoid showing beginning Python students solutions that require third-party packages. Her

Re: Please tell me how to execute python file in Ubuntu by double

2017-12-11 Thread Rustom Mody
This thread is getting like a mini hologram of our current surreal time… If we can put aside who is right and wrong for a moment we see the more frightening spectacle that Repubs and democrats, Remainers and Brexiters and so on all over — by getting more and more shrill are not talking to each o

Re: Please tell me how to execute python file in Ubuntu by double

2017-12-11 Thread Chris Angelico
On Tue, Dec 12, 2017 at 12:37 PM, Rustom Mody wrote: > > This thread is getting like a mini hologram of our current surreal time… > If we can put aside who is right and wrong for a moment we see the more > frightening spectacle that Repubs and democrats, Remainers and Brexiters and > so > on all

Re: request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-11 Thread dieter
F Massion writes: > ... > I would like to get information from Wikipedia articles and I am testing the > connection to Wikipedia. > > I am running Python 3.6.2 on Windows 10. > > I get certificate errors for all pages with https. > Any suggestions are welcome! > ... > self._sslobj.do_handsh