Re: Request for help

2016-07-19 Thread MRAB
On 2016-07-19 22:21, alister wrote: On Tue, 19 Jul 2016 13:06:39 +1000, Steven D'Aprano wrote: On Tue, 19 Jul 2016 06:20 am, alister wrote: I suggest next time you stay awake during lessons. That's an uncalled for nasty comment. You don't know the O.P's issues or why he is having difficulty

Re: Request for help

2016-07-19 Thread alister
On Tue, 19 Jul 2016 13:06:39 +1000, Steven D'Aprano wrote: > On Tue, 19 Jul 2016 06:20 am, alister wrote: > >> I suggest next time you stay awake during lessons. > > That's an uncalled for nasty comment. You don't know the O.P's issues or > why he is having difficulty. because he has failed to

Re: Request for help

2016-07-19 Thread Steven D'Aprano
On Mon, 18 Jul 2016 07:50 pm, Eric kago wrote: > Hi Pythoners > > I need help in understanding hoe to put up the code to the following > command Hi Eric, You might find that the "Tutor" mailing list is better for simple questions like this: https://mail.python.org/mailman/listinfo/tutor Reme

Re: Request for help

2016-07-18 Thread Steven D'Aprano
On Tue, 19 Jul 2016 06:20 am, alister wrote: > I suggest next time you stay awake during lessons. That's an uncalled for nasty comment. You don't know the O.P's issues or why he is having difficulty. -- Steven “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, t

Re: Request for help

2016-07-18 Thread alister
On Mon, 18 Jul 2016 12:50:04 +0300, Eric kago wrote: > Hi Pythoners > > I need help in understanding hoe to put up the code to the following > command > > >- Create a constructor that takes in an integer and assigns this to a >`balance` property > > > > > Regards, > > Eric Kago +25

Re: Request for help

2016-07-18 Thread Eric kago
Hi Pythoners I need help in understanding hoe to put up the code to the following command - Create a constructor that takes in an integer and assigns this to a `balance` property Regards, Eric Kago +254(0)714249373 Nairobi Kenya -- https://mail.python.org/mailman/listinfo/python-list

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 17:20:54 Ethan Furman did opine: > On 11/19/2013 08:19 AM, Gene Heskett wrote: > > On Tuesday 19 November 2013 11:16:10 Peter Otten did opine: > >> Gene Heskett wrote: > >>> OSError: [Errno 2] No such file or directory > >>> > >>> No clue, even when straced, as to what

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 16:48:40 xDog Walker did opine: > On Tuesday 2013 November 19 10:57, Tim Chase wrote: > > Just an observation here, it looks like you might have a "one" > > instead of an "ell" in "float" in the file-name. > > That is exactly what I see using Monospace font where the l

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 17:17:12 xDog Walker did opine: > On Tuesday 2013 November 19 10:57, Tim Chase wrote: > > Just an observation here, it looks like you might have a "one" > > instead of an "ell" in "float" in the file-name. > > Gene, > In an earlier email in this thread I lied when

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 17:02:37 Mark Lawrence did opine: > On 19/11/2013 19:06, xDog Walker wrote: > > On Tuesday 2013 November 19 10:43, Gene Heskett wrote: > >> Interesting, a print cmd immediately in front of that is quite noisy: > >> ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'cam

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 16:03:23 Tim Chase did opine: > On 2013-11-19 13:43, Gene Heskett wrote: > > Interesting, a print cmd immediately in front of that is quite > > noisy: ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', > > 'camview.cfg', '-g', 'cam.ui', '-H', 'campins.hal', '-w', > > '1

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 10:57, Tim Chase wrote: > Just an observation here, it looks like you might have a "one" > instead of an "ell" in "float" in the file-name. Gene, In an earlier email in this thread I lied when I stated the name of the file you were missing (I retyped what I tho

Re: My first real request for help

2013-11-19 Thread Mark Lawrence
On 19/11/2013 19:06, xDog Walker wrote: On Tuesday 2013 November 19 10:43, Gene Heskett wrote: Interesting, a print cmd immediately in front of that is quite noisy: ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'camview.cfg', '-g', 'cam.ui', '-H', 'campins.hal', '-w', '150995278'] The fil

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 10:57, Tim Chase wrote: > Just an observation here, it looks like you might have a "one" > instead of an "ell" in "float" in the file-name. That is exactly what I see using Monospace font where the letter and digit are different shapes. -- Yonder nor sorghum stenches

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 10:43, Gene Heskett wrote: > Interesting, a print cmd immediately in front of that is quite noisy: > ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'camview.cfg', '-g', > 'cam.ui', '-H', 'campins.hal', '-w', '150995278'] The file it cannot find is apparently ./camvi

