Connecting Terminal to Python 3.5

2015-08-28 Thread Sam Miller
Hello All, I tried to update Python in terminal on my Mac book pro to v3.5 using this website: https://wolfpaulus.com/journal/mac/installing_python_osx/ Sadly I must have made a large mistake since after completing these steps python IDLE and python within terminal failed to open or run. I

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread John T. Haggerty
People are naturally competitive. People naturally don't like to hear the word know. People love to get what they want. Combine all of these things together and you have all of the elements necessary to eventually create another conflict. Just because it doesn't happen immediately doesn't mean it's

Re: Linux users: please run gui tests

2015-08-28 Thread Terry Reedy
On 8/28/2015 4:52 AM, Christian Gollwitzer wrote: Here is a small patch which improves the error message a lot: diff -ru Python-3.4.3/Modules/_tkinter.c Python-3.4.3-patched/Modules/_tkinter.c --- Python-3.4.3/Modules/_tkinter.c2015-02-25 12:27:45.0 +0100 +++ Python-3.4.3-patched/Mod

Re: pycparser error or openSUSE error

2015-08-28 Thread Laura Creighton
In a message of Sat, 29 Aug 2015 01:22:54 +0200, Laura Creighton writes: >In a message of Sat, 29 Aug 2015 00:51:57 +0200, Cecil Westerhof writes: >>When doing a ‘zypper update’ on openSUSE I get: >>Installing: python-pycparser-2.12-8.2 >>...

Re: pycparser error or openSUSE error

2015-08-28 Thread Laura Creighton
In a message of Sat, 29 Aug 2015 00:51:57 +0200, Cecil Westerhof writes: >When doing a ‘zypper update’ on openSUSE I get: >Installing: python-pycparser-2.12-8.2 >

pycparser error or openSUSE error

2015-08-28 Thread Cecil Westerhof
When doing a ‘zypper update’ on openSUSE I get: Installing: python-pycparser-2.12-8.2 ..[error] Installation of python-pycparser-2.12-8.2 failed:

Re: Copy polygonal subset of an image

2015-08-28 Thread Laura Creighton
In a message of Fri, 28 Aug 2015 13:30:57 -0700, Marc Camacho Cateura writes: >Hi all, > >For a project, I need to copy a polygonal subset of an image. I have eight >points of panoramic image, and I want to copy this subset onto another >panoramic image. > >I find ways to do this with PIL but onl

Re: RPI.GPIO Help

2015-08-28 Thread hakugin . gin
On Friday, August 28, 2015 at 1:40:41 PM UTC-4, John McKenzie wrote: > Thanks for the replies, everyone. > > Two of you suggested I ask in comp.sys.raspberry-pi. We leave in a world > where people cannot tell you the difference between the world wide web > and the Internet and tech support for

Copy polygonal subset of an image

