urllib3 1.23 breaks API

2018-06-05 Thread Cecil Westerhof
I had installed urllib3 1.22 for Python3. I upgraded it to 1.23. This broke the requirements for requests 2.18.4: requests 2.18.4 has requirement urllib3<1.23,>=1.21.1, but you'll have urllib3 1.23 which is incompatible I downgraded to 1.22, but this should not happen I think. -- Cecil West

Re: tkinter (ttk) combobox dropdown text is white on white

2018-06-05 Thread MRAB
On 2018-06-06 02:42, Terry Reedy wrote: On 6/3/2018 3:54 PM, Jim Lee wrote: Given the following snippet (Python 3.6.5, Tk 8.6.8): What OS? Likely not Windows Already answered: Linux (Fedora 28, MATE desktop). import tkinter as tk from tkinter import ttk root = tk.Tk() cb = ttk.Combobox(ro

Re: tkinter (ttk) combobox dropdown text is white on white

2018-06-05 Thread Terry Reedy
On 6/3/2018 3:54 PM, Jim Lee wrote: Given the following snippet (Python 3.6.5, Tk 8.6.8): What OS? Likely not Windows import tkinter as tk from tkinter import ttk root = tk.Tk() cb = ttk.Combobox(root) cb.grid(row=0, column=0, sticky='NSEW') cb['values'] = ['one', 'two', 'three', 'four'] roo

Re: Attachments

2018-06-05 Thread Ben Finney
"Peter J. Holzer" writes: > Then the statement > > | (For good reasons, attachments are dropped when messages are > | distributed on the forum.) > > was demonstrable false (at least overly general) as the attachment in > Jach's message wasn't dropped. Try this more precise statement, then: Many

2018 John Hunter Excellence in Plotting Contest

2018-06-05 Thread Nelle Varoquaux
Hello everyone, Sorry about the cross-posting. There's a couple more days to submit to the John Hunter Excellence in Plotting Competition! If you have any scientific plot worth sharing, submit an entry before June 8th. For more information, see below. Thanks, Nelle In memory of John Hunter, we

site package does not work

2018-06-05 Thread Erik Martinson via Python-list
I am trying to dynamically add a site-package to a script that is run as a cron job. The method adduseristepackages does not seem to do anything. import sys import site print('-')print(site.getusersitepackages()) print('add', site.addusersitepackages('/home/erik/.local/l

Re: Learning Python

2018-06-05 Thread Stephen Tucker
I have found Learning Python by Mark Lutz helpful. I have the 4th edition (2009). Its ISBN is 978-0-596-15806-4. A lot will depend on your learning style. This book reads more like a set of course notes than a reference book, but it does contain tables and summaries, too. On Tue, Jun 5, 2018 at 5

Re: Why exception from os.path.exists()?

2018-06-05 Thread eryk sun
On Tue, Jun 5, 2018 at 3:28 PM, Peter J. Holzer wrote: > > Now, if MacOS uses something like that, this is a different matter. > Presumably (since HFS+ is a native file system) the kernel deals with > NUL characters in a straightforward manner. It might even have a > (non-POSIX) API to expose such

Re: Learning Python

2018-06-05 Thread Ned Batchelder
On 6/5/18 12:51 PM, T Berger wrote: Can someone learn Python through a book such as Head Start Python? Would an online course from MIT or google be better? This is really a question about your own learning style.  It is possible to learn from a book.  Not too long ago, that was one of the onl

Learning Python

2018-06-05 Thread T Berger
Can someone learn Python through a book such as Head Start Python? Would an online course from MIT or google be better? -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter (ttk) combobox dropdown text is white on white

2018-06-05 Thread Jim Lee
On 06/05/2018 12:21 AM, Peter Otten wrote: Jim Lee wrote: Oops, I hit "reply" instead of "reply-list" last time. Trying again... On 06/03/2018 02:01 PM, Christian Gollwitzer wrote: Am 03.06.18 um 21:54 schrieb Jim Lee:> import tkinter as tk from tkinter import ttk root = tk.Tk() cb = tt

Re: Attachments

2018-06-05 Thread Peter J. Holzer
On 2018-06-05 09:33:03 +1000, Ben Finney wrote: > "Peter J. Holzer" writes: > > So we have determined that "the forum" is not the mailing list and not > > the newsgroup (Jach's message appeared on both with the attachment). > > By “the forum” I don't mean any specific server to the exclusion of >

Re: Why exception from os.path.exists()?

2018-06-05 Thread Peter J. Holzer
On 2018-06-05 07:37:34 +, Steven D'Aprano wrote: > On Mon, 04 Jun 2018 22:13:47 +0200, Peter J. Holzer wrote: > > On 2018-06-04 13:23:59 +, Steven D'Aprano wrote: > >> I don't know whether or not the Linux OS is capable of accessing > >> files with embedded NULs in the file name. But Mac OS

Re: Attachments

2018-06-05 Thread Grant Edwards
On 2018-06-05, Peter Otten <__pete...@web.de> wrote: > Peter J. Holzer wrote: > >>> However, I did see that particular particular attachment, test.py in >>> Jach's original post, and I'm reading c.l.py via gmane. >> >> comp.lang.python or gmane.comp.python.general? (I see the latter >> but not the

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-05 Thread bellcanadardp
On Sunday, 3 June 2018 20:11:43 UTC-4, Steven D'Aprano wrote: > On Sun, 03 Jun 2018 16:36:12 -0700, bellcanadardp wrote: > > > hello peter ...how exactly would i solve this issue .i have a script > > that works in python 2 but not pytho3..i did 2 to 3.py ...but i still > > get the errro...cha

Re: Why exception from os.path.exists()?

2018-06-05 Thread Chris Angelico
On Tue, Jun 5, 2018 at 11:11 PM, Steven D'Aprano wrote: > On Tue, 05 Jun 2018 20:15:01 +1000, Chris Angelico wrote: > >> On Tue, Jun 5, 2018 at 5:37 PM, Steven D'Aprano >> wrote: >>> On Mon, 04 Jun 2018 22:13:47 +0200, Peter J. Holzer wrote: >>> On 2018-06-04 13:23:59 +, Steven D'Aprano

Re: Why exception from os.path.exists()?

2018-06-05 Thread Steven D'Aprano
On Tue, 05 Jun 2018 20:15:01 +1000, Chris Angelico wrote: > On Tue, Jun 5, 2018 at 5:37 PM, Steven D'Aprano > wrote: >> On Mon, 04 Jun 2018 22:13:47 +0200, Peter J. Holzer wrote: >> >>> On 2018-06-04 13:23:59 +, Steven D'Aprano wrote: >> [...] >> I don't know whether or not the Linux OS

Re: Why exception from os.path.exists()?

2018-06-05 Thread Chris Angelico
On Tue, Jun 5, 2018 at 5:37 PM, Steven D'Aprano wrote: > On Mon, 04 Jun 2018 22:13:47 +0200, Peter J. Holzer wrote: > >> On 2018-06-04 13:23:59 +, Steven D'Aprano wrote: > [...] > >>> I don't know whether or not the Linux OS is capable of accessing files >>> with embedded NULs in the file name

Re: Why exception from os.path.exists()?

2018-06-05 Thread Steven D'Aprano
On Mon, 04 Jun 2018 22:13:47 +0200, Peter J. Holzer wrote: > On 2018-06-04 13:23:59 +, Steven D'Aprano wrote: [...] >> I don't know whether or not the Linux OS is capable of accessing files >> with embedded NULs in the file name. But Mac OS is capable of doing so, >> so it should be possible.

Re: user defined modules

2018-06-05 Thread Steven D'Aprano
On Mon, 04 Jun 2018 20:13:32 -0700, Sharan Basappa wrote: > Is there a specific location where user defined modules need to be kept? > If not, do we need to specify search location so that Python interpreter > can find it? Python modules used as scripts can be run from anywhere, by pointing the

Re: Attachments

2018-06-05 Thread Peter Otten
Peter J. Holzer wrote: >> However, I did see that particular particular attachment, test.py in >> Jach's original post, and I'm reading c.l.py via gmane. > > comp.lang.python or gmane.comp.python.general? (I see the latter but not > the former on gmane, but I'm accessing it anonymously which migh

Re: tkinter (ttk) combobox dropdown text is white on white

2018-06-05 Thread Peter Otten
Jim Lee wrote: > Oops, I hit "reply" instead of "reply-list" last time. Trying again... > > > On 06/03/2018 02:01 PM, Christian Gollwitzer wrote: >> Am 03.06.18 um 21:54 schrieb Jim Lee:> import tkinter as tk >>> from tkinter import ttk >>> >>> root = tk.Tk() >>> cb = ttk.Combobox(root) >>> cb.