Re: My first real request for help

2013-11-19 Thread Tim Chase
On 2013-11-19 13:43, Gene Heskett wrote: > Interesting, a print cmd immediately in front of that is quite > noisy: ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', > 'camview.cfg', '-g', 'cam.ui', '-H', 'campins.hal', '-w', > '150995278'] This suggests that the value of "cmd" is indeed a list of

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 12:42:28 Tim Chase did opine: > On 2013-11-19 12:19, Gene Heskett wrote: > > > On 2013-11-19 11:19, Gene Heskett wrote: > > > >>> Traceback (most recent call last): > > > >>> File "/usr/bin/axis", line 3326, in > > > >>> > > > >>> _dynamic_tabs(inifile) > > >

Re: My first real request for help

2013-11-19 Thread Ethan Furman
On 11/19/2013 08:19 AM, Gene Heskett wrote: On Tuesday 19 November 2013 11:16:10 Peter Otten did opine: Gene Heskett wrote: OSError: [Errno 2] No such file or directory No clue, even when straced, as to what file might be missing. So, how do I find out? How about inserting a print cmd be

Re: My first real request for help

2013-11-19 Thread Peter Otten
Gene Heskett wrote: > On Tuesday 19 November 2013 11:16:10 Peter Otten did opine: > >> Gene Heskett wrote: >> > Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 >> > LTS repo's. >> > >> > Should be a mauchs nichs as the code was written on, and is running >> > on, several of

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 09:19, Gene Heskett wrote: > _dynamic_tabs is not a file in /usr/lib/python2.6, nor does it "grep" in > that directory. The Traceback says that _dynamic_tabs is in /usr/bin/axis . -- Yonder nor sorghum stenches shut ladle gulls stopper torque wet strainers. -- http

Re: My first real request for help

2013-11-19 Thread Tim Chase
On 2013-11-19 12:19, Gene Heskett wrote: > > On 2013-11-19 11:19, Gene Heskett wrote: > > >>> Traceback (most recent call last): > > >>> File "/usr/bin/axis", line 3326, in > > >>> > > >>> _dynamic_tabs(inifile) > > >>> > > >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs > >

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 12:12:49 Tim Chase did opine: > On 2013-11-19 11:19, Gene Heskett wrote: > >>> Traceback (most recent call last): > >>> File "/usr/bin/axis", line 3326, in > >>> > >>> _dynamic_tabs(inifile) > >>> > >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs >

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 08:19, Gene Heskett wrote: > You are suggesting I edit /usr/lib/python2.6/subprocess.py? You should use either subprocess.Popen(["ls", "-l"]) or subprocess.Popen("ls -l") The argument to the first is a two element list. The argument to the second is a str

Re: My first real request for help

2013-11-19 Thread Tim Chase
On 2013-11-19 11:19, Gene Heskett wrote: >>> Traceback (most recent call last): >>> File "/usr/bin/axis", line 3326, in >>> >>> _dynamic_tabs(inifile) >>> >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs >>> >>> child = Popen(cmd) > > You are suggesting I edit /usr/lib/py

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 11:16:10 Peter Otten did opine: > Gene Heskett wrote: > > Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 > > LTS repo's. > > > > Should be a mauchs nichs as the code was written on, and is running > > on, several of these same linuxcnc installs. >

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 08:51:09 Albert Dengg did opine: > On Tue, Nov 19, 2013 at 04:31:15AM -0500, Gene Heskett wrote: > ... > > > But when I switch in, as one of the plugins a new .py version of > > camview- emc, I get this when I attempt to run linuxcnc -l, where the > > -l is "use the sa

Re: My first real request for help

2013-11-19 Thread Peter Otten
Gene Heskett wrote: > Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 LTS > repo's. > > Should be a mauchs nichs as the code was written on, and is running on, > several of these same linuxcnc installs. > > But when I switch in, as one of the plugins a new .py version of cam

Re: My first real request for help

