Re: Simple graphic library for beginners

2018-01-11 Thread Steven D'Aprano
On Fri, 12 Jan 2018 12:45:04 +1300, Gregory Ewing wrote: > Seems to me it would help if pip were to announce which version of > Python it's installing things into. And instead of just saying "not > compatible with this version of Python", say "not compatible with Python > X.Y.Z". That would make t

Re: Simple graphic library for beginners

2018-01-11 Thread Jan Erik Moström
On 10 Jan 2018, at 13:40, Jan Erik Moström wrote: I'm looking for a really easy to use graphic library. The target users are teachers who have never programmed before and is taking a first (and possible last) programming course. Thanks for all the suggestions, I'm going to take a look at them

Re: Simple graphic library for beginners

2018-01-11 Thread Steven D'Aprano
On Fri, 12 Jan 2018 12:14:03 +1100, Chris Angelico wrote: > On Fri, Jan 12, 2018 at 11:57 AM, Steven D'Aprano > wrote: [...] >> Recent Pythons include "ensure pip" by default, which is a private >> version of pip which is intended to do nothing but install the latest >> version of pip. > > True,

Re: PSF grant for "Shed Skin" to python 3.x?

2018-01-11 Thread Terry Reedy
On 1/11/2018 4:49 PM, Dan Stromberg wrote: Hi folks. Is anyone on the list familiar with the process of getting a Python Software Foundation grant awarded to a worthy project? And with what's generally considered "worthy"? The best people to answer that are the grants committee. Is there an

Re: Simple graphic library for beginners

2018-01-11 Thread Terry Reedy
On 1/11/2018 6:35 PM, Gregory Ewing wrote: bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). I suspect some of your problems might have been caused by 'pip'

Re: Simple graphic library for beginners

2018-01-11 Thread Terry Reedy
On 1/11/2018 3:34 PM, Dietmar Schwertberger wrote: On 1/11/2018 8:51 PM, bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). You can't expect that people prov

Re: Simple graphic library for beginners

2018-01-11 Thread Terry Reedy
On 1/11/2018 2:51 PM, bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). The recommended way to run pip and similar python code is -m pip install xyz where

Re: Simple graphic library for beginners

2018-01-11 Thread Ned Batchelder
On 1/11/18 8:21 PM, bartc wrote: On 11/01/2018 23:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: I'm almost ready to plonk you, but I think there is still SOME value in your posts. But please, stop denigrating what you don't understand. And please try to see thing

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 12:21 PM, bartc wrote: > On 11/01/2018 23:23, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: > > >> I'm almost ready to plonk you, but I think there is still SOME value >> in your posts. But please, stop denigrating what you don't understand. >

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 23:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: I'm almost ready to plonk you, but I think there is still SOME value in your posts. But please, stop denigrating what you don't understand. And please try to see things from the pointer of view of a be

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 11:57 AM, Steven D'Aprano wrote: > On Fri, 12 Jan 2018 05:42:03 +1100, Chris Angelico wrote: > >> On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: > [...] >>> Except my Python 3.6 doesn't have pip. There is a however a copy in my >>> Python 3.4. But that gives me the message:

Re: Simple graphic library for beginners

2018-01-11 Thread Steven D'Aprano
On Fri, 12 Jan 2018 05:42:03 +1100, Chris Angelico wrote: > On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: [...] >> Except my Python 3.6 doesn't have pip. There is a however a copy in my >> Python 3.4. But that gives me the message: > > Why doesn't it? Recent Pythons should include pip by default

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-11 Thread Gregory Ewing
Robert O'Shea wrote: I wrote a little bytecode interpreter in C (maybe should have upgrade to C++ but not yet) Don't feel bad about that -- IMO, C is perfectly fine for tnis kind of thing, and "upgrading" to C++ would gain you nothing while introducing extra headaches. -- Greg -- https://mail.

Re: Simple graphic library for beginners