2015-08-28 Thread Marc Camacho Cateura
Hi all, For a project, I need to copy a polygonal subset of an image. I have eight points of panoramic image, and I want to copy this subset onto another panoramic image. I find ways to do this with PIL but only with a box mask. And I need a polygonal subset from the eight points... I'm new i

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Michael Torrie
On 08/28/2015 01:27 AM, Ben Finney wrote: > -- > \ “Capitalism is the astounding belief that the most wickedest of | > `\men will do the most wickedest of things for the greatest good | > _o__) of everyone.” —John Maynard Keynes | Now that is an interestin

Re: Having no luck installing Twisted 15.3.0

2015-08-28 Thread Laura Creighton
Glad to see it's working. Looking at the notes for 'how to talk to the cheese packaging machine in Oslo' which is where I remember this problem, it seems my fix may be MaxOS specific, anyhow. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Having no luck installing Twisted 15.3.0

2015-08-28 Thread Skip Montanaro
> I've seen this. > > You used pip to install zope.interface, right? > pip installed the thing someplace like: > /usr/local/lib/python2.7/dist-packages/zope > > You want to find it in /usr/share/pyshared/zope/interface/ > > Solution, make a link. Alas... I don't think so. The zope.interface stuff

Re: RPI.GPIO Help

2015-08-28 Thread John McKenzie
Thanks for the replies, everyone. Two of you suggested I ask in comp.sys.raspberry-pi. We leave in a world where people cannot tell you the difference between the world wide web and the Internet and tech support for my ISP once told me in response to mentioning that thei news server was not

Re: Having no luck installing Twisted 15.3.0

2015-08-28 Thread Laura Creighton
In a message of Fri, 28 Aug 2015 12:01:40 -0500, Skip Montanaro writes: >One of our users needs Twisted. I built and installed 15.3.0. When I >tried to import it, it complained: > >ImportError Twisted requires zope.interface 3.6.0 or later. > >Skip I've seen this. You used pip to install zope.in

Re: Having no luck installing Twisted 15.3.0

2015-08-28 Thread Skip Montanaro
On Fri, Aug 28, 2015 at 12:01 PM, Skip Montanaro wrote: > One of our users needs Twisted. I built and installed 15.3.0. When I > tried to import it, it complained: > > ImportError Twisted requires zope.interface 3.6.0 or later. > > So I downloaded, built and installed the latest version of > zope.

Having no luck installing Twisted 15.3.0

2015-08-28 Thread Skip Montanaro
One of our users needs Twisted. I built and installed 15.3.0. When I tried to import it, it complained: ImportError Twisted requires zope.interface 3.6.0 or later. So I downloaded, built and installed the latest version of zope.interface (4.1.2). Still it complains. So I tried 3.7.0. Same old, sa

Re: Casting to a "number" (both int and float)?

2015-08-28 Thread Robin Koch
Am 28.08.2015 um 18:09 schrieb Sven R. Kunze: >> I'm reading JSON output from an input file, and extracting values. > for proper parsing into native Python types, I would recommend YAML. "What's the best way to get from A to B?" "I recommend starting at C." - Every other usenet-discussion. -

Re: Casting to a "number" (both int and float)?

2015-08-28 Thread Sven R. Kunze
Hey Victor, for proper parsing into native Python types, I would recommend YAML. Also also supports (besides int vs. float) dates and datetimes. Cheers, Sven On 28.08.2015 07:04, Victor Hooi wrote: Actually, I've just realised, if I just test for numeric or try to cast to ints, this will bre

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Chris Angelico
On Sat, Aug 29, 2015 at 12:02 AM, Steven D'Aprano wrote: > On Fri, 28 Aug 2015 04:35 pm, Nick Sarbicki wrote: > >> Well who would we fight if we were all friends with each other? > > According to the Nac Mac Feegle, there's always *someone* to fight. If not > an enemy, there's always your friends,

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Steven D'Aprano
On Fri, 28 Aug 2015 04:35 pm, Nick Sarbicki wrote: > Well who would we fight if we were all friends with each other? According to the Nac Mac Feegle, there's always *someone* to fight. If not an enemy, there's always your friends, family, inanimate objects, and if all else fails, yourself. "Criv

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread jmp
On 08/28/2015 11:24 AM, Marko Rauhamaa wrote: Would you rather be an powerful, armed war hero admired and feared by your nation or a foresaken unemployed drunkard who rots in jail? Marko Time to quote the most famous general in the galaxy: “Ohhh. Great warrior.Wars not make one great.” ;) J

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Marko Rauhamaa
Ben Finney : > Steven D'Aprano writes: >> Many people over the ages have thought that if only war was more >> terrible, we would stop making it. Alas, that appears to be false: no >> matter how terrible war is, there is always someone who thinks that >> it is better than peace. > > Those who bene

Re: Casting to a "number" (both int and float)?

2015-08-28 Thread Chris Angelico
On Fri, Aug 28, 2015 at 5:56 PM, Victor Hooi wrote: > > Currently I'm using this: > > def strip_floatApprox_wrapping(field): > # Extracts a integer value from a field. Workaround for the float_approx > wrapping. > if isinstance(field, dict): > return field['floatApprox'] > els

Re: Linux users: please run gui tests

2015-08-28 Thread Christian Gollwitzer
Am 28.08.15 um 08:46 schrieb Terry Reedy: On 8/28/2015 1:56 AM, Christian Gollwitzer wrote: Am 27.08.15 um 20:32 schrieb Terry Reedy: On 8/27/2015 4:56 AM, Petr Viktorin wrote: 1321, in _configure self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) _tkinter.TclError: expected inte

Re: Casting to a "number" (both int and float)?

2015-08-28 Thread Victor Hooi
Hi, Thanks heaps to everybody for their suggestions/advice =). Currently I'm using this: def strip_floatApprox_wrapping(field): # Extracts a integer value from a field. Workaround for the float_approx wrapping. if isinstance(field, dict): return field['floatApprox'] else:

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Ben Finney
Steven D'Aprano writes: > With the greatest of respect to Chomsky, I think he is simply wrong > about Hitler. Hitler actually believed that war was good for the > national character, and indeed good for the soul, and that long > periods of peace would enfeeble a nation and make it decadent and >

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Martin Skjöldebrand
On Fri, 2015-08-28 at 06:35 +, Nick Sarbicki wrote: > Well who would we fight if we were all friends with each other? That's what Paintball is for. /Martin S -- This address is for technical mail lists only.For all other matters, please use my main addressat the .org domain. -- https://mai

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Nick Sarbicki
Well who would we fight if we were all friends with each other? On Fri, 28 Aug 2015 07:31 Steven D'Aprano wrote: > Completely off-topic. Stop reading now if you only want to read things > about > Python. > > > On Fri, 28 Aug 2015 09:46 am, Ben Finney wrote: > > > \“Of course, everybody s