2013-11-19 Thread Albert Dengg
On Tue, Nov 19, 2013 at 04:31:15AM -0500, Gene Heskett wrote: ... > But when I switch in, as one of the plugins a new .py version of camview- > emc, I get this when I attempt to run linuxcnc -l, where the -l is "use the > same config as last time" option. > > Starting LinuxCNC... > Traceback (mos

My first real request for help

2013-11-19 Thread Gene Heskett
Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 LTS repo's. Should be a mauchs nichs as the code was written on, and is running on, several of these same linuxcnc installs. But when I switch in, as one of the plugins a new .py version of camview- emc, I get this when I atte

Re: request for help

2013-02-18 Thread Terry Reedy
On 2/18/2013 2:42 PM, leonardo selmi wrote: i saved the above program from python shell into a file as "circle.py" . Which copied too much into the file. Edit circle.py until it is a proper python program. My initial guess was that you copied the >>> prompts, but you later message shows that

Re: request for help

2013-02-18 Thread Rick Johnson
leonardo libero.it> writes: > here is the error message: > [...] Okay, now we are on the road to solving this problem. But first we need to take a slight detour and learn about python packaging, because no matter what the current error is, naming a module "circle" and then throwing it naked out

Re: request for help

2013-02-18 Thread Gary Herron
On 02/18/2013 12:14 PM, leonardo wrote: thanks guys and sorry for my incomplete datas, here is the error message: Traceback (most recent call last): File "", line 1, in import circle File "circle.py", line 1 Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) ^ Sy

Re: request for help

2013-02-18 Thread leonardo
thanks guys and sorry for my incomplete datas, here is the error message: Traceback (most recent call last): File "", line 1, in import circle File "circle.py", line 1 Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) ^ SyntaxError: invalid syntax thanks for any hel

Re: request for help

2013-02-18 Thread Stefan Holdermans
Leonardi, > i saved the above program from python shell into a file as "circle.py" . when > i type "import circle" i get error.. Next time, please mention what kind of error you're getting. Was it an indentation error? Because, as you pasted it, your code would lead to one. If I fix the ind

Re: request for help

2013-02-18 Thread Gary Herron
On 02/18/2013 11:42 AM, leonardo selmi wrote: pls i need help: i have copied the following from a book and tried to make it work: import math def area(radius): return math.pi * radius**2 def circumference(radius): return 2 * math.pi * radius i saved the above program from python shell into a

Re: request for help

2013-02-18 Thread Rick Johnson
leonardo selmi icloud.com> writes: > [...] > i saved the above program from python shell into a file as > "circle.py" . when i type "import circle" i get error.. Urm... would you be so kind as to copy and paste the error message verbatim? You have obvious syntax errors in this code due to improp

Re: request for help

2013-02-18 Thread Matt Jones
Is this exactly how it shows in your shell? If so, it seems you need to indent your methods. # import math def area(radius): return math.pi * radius**2 def circumference(radius): return 2 * math.pi * radius #***

request for help

2013-02-18 Thread leonardo selmi
pls i need help: i have copied the following from a book and tried to make it work: import math def area(radius): return math.pi * radius**2 def circumference(radius): return 2 * math.pi * radius i saved the above program from python shell into a file as "circle.py" . when i type "import circ

Re: Hello, and request for help with 'dynamic grids'

2011-10-03 Thread Ed Leafe
On Sep 5, 2011, at 8:33 AM, Simon Cropper wrote: > Dabo is a great product. Spoke extensively with Ed Leafe and Paul McNett. > Unfortunately the framework is not 'dynamic'. If you have an fixed database > and tables it can quite quickly create a basic data entry setup and menu. > Looks great wh

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Simon Cropper
On 06/09/11 00:40, alex23 wrote: On Sep 5, 3:18 pm, Simon Cropper wrote: My investigations have generally found that windows/forms/data entry screen can be created for a specific table or view, but these are hard-wired during development. Is there anyway of rapidly defining the grid during runti

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread alex23
On Sep 5, 3:18 pm, Simon Cropper wrote: > My investigations have generally found that windows/forms/data entry > screen can be created for a specific table or view, but these are > hard-wired during development. Is there anyway of rapidly defining the > grid during runtime so any table can be view

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Simon Cropper
On 05/09/11 23:23, pyt...@bdurham.com wrote: Check out dabodev.com. Dabo is a Python framework created by former VFP developers. Dabo is a great product. Spoke extensively with Ed Leafe and Paul McNett. Unfortunately the framework is not 'dynamic'. If you have an fixed database and tables it

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread python
Hi Simon, > I am a applications developer - originally from Windows using primarily Visual Foxpro, although I am familiar with a variety of other xbase derivatives. Check out dabodev.com. Dabo is a Python framework created by former VFP developers. Highly recommended. Malcolm -- http://mail

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Simon Cropper
On 05/09/11 20:40, Thomas Jollans wrote: It depends on which windowing toolkit you're planning to use. If you use PyGTK, you'd want a TreeView widget to display the list. Fill a ListStore instance with your data and give that to the TreeView. You can implement filtering and sorting on top of that

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Thomas Jollans
On 05/09/11 07:18, Simon Cropper wrote: > I am looking for the ability to create dynamic grids in a window but > can't for the life of me find how to do this. It depends on which windowing toolkit you're planning to use. If you use PyGTK, you'd want a TreeView widget to display the list. Fill a Li

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Simon Cropper
On 05/09/11 17:19, Steven D'Aprano wrote: On Mon, 5 Sep 2011 03:18 pm Simon Cropper wrote: I am looking for the ability to create dynamic grids in a window but can't for the life of me find how to do this. What GUI toolkit are you using? I have looked at wxGlade, Boa Constructor, wxFormBu

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Steven D'Aprano
On Mon, 5 Sep 2011 03:18 pm Simon Cropper wrote: > I am looking for the ability to create dynamic grids in a window but > can't for the life of me find how to do this. What GUI toolkit are you using? -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Hello, and request for help with 'dynamic grids'