2018-01-11 Thread Gregory Ewing
Ned Batchelder wrote: so "pip install pygame" should work. Some people seem so determined to dislike a thing, they cannot be convinced there are solutions to their problems. But it clearly didn't work for bartc at first, and the error messages he got didn't make it at all clear why. You can't

Re: Simple graphic library for beginners

2018-01-11 Thread Gregory Ewing
bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). I suspect some of your problems might have been caused by 'pip' not using the Python you thought it was usin

Re: Simple graphic library for beginners

2018-01-11 Thread MRAB
On 2018-01-11 23:11, bartc wrote: On 11/01/2018 22:32, Chris Angelico wrote: On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: As I understand it, pygame is just another add-on, which doesn't inherently need to use .whl format, and which doesn't inherently need to use 'pip' package installer. I

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: > On 11/01/2018 22:32, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: > > >>> As I understand it, pygame is just another add-on, which doesn't >>> inherently >>> need to use .whl format, and which doesn't inherently need to

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 22:32, Chris Angelico wrote: On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: As I understand it, pygame is just another add-on, which doesn't inherently need to use .whl format, and which doesn't inherently need to use 'pip' package installer. I even saw somewhere that you needed

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 9:52 AM, Skip Montanaro wrote: >> So besides just grabbing a chunk of CPython source code and digesting it, I >> was wondering if those of you have read and understood the source code, do >> you have any tips or good starting points? > > Not mentioned yet, but maybe worth c

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-11 Thread Skip Montanaro
> So besides just grabbing a chunk of CPython source code and digesting it, I > was wondering if those of you have read and understood the source code, do > you have any tips or good starting points? Not mentioned yet, but maybe worth considering, might be to dip into the way back machine and star

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: > On 11/01/2018 20:53, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 7:34 AM, bartc wrote: > > >>> It failed on my 3.6, it failed on 3.4, it failed on 3.7 (is what 'pip' >>> does >>> really so leading edge?), and finally worked on a brand-new 3.

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 20:53, Chris Angelico wrote: On Fri, Jan 12, 2018 at 7:34 AM, bartc wrote: It failed on my 3.6, it failed on 3.4, it failed on 3.7 (is what 'pip' does really so leading edge?), and finally worked on a brand-new 3.6. In case you haven't figured it out by now, pygame has differe

PSF grant for "Shed Skin" to python 3.x?

2018-01-11 Thread Dan Stromberg
Hi folks. Is anyone on the list familiar with the process of getting a Python Software Foundation grant awarded to a worthy project? And with what's generally considered "worthy"? I found https://www.python.org/psf/records/board/resolutions/ , but almost all of the grants seem to be for conferen

Re: Simple graphic library for beginners

2018-01-11 Thread breamoreboy
On Thursday, January 11, 2018 at 8:34:30 PM UTC, bartc wrote: > On 11/01/2018 20:12, Chris Angelico wrote: > > On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: > >> On 11/01/2018 19:41, Paul Moore wrote: > >>> > >>> On 11 January 2018 at 18:33, bartc wrote: > >> > >> > >>> python -m pip instal

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 7:34 AM, bartc wrote: > On 11/01/2018 20:12, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: >>> >>> On 11/01/2018 19:41, Paul Moore wrote: On 11 January 2018 at 18:33, bartc wrote: >>> >>> >>> python -m pip install XXX

Re: Simple graphic library for beginners

2018-01-11 Thread Dietmar Schwertberger
On 1/11/2018 8:51 PM, bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). You can't expect that people provide binary installers for Python versions that are

Re: Simple graphic library for beginners

2018-01-11 Thread Oivvio Polite
On ons, jan 10, 2018 at 01:40:28 +0100, Jan Erik Moström wrote: > I'm looking for a really easy to use graphic library. The target users are > teachers who have never programmed before and is taking a first (and > possible last) programming course. > I do a two day workshop for design and illustr

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 20:12, Chris Angelico wrote: On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: On 11/01/2018 19:41, Paul Moore wrote: On 11 January 2018 at 18:33, bartc wrote: python -m pip install XXX just works, for 99% of things anyone wants. In particular it works for pygame. Conti

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: > On 11/01/2018 19:41, Paul Moore wrote: >> >> On 11 January 2018 at 18:33, bartc wrote: > > >> python -m pip install XXX >> >> just works, for 99% of things anyone wants. In particular it works for >> pygame. >> >> Continuing to complain about a

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 19:41, Paul Moore wrote: On 11 January 2018 at 18:33, bartc wrote: python -m pip install XXX just works, for 99% of things anyone wants. In particular it works for pygame. Continuing to complain about a situation that has been resolved for a year or more I tried that on

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 6:51 AM, bartc wrote: > On 11/01/2018 18:42, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: > > >>> Well, that seemed to do something, and it didn't need me to download any >>> .whl files. But then I noticed a bunch of errors culminating with: >>

Re: Simple graphic library for beginners

2018-01-11 Thread Paul Moore
On 11 January 2018 at 19:51, bartc wrote: > I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, > this time with the 'set environment variables' option (to allow 'pip' to be > typed from anywhere). Stop trolling. Python 3.7 final hasn't been released yet. OF COURSE you will

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 18:42, Chris Angelico wrote: On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: Well, that seemed to do something, and it didn't need me to download any .whl files. But then I noticed a bunch of errors culminating with: "Command python setup.py egg_info failed with error code 1 in C

Re: Simple graphic library for beginners

2018-01-11 Thread Paul Moore
On 11 January 2018 at 18:33, bartc wrote: >> Go. Fetch. Stop fudding. > > And you know this link, how? Because googling for 'download pygame', it > doesn't appear on the first page (or in any of the next half dozen). Using your search phrase, the first results I get are: 1. Downloads - Pygame

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: > On 11/01/2018 15:23, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: > > >>> Although I can't run it because 'pygame' is not available. I think >>> installing this library is likely to be a bigger obstacle than >>> program

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 15:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: Although I can't run it because 'pygame' is not available. I think installing this library is likely to be a bigger obstacle than programming any graphics! (If I try and download it as a ready-built lib

Re: Simple graphic library for beginners

2018-01-11 Thread Ned Batchelder
On 1/11/18 10:23 AM, Chris Angelico wrote: On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: On 11/01/2018 05:16, Michael Torrie wrote: On 01/10/2018 01:13 PM, bartc wrote: Yes the link didn't have the simple examples I hoped for. How's this: - import pygame import

Re: PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Harriett Xing
Thanks for the info. I found two copies of pip.exe. One of them was left from a previous installation. Removed the extra copy. Now pip is working. Thank you very much for your help. On Thu, Jan 11, 2018 at 10:46 AM, Harriett Xing wrote: > Thanks for the info. > > "python -m pip " works. > >

Re: PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Harriett Xing
Thanks for the info. "python -m pip " works. Python Path: C:\Users\harriett.xing-adm\AppData\Local\Programs\Python\Python36 C:\Users\harriett.xing-adm\Documents\Learning\python>python Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyrigh

Re: PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Paul Moore
Glad it's working for you. You don't say where your pip.exe command is located, but I suspect what's happening is that you're picking up a pip.exe from an old and since uninstalled copy of Python. But at least you can use pip now which is the main thing :-) Paul On 11 January 2018 at 15:46, Harri

Re: Simple graphic library for beginners

2018-01-11 Thread Michael Torrie
On 01/11/2018 06:38 AM, bartc wrote: > Although I can't run it because 'pygame' is not available. I think > installing this library is likely to be a bigger obstacle than > programming any graphics! > > (If I try and download it as a ready-built library for Windows, it has a > range of .msi fil

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: > On 11/01/2018 05:16, Michael Torrie wrote: >> >> On 01/10/2018 01:13 PM, bartc wrote: > > >> Yes the link didn't have the simple examples I hoped for. How's this: >> - >> import pygame >> import time >> >> pygame.init()