2011-09-04 Thread Simon Cropper
Hi, I am a applications developer - originally from Windows using primarily Visual Foxpro, although I am familiar with a variety of other xbase derivatives. I now use Linux / Ubuntu, and have been actively teaching myself Python with the view to migrate most of my applications to sqlite-based

Rosetta Code: request for help

2009-06-20 Thread Paddy
Hi, If you like programming problems and reading about/creating solutions to tasks in many languages not just Python, then take a look at Rosetta Code: http://www.rosettacode.org . If you 'lurk' for a while and read the submissions of others to get a feal for the site, then their is a list of tasks

Re: Request for help with Image color space conversion

2008-01-06 Thread caca
> > ...where the image data is loaded into a numpy array > (1600x1200x3)... One comment: that is a big array, too big for the cache memory. I know that in these cases it makes a difference how many times the slices of the array are loaded and unloaded from RAM onto cache. One issue is that a 2D a

Re: Request for help with Image color space conversion

2008-01-05 Thread Robert Kern
ttest wrote: >> Reimplement colorsys.rgb_to_hsv() such that it operates on arrays instead of >> scalars. Only minor modifications are necessary. >> >> -- >> Robert Kern > > Thanks! I'll try and see if a newcomer like me can get his head > around the array-centric modifications to colorsys. If yo

Re: Request for help with Image color space conversion

2008-01-05 Thread ttest
> Reimplement colorsys.rgb_to_hsv() such that it operates on arrays instead of > scalars. Only minor modifications are necessary. > > -- > Robert Kern Thanks! I'll try and see if a newcomer like me can get his head around the array-centric modifications to colorsys. -- http://mail.python.org/mai

Re: Request for help with Image color space conversion

2008-01-04 Thread Robert Kern
ttest wrote: > Hello, > > I'm working on an image processing project using the Python Imaging > Library along with numpy. Right now, I'm trying to build a speedy > script for converting whole images between the RGB and the HSV (a.k.a. > HSB) color spaces. Unfortunately, the code I've made so far

Request for help with Image color space conversion

2008-01-04 Thread ttest
Hello, I'm working on an image processing project using the Python Imaging Library along with numpy. Right now, I'm trying to build a speedy script for converting whole images between the RGB and the HSV (a.k.a. HSB) color spaces. Unfortunately, the code I've made so far runs dreadfully slow wit

Re: Request for help on naming conventions

2005-06-13 Thread Terry Hancock
On Monday 13 June 2005 03:59 am, Steven D'Aprano wrote: > Are there any useful naming conventions for modules, classes and functions? > > For instance, should I name functions as verbs and classes as nouns? Hmm. Okay, here's a few I use: Classes are generally: Capitalized or CapWords and I use

Re: Request for help on naming conventions

2005-06-13 Thread Benjamin Niemann
Steven D'Aprano wrote: > Are there any useful naming conventions for modules, classes and > functions? > > For instance, should I name functions as verbs and classes as nouns? > > eg > class Transformer(): > pass > > def transform(): > do_stuff > > What about the module name? transform

Request for help on naming conventions

2005-06-13 Thread Steven D'Aprano
Are there any useful naming conventions for modules, classes and functions? For instance, should I name functions as verbs and classes as nouns? eg class Transformer(): pass def transform(): do_stuff What about the module name? transformations.py or transform.py? What do people do wit

Re: Request for Help in OpenSourcing a Project

2004-12-17 Thread fuzzylollipop
www.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list

Request for Help in OpenSourcing a Project

2004-12-17 Thread Colin Meeks
I love Python and started back when 1.52 was the popular version. Whilst learning Python, I created a website framework called [EMAIL PROTECTED], which I run at the following two sites : http://www.meeks.ca All content is done in [EMAIL PROTECTED] and static pages are created. http://www.programm