Re: PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Paul Moore
Have you done any research (google, for example) and tried any of the suggested solutions on the web? >From a quick search, I'd suggest: 1. Can you confirm if "python -m pip " has the same error? 2. What is the exact path of the pip executable you're running, and if you go into the Python prompt

PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Harriett Xing
I am getting the message: Fatal error in launcher: Unable to create process using '"' for all pip commands. I tried uninstalling and installing different versions of python, but the pip is still not work, getting the same error message. Has anyone encountered this? Any ideas? Thanks. -- htt

PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Harriett Xing
I am getting the message: Fatal error in launcher: Unable to create process using '"' for all pip commands. I tried uninstalling and installing different versions of python, but the pip is still not work, getting the same error message. Has anyone encountered this? Any ideas? Thanks. -- htt

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-11 Thread Robert O'Shea
Thanks all for the links and suggestions, they are greatly appreciated. I might be programming for a long time (relative to my age) but I haven't touched much on compilers or interpreters. Inspired a but by Python's interpreter I wrote a little bytecode interpreter in C (maybe should have upgrade t

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 05:16, Michael Torrie wrote: On 01/10/2018 01:13 PM, bartc wrote: Yes the link didn't have the simple examples I hoped for. How's this: - import pygame import time pygame.init() screen = pygame.display.set_mode((1024, 768) ) red = (255,0,0) green = (

Re: Pandas printing in jupyter

2018-01-11 Thread Rustom Mody
On Thursday, January 11, 2018 at 2:49:27 PM UTC+5:30, Thomas Jollans wrote: > On 2018-01-11 09:59, Rustom Mody wrote: > > On Thursday, January 11, 2018 at 2:13:46 PM UTC+5:30, Paul Moore wrote: > >> The HTML representation is supplied by the object's _repr_html_ > >> method. See https://ipython.or

ANN: Python Meeting Düsseldorf - 17.01.2018

2018-01-11 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Tref

Re: Generating SVG from turtle graphics

2018-01-11 Thread Lele Gaifax
Steven D'Aprano writes: > Ideally, I'd like to draw a figure pixel by pixel, and then have the SVG > library fit a bezier curve to it. Uhm, dunno if it is a good approach, it really depends on the kind of "figures" you are going to draw. Anyway, in the past I used http://pyx.sourceforge.net/ t

Generating SVG from turtle graphics

2018-01-11 Thread Steven D'Aprano
I'd like to draw something with turtle, then generate a SVG file from it. Is this possible? If not, is there something I can do which lets me plot lines, shapes and curves and output to SVG? Ideally, I'd like to draw a figure pixel by pixel, and then have the SVG library fit a bezier curve to

Re: Pandas printing in jupyter

2018-01-11 Thread Thomas Jollans
On 2018-01-11 09:59, Rustom Mody wrote: > On Thursday, January 11, 2018 at 2:13:46 PM UTC+5:30, Paul Moore wrote: >> The HTML representation is supplied by the object's _repr_html_ >> method. See https://ipython.org/ipython-doc/3/config/integrating.html >> for some details. >> > import pandas

Re: Pandas printing in jupyter

2018-01-11 Thread Rustom Mody
On Thursday, January 11, 2018 at 2:13:46 PM UTC+5:30, Paul Moore wrote: > The HTML representation is supplied by the object's _repr_html_ > method. See https://ipython.org/ipython-doc/3/config/integrating.html > for some details. > > >>> import pandas as pd > >>> df = pd.DataFrame() > >>> df._rep

Re: Pandas printing in jupyter

2018-01-11 Thread Paul Moore
The HTML representation is supplied by the object's _repr_html_ method. See https://ipython.org/ipython-doc/3/config/integrating.html for some details. >>> import pandas as pd >>> df = pd.DataFrame() >>> df._repr_html_() '\n\n.dataframe tbody tr th:only-of-type {\n vertical-align: middle;\