Re: python problem

2021-12-08 Thread Mats Wichmann
On 12/8/21 11:18, Larry Warner wrote: I am new at Python. I have installed Python 3.10.1 and the latest Pycharm. When I attempt to execute anything via Pycharm or the command line, I receive a message it can not find Python. I do not know where Python was loaded or where to find and to update

python problem

2021-12-08 Thread Larry Warner
I am new at Python. I have installed Python 3.10.1 and the latest Pycharm. When I attempt to execute anything via Pycharm or the command line, I receive a message it can not find Python. I do not know where Python was loaded or where to find and to update PATH to the program. Larry --

[issue32022] Python problem - == RESTART: Shell =====

2017-11-14 Thread Shimon Malachi Cohen
Shimon Malachi Cohen added the comment: Here is another simple example - Simple? the game board ==> is small see attached PY file run ==> doFind() -- Added file: https://bugs.python.org/file47264/KAKURU.py ___ Python tracker

[issue32022] Python problem - == RESTART: Shell =====

2017-11-14 Thread Eric V. Smith
Eric V. Smith added the comment: That's too much code for me to run without analyzing it first. If I have time, I'll look at it. -- ___ Python tracker

[issue32022] Python problem - == RESTART: Shell =====

2017-11-14 Thread Shimon Malachi Cohen
Shimon Malachi Cohen added the comment: Not really... Did you see the "restart" ? On Nov 14, 2017 2:38 PM, "Eric V. Smith" wrote: > > Eric V. Smith added the comment: > > Can you reproduce this with a much smaller example? > >

[issue32022] Python problem - == RESTART: Shell =====

2017-11-14 Thread Eric V. Smith
Eric V. Smith added the comment: Can you reproduce this with a much smaller example? -- nosy: +eric.smith ___ Python tracker ___

[issue32022] Python problem - == RESTART: Shell =====

2017-11-14 Thread Shimon Malachi Cohen
hen it restart Python !?!?!?!?! (see below) >>> doFind() === RESTART: Shell === >>> Dr. Shimon Cohen shamo...@gmail.com -- components: Interpreter Core files: KAKURU.py messages: 306190 nosy: shamon51 priori

[issue32022] Python problem - == RESTART: Shell =====

2017-11-14 Thread Shimon Malachi Cohen
Shimon Malachi Cohen added the comment: lines 209 <==> 210 -- ___ Python tracker ___

Re: Python problem

2015-10-10 Thread Mark Lawrence
On 10/10/2015 07:15, Sébastien Pinsonneault wrote: Hi, I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me each time if I want to modify, repair or uninstall, but doesn't open. I have Windows 10 64 bits. Thx Check out the issue tracker as there are known problems. If

Re: Python problem

2015-10-10 Thread Laura Creighton
In a message of Sat, 10 Oct 2015 20:39:29 +0100, Mark Lawrence writes: >On 10/10/2015 07:15, Sébastien Pinsonneault wrote: >> Hi, >> >> I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me >> each time if I want to modify, repair or uninstall, but doesn't open. >> >> I have Windows

Python problem

2015-10-10 Thread Sébastien Pinsonneault
Hi, I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me each time if I want to modify, repair or uninstall, but doesn't open. I have Windows 10 64 bits. Thx -- https://mail.python.org/mailman/listinfo/python-list

Re: Python problem

2015-10-10 Thread Chris Angelico
On Sat, Oct 10, 2015 at 5:15 PM, Sébastien Pinsonneault wrote: > I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me each > time if I want to modify, repair or uninstall, but doesn't open. > > I have Windows 10 64 bits. "doesn't open"? Do you

Re: Noob in Python. Problem with fairly simple test case

2015-07-21 Thread Jason P.
El miércoles, 15 de julio de 2015, 14:12:08 (UTC+2), Chris Angelico escribió: On Wed, Jul 15, 2015 at 9:44 PM, Jason P. suscrici...@gmail.com wrote: I can't understand very well what's happening. It seems that the main thread gets blocked listening to the web server. My intent was to spawn

Re: Noob in Python. Problem with fairly simple test case

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 3:38 AM, Jason P. suscrici...@gmail.com wrote: Despite the impression that surely I gave, I'm quite familiar with programming and general bug hunting rules. The problem is that I'm inexperienced with Python and the subtle details of multiple threads ;) Heh, it

Re: Noob in Python. Problem with fairly simple test case

2015-07-19 Thread Laura Creighton
In a message of Sat, 18 Jul 2015 16:18:57 -0700, Rick Johnson writes: I'll have to admit you make a good point here. Although the argument is diminished by observing that Ruby is far more popular in Asia than Python. Python seems to be mainly a Scandinavian, European, and American toy. For the

Off-topic: Europe [was Re: Noob in Python. Problem with fairly simple test case]

2015-07-19 Thread Steven D'Aprano
On Mon, 20 Jul 2015 03:25 am, Rick Johnson wrote: On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote: And, despite Norway not being part of the EU, Scandinavia is still in Europe. This is a bit off topic: But i don't consider Scandinavia to be a part of the EU. Laura

Re: Noob in Python. Problem with fairly simple test case

2015-07-19 Thread Laura Creighton
In a message of Sun, 19 Jul 2015 10:25:35 -0700, Rick Johnson writes: On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote: And, despite Norway not being part of the EU, Scandinavia is still in Europe. This is a bit off topic: But i don't consider Scandinavia to be a part of the

Re: Noob in Python. Problem with fairly simple test case

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote: And, despite Norway not being part of the EU, Scandinavia is still in Europe. This is a bit off topic: But i don't consider Scandinavia to be a part of the EU. Not anymore than i would consider America to be a part of the EU.

Re: Noob in Python. Problem with fairly simple test case

2015-07-19 Thread MRAB
On 2015-07-19 18:25, Rick Johnson wrote: On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote: And, despite Norway not being part of the EU, Scandinavia is still in Europe. This is a bit off topic: But i don't consider Scandinavia to be a part of the EU. Not anymore than i

Re: Noob in Python. Problem with fairly simple test case

2015-07-18 Thread Rick Johnson
On Friday, July 17, 2015 at 3:39:02 PM UTC-5, Laura Creighton wrote: I think kivy is doing a very nice job of python-on-the-mobile. Have you looked? Please do not rant at me, just tell me what you think. Hello Laura, I'm not sure if you're replying to me (as there is no quoted context) but

Re: Noob in Python. Problem with fairly simple test case

2015-07-18 Thread Rick Johnson
On Friday, July 17, 2015 at 5:46:01 PM UTC-5, Terry Reedy wrote: But these relative numbers are, as near as I can tell, restricted to the english-speaking world, perhaps extended to the latin-1 based world. Anyone who wants unicode identifiers must use Python 3 (or a translated Python like

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Steven D'Aprano
On Fri, 17 Jul 2015 01:01 pm, Chris Angelico wrote: On Fri, Jul 17, 2015 at 12:44 PM, Steven D'Aprano st...@pearwood.info wrote: My take from all this is that overall, Python 3 take-up is probably around 10% of all Python users... Really? That low? Wow. Well, that's based on a guess that

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Steven D'Aprano
On Fri, 17 Jul 2015 02:15 pm, Rick Johnson wrote: On Thursday, July 16, 2015 at 9:44:56 PM UTC-5, Steven D'Aprano wrote: [...] My take from all this is that overall, Python 3 take-up is probably around 10% of all Python users, All that rambling just to agree with me? My educated guess is

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Jean-Michel Pichavant
- Original Message - From: Steven D'Aprano st...@pearwood.info 75% or 90% is not a vast majority. Vast majority implies more than 99%. You could not be more wrong. More than 99% is a stupendous majority, while within 95 to 99% is a tremendous majority. From the official Majority

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Chris Angelico
On Fri, Jul 17, 2015 at 4:47 PM, Steven D'Aprano st...@pearwood.info wrote: Jessie's default should be 2.7, at least. Wheezy shipped 2.7, too; it's only Squeeze (now out of support) that didn't ship any 2.7.x Python. Are you sure you can't at least upgrade to 2.7? I'm not sure, I'm not

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Rick Johnson
On Friday, July 17, 2015 at 1:38:52 AM UTC-5, Steven D'Aprano wrote: 75% or 90% is not a vast majority. Vast majority implies more than 99%. But regardless of the precise meaning of vast, if you want to dismiss one in four people (25%) or one in ten (10%) as inconsequential, then you've got

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Mark Lawrence
On 17/07/2015 21:38, Laura Creighton wrote: I think kivy is doing a very nice job of python-on-the-mobile. Have you looked? Please do not rant at me, just tell me what you think. Laura At least rr occasionally comes out with something useful, usually WRT tkinter. He's in the bottom

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Terry Reedy
On 7/17/2015 12:15 AM, Rick Johnson wrote: On Thursday, July 16, 2015 at 9:44:56 PM UTC-5, Steven D'Aprano wrote: [...] My take from all this is that overall, Python 3 take-up is probably around 10% of all Python users, All that rambling just to agree with me? My educated guess is a minimum

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Emile van Sebille
On 7/17/2015 3:45 PM, Terry Reedy wrote: Now my question for you or anyone else: If the vast majority of Python programmers are focused on 2.7, I consider myself in this group. why are volunteers to help fix 2.7 bugs so scarce? perhaps the bugs that are show stoppers are providing the

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Laura Creighton
I think kivy is doing a very nice job of python-on-the-mobile. Have you looked? Please do not rant at me, just tell me what you think. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Rick Johnson
On Wednesday, July 15, 2015 at 10:45:12 PM UTC-5, Chris Angelico wrote: A GUI is another form of console. And a blindingly obvious association is another form of patronizing! What's next, are you going to tell us that a Volvo is a street-legal Scandinavian version of an armored personal

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Emile van Sebille
On Thursday, July 16, 2015 at 3:11:56 PM UTC-5, Chris Angelico wrote: Where's the latest survey results? I think the numbers don't agree with you any more. Not that there's a source for that info, but a quick survey of yahoo results certainly continues to show more v2 activity. --anytime--

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Rick Johnson
On Thursday, July 16, 2015 at 3:11:56 PM UTC-5, Chris Angelico wrote: Where's the latest survey results? I think the numbers don't agree with you any more. What? You think the handful of regulars on this list in any way shape or form somehow represents the multitude of *REAL* python programmers

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Chris Angelico
On Fri, Jul 17, 2015 at 6:03 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: but a vast majority of the Python community is currently using, and will for many years continue using, Python3.0. Where's the latest survey results? I think the numbers don't agree with you any more. ChrisA --

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Steven D'Aprano
It amuses me that this discussion started because the OP stated explicitly that he uses Python 3, and Rick gave an answer for Python 2. Rather than accept his mistake, Rick's defence is that practically nobody uses Python 3. (Presumably he means apart from the guy who actually asked the question.)

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Chris Angelico
On Fri, Jul 17, 2015 at 12:44 PM, Steven D'Aprano st...@pearwood.info wrote: My take from all this is that overall, Python 3 take-up is probably around 10% of all Python users... Really? That low? Wow. I guess 90% could count as Rick's declared vast majority, although that term does imply more

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Larry Hudson via Python-list
On 07/15/2015 08:11 PM, Chris Angelico wrote: On Thu, Jul 16, 2015 at 1:01 PM, Larry Hudson via Python-list python-list@python.org wrote: On 07/15/2015 05:11 AM, Chris Angelico wrote: [snip] In addition to using print(), in some places I like using input() instead, as in:

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Rick Johnson
On Thursday, July 16, 2015 at 9:44:56 PM UTC-5, Steven D'Aprano wrote: [...] My take from all this is that overall, Python 3 take-up is probably around 10% of all Python users, All that rambling just to agree with me? My educated guess is a minimum of 75% still using Python2.x. But i'll take

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Chris Angelico
On Fri, Jul 17, 2015 at 2:15 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: On Thursday, July 16, 2015 at 9:44:56 PM UTC-5, Steven D'Aprano wrote: [...] My take from all this is that overall, Python 3 take-up is probably around 10% of all Python users, All that rambling just to agree

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Chris Angelico
On Fri, Jul 17, 2015 at 7:27 AM, Emile van Sebille em...@fenx.com wrote: On Thursday, July 16, 2015 at 3:11:56 PM UTC-5, Chris Angelico wrote: Where's the latest survey results? I think the numbers don't agree with you any more. Not that there's a source for that info, but a quick survey of

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Rick Johnson
On Thursday, July 16, 2015 at 6:24:21 PM UTC-5, Chris Angelico wrote: Any attempt to translate downloads into *REAL* usage statistics is doomed to be unreliable. Chris, you're smarter than this! (1) for instance: Python2.x coders have been around long enough that they don't need to download as

Re: Noob in Python. Problem with fairly simple test case

2015-07-15 Thread Larry Hudson via Python-list
On 07/15/2015 05:11 AM, Chris Angelico wrote: On Wed, Jul 15, 2015 at 9:44 PM, Jason P. suscrici...@gmail.com wrote: I can't understand very well what's happening. It seems that the main thread gets blocked listening to the web server. My intent was to spawn another process for the server

Re: Noob in Python. Problem with fairly simple test case

2015-07-15 Thread Chris Angelico
On Thu, Jul 16, 2015 at 1:01 PM, Larry Hudson via Python-list python-list@python.org wrote: On 07/15/2015 05:11 AM, Chris Angelico wrote: On Wed, Jul 15, 2015 at 9:44 PM, Jason P. suscrici...@gmail.com wrote: I can't understand very well what's happening. It seems that the main thread gets

Re: Noob in Python. Problem with fairly simple test case

2015-07-15 Thread Chris Angelico
On Thu, Jul 16, 2015 at 1:33 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: On Wednesday, July 15, 2015 at 10:11:43 PM UTC-5, Chris Angelico wrote: That's a neat trick, as long as you actually do have a console. Well if you don't have a console, another option is to use the dialogs of

Re: Noob in Python. Problem with fairly simple test case

2015-07-15 Thread Rick Johnson
On Wednesday, July 15, 2015 at 10:11:43 PM UTC-5, Chris Angelico wrote: That's a neat trick, as long as you actually do have a console. Well if you don't have a console, another option is to use the dialogs of the batteries included GUI named Tkinter. from tkMessageBox import showinfo #

Re: Noob in Python. Problem with fairly simple test case

2015-07-15 Thread Chris Angelico
On Wed, Jul 15, 2015 at 9:44 PM, Jason P. suscrici...@gmail.com wrote: I can't understand very well what's happening. It seems that the main thread gets blocked listening to the web server. My intent was to spawn another process for the server independent of the test. Obviously I'm doing

Noob in Python. Problem with fairly simple test case

2015-07-15 Thread Jason P.
Hi all! I'm working in a little Python exercise with testing since the beginning. So far I'm with my first end to end test (not even finished yet) trying to: 1) Launch a development web server linked to a demo app that just returns 'Hello World!' 2) Make a GET request successfully I can't

Re: Matlab to Python problem

2015-05-08 Thread Peter Otten
Lesego Moloko wrote: I am a Python novice and have recently converted the attached Matlab file to Python (attached). The problem is that I cannot reproduce the Matlab plots (attached) with the converted Python program. I am also trying to go line by line through my converted Python file to

Python problem

2013-02-19 Thread ach360
I'm so lost. Given the formula pi=4-4/3+4/5-4/7+4/9-4/11+.. How do I print a table showing approximate value of pi by computing one term4-4/3 then two terms4-4/3+4/5, and so on.Then how many terms of the series before I get 3.14, 3.141, 3.1415, 3.14159. Please helps computer teacher

Re: Python problem

2013-02-19 Thread Steven D'Aprano
On Tue, 19 Feb 2013 19:01:53 -0800, ach360 wrote: I'm so lost. Given the formula pi=4-4/3+4/5-4/7+4/9-4/11+.. How do I print a table showing approximate value of pi by computing one term4-4/3 then two terms4-4/3+4/5, and so on.Then how many terms of the series before I get 3.14, 3.141,

Re: Python problem

2013-02-19 Thread ach360
Loop_variable= 1 Pi=1.0 term=0 T=1.0 While (loop_variable 0): Loop_variable=Loop_variable+1 T=T+2.0 If (loop_variable%2 ==0): Term=0; Else: term=1; If term ==0: Pi=Pi- float(1/T); Else: Pi=Pi+ float(1/T); --

Python problem

2011-03-28 Thread John Parker
Hi All, I'm trying to figure out a problem in which I have a file named scores.txt that contains the following information. Jane Doe,87,92,97,33 John Doe,78,91,84,25 Bill Gates,91,88,89,56 Bruce Perens,88,92,84,99 I'm wanting to read the file and create two lists: names and scores. I also

Re: Python problem

2011-03-28 Thread Ian Kelly
On Mon, Mar 28, 2011 at 3:38 PM, John Parker park...@gmail.com wrote: error: Traceback (most recent call last):  File Score_8.py, line 38, in module    tokens = lines.split(,) AttributeError: 'list' object has no attribute 'split' So, what am I doing wrong? 'lines' is a list of strings.

Re: Python problem

2011-03-28 Thread Ethan Furman
John Parker wrote: I have written the following code so far but get an error. infile = open(scores.txt, r) lines = infile.readlines() infile.close() tokens = lines.split(,) [snip] error: Traceback (most recent call last): File Score_8.py, line 38, in module tokens = lines.split(,)

Re: Python problem

2011-03-28 Thread Peter Pearson
On Mon, 28 Mar 2011 11:38:29 -1000, John Parker park...@gmail.com wrote: [snip] I have written the following code so far but get an error. infile = open(scores.txt, r) lines = infile.readlines() infile.close() tokens = lines.split(,) [snip] error: Traceback (most recent call last):

Re: Python problem

2011-03-28 Thread Rhodri James
On Mon, 28 Mar 2011 22:38:29 +0100, John Parker park...@gmail.com wrote: infile = open(scores.txt, r) lines = infile.readlines() infile.close() tokens = lines.split(,) names = [] scores = [] [snippety snip] error: Traceback (most recent call last): File Score_8.py, line 38, in module

Re: Python problem

2011-03-28 Thread John Parker
Ethan, Thanks for pointing that out. I commented that code out and then ran it. It created the list of names. Now, I just need to figure out how to get the scores into the list called scores. It would appear that this is done with a nested for loop. Thanks, John On 3/28/11 12:02 PM,

Re: Python problem

2011-03-28 Thread John Parker
Dear all, This is the solution that I came up with to deal with handling the file of scores. Thank you all for your feedback! John # define calc average function def calcAve(mylist): total = 0 count = 0 for i in range (0, len(mylist)): # count scores for even number items in

Re: Hands on Python - Problem with Local Cgi Server

2009-04-02 Thread Gabriel Genellina
En Tue, 31 Mar 2009 09:56:48 -0300, Gary Wood python...@sky.com escribió: I have the DOS box with the message Localhost CGI server started But when i try this I get the Windows Error Failed to Connect The connection was refused when attempting to contact localhost:8080. Try a different

Hands on Python - Problem with Local Cgi Server

2009-03-31 Thread Gary Wood
I have the DOS box with the message Localhost CGI server started But when i try this Back in the www directory, 1.. Open the web link http://localhost:8080/adder.html (preferably in a new window, separate from this this tutorial). 2.. You should see an adder form in your browser

Re: CGI Python problem

2008-11-07 Thread Tim O'Toole
Well, if Python's not installed, the next step is _getting_ it installed -- whether having your admin install it globally (I mean, who *doesn't* install python?! ;-) or you install it locally in your home directory as detailed at [1] where you download the source and compile from scratch

CGI Python problem

2008-11-06 Thread [EMAIL PROTECTED]
Hi all, I'm trying to get python to work with cgi for a small intranet site, however even a simply hello world test isn't working. Here is the test file: #!/usr/bin/python # -*- coding: UTF-8 -*- # enable debugging import cgitb; cgitb.enable() print Content-Type: text/plain;charset=utf-8 print

Re: CGI Python problem

2008-11-06 Thread Tim Chase
I've placed this file in both public_html and as a test in public_html/ cgi-bin directories in my local user account (I dont have root access - its a corparate network). The file definitely has read and execute permission (744) as have the assoicated directories. My guess would be the

Re: CGI Python problem

2008-11-06 Thread Tim O'Toole
Thanks for replying Tim, Here is the permissions, which I think are definitely right now: drwxrwxrwx 8 4.0K Nov 6 13:34 public_html/ drwxrwxrwx 2 4.0K Nov 6 13:35 cgi-bin/ [inside public_html] -rw-r-xr-x 1 117 Nov 6 11:39 test_pl.cgi* [inside cgi-bin]

Re: CGI Python problem

2008-11-06 Thread Tim Chase
Here is the permissions, which I think are definitely right now: drwxrwxrwx 8 4.0K Nov 6 13:34 public_html/ drwxrwxrwx 2 4.0K Nov 6 13:35 cgi-bin/ [inside public_html] -rw-r-xr-x 1 117 Nov 6 11:39 test_pl.cgi* [inside cgi-bin] -rw-r-xr-x 1 168

Re: CGI Python problem

2008-11-06 Thread Tim O'Toole
With regard to phpinfo(), its shows the mod_cgi is loaded, but neither mod_perl or mod_python is loaded (I read on the python.org site that mod_python can interfere with running python through mod_python). As for writing some perl, not too sure how to do that, but from the information in phpinfo

Re: CGI Python problem

2008-11-06 Thread Tim Chase
As for writing some perl, not too sure how to do that, but from the information in phpinfo I logged onto the webserver machine and did a whereis python - it came back blank! Of course doing a whereis perl gave a non-blank answer. So this seems to be the route cause of my trouble. Indeed! I

Re: CGI Python problem

2008-11-06 Thread Tim O'Toole
Alas that cgi script confirmed python is not installed on the server machine (which I had assumed it was). Looks like game over with this avenue of trouble shooting? On Fri, Nov 7, 2008 at 1:03 AM, Tim Chase [EMAIL PROTECTED] wrote: As for writing some perl, not too sure how to do that, but

Re: CGI Python problem

2008-11-06 Thread Tim Chase
Tim O'Toole wrote: Alas that cgi script confirmed python is not installed on the server machine (which I had assumed it was). Did you also try it with the find variant in addition to just the which version? This would find Python if it wasn't on the $PATH. Looks like game over with this

SWIG-PYTHON - Problem in header file inclusion

2007-10-20 Thread abarun22
Hi I am facing a problem while including a C header file in the SWIG interface file. However the problem does not occur when i directly copy the contents of header file in the same place. My interface file read as follows. /* interface file dep.i */ %module dep %{ #include dep.h %} %inline %{

SWIG-PYTHON - Problem in header file inclusion

2007-10-19 Thread abarun22
Hi I am facing a problem while including a C header file in the SWIG interface file. However the problem does not occur when i directly copy the contents of header file in the same place. My interface file read as follows. /* interface file dep.i */ %module dep %{ #include dep.h %} %inline %{

Re: Python Problem

2007-09-12 Thread A.T.Hofkamp
On 2007-09-11, Wiseman [EMAIL PROTECTED] wrote: Hi, OK - it works in WindowsXP. I installed enchant on my SuSE 10.0 (using YAST). The enchant Suse package looks like a general Linux package, not a Python specific. You'd seem to be right judging by this web-page:

Re: Python Problem

2007-09-12 Thread Marc 'BlackJack' Rintsch
On Wed, 12 Sep 2007 09:09:02 +0200, A.T.Hofkamp wrote: On 2007-09-11, Wiseman [EMAIL PROTECTED] wrote: Hi, OK - it works in WindowsXP. I installed enchant on my SuSE 10.0 (using YAST). The enchant Suse package looks like a general Linux package, not a Python specific. You'd seem to

Re: Python Problem

2007-09-12 Thread Wiseman
Marc, Thank you. I followed the instructions in given at pyenchant.sourceforge.net and got the application to work. ((;-)) Meir PS: My challenge now is to port the application to Redhat. I already know that Redhat is missing the pyenchant package - I hope the same installation process will

Re: Python Problem

2007-09-11 Thread Wiseman
Hi, OK - it works in WindowsXP. I installed enchant on my SuSE 10.0 (using YAST). The enchant Suse package looks like a general Linux package, not a Python specific. Running the program in Python I am getting the same error message from the line: import enchant. ImportError: No module named

Re: Python Problem

2007-09-10 Thread Wiseman
Carsten. I want to thank you for your help. I could not check this until this morning. Now that I checked your answer - THANK YOU. I do have 2 installations of Python on my machine. Once I called Python with a full path - my program orked as expected. Meir --

Python Problem

2007-09-07 Thread Wiseman
Hi, The line: import enchant works perfectly OK when I call a Python progrma (sp.py) from IDLE (WInXP). When I try to run it ftom the command line (python sp.py) the response is: Traceback (most recent call last): File sp.py, line 3, in module import enchant ImportError: No module

Re: Python Problem

2007-09-07 Thread Carsten Haese
On Fri, 2007-09-07 at 21:58 -0400, Wiseman wrote: Hi, The line: import enchant works perfectly OK when I call a Python progrma (sp.py) from IDLE (WInXP). When I try to run it ftom the command line (python sp.py) the response is: Traceback (most recent call last): File sp.py,

python problem: creating subprocess (it kills the parent process)

2007-03-29 Thread John Davis
Hi all, I am using Python 2.4. I am trying to run a C++ program on Red hat linux enterprise edition from Python by using various methods like Os.system Os.popen Subprocess.popen Os.execvp Os.spawnl In all of these methods the program kills python program also. So, let's say i am in

Client side COM and Python Problem

2006-12-14 Thread Mark
Hey Guys, Im new to working with com but i only want to do one thing. I have activestate python and am trying to get python to run a simple function in a com enabled 3d program called 3dsmax. If i try and execute a function over the com interface it works fine as long as i dont try and run

Re: Reinstalling Python Problem (Newbie)

2006-08-02 Thread Avell Diroll
beno wrote: I intend to do that. However, I think this is the RIGHT list to ask questions pertinent to python... I didn't intend to be abrupt, ... I was just in an hurry, sorry for that. Anyway I still see this problem more as a program not compiling correctly on Freebsd than python not

Re: Reinstalling Python Problem (Newbie)

2006-08-02 Thread Avell Diroll
beno wrote: Avell Diroll wrote: beno wrote: *** tidying a little *** What do I do about the problems with mimetools and urllib2? This is the last report of the 'make test' command and there should be a few lines before that stating each test one by one and printing problems has

Reinstalling Python Problem (Newbie)

2006-08-01 Thread beno
It's been years since I've done this. I had a programmer working for me who disappeared one day, and now I'm taking over his responsibilities. I need to re-configure Apache for mod_python which means I have to rebuild python. I'm working with the latest distro. I'm heavily dependent on zope,

Re: Reinstalling Python Problem (Newbie)

2006-08-01 Thread Avell Diroll
beno wrote: It's been years since I've done this. I had a programmer working for me who disappeared one day, and now I'm taking over his responsibilities. I need to re-configure Apache for mod_python which means I have to rebuild python. I'm working with the latest distro. I'm heavily

Re: Reinstalling Python Problem (Newbie)

2006-08-01 Thread John Machin
Avell Diroll wrote: beno wrote: I have to rebuild python. [snip] Platform is FreeBSD 5.? I have the following questions: What is meant by pointing to this folder thus: ./configure --prefix=/usr/python When I run make test I get these errors: *** errors *** I've googled

Re: simple dbus python problem ... please help

2006-07-29 Thread alisonken1
bob wrote: snip bus = dbus.Bus (dbus.Bus.TYPE_SYSTEM) hal_service = bus.get_service ('org.freedesktop.Hal') hal_manager = hal_service.get_object ('/org/freedesktop/Hal/Manager', 'org.freedesktop.Hal.Manager') snip It appears that bus.get_service() has

simple dbus python problem ... please help

2006-07-28 Thread bob
Hi, I have this sample python script from the hal sources, but it doesn't work for me. This is despite other example python scripts I have to help me are working fine. The problem is that this script is the closet to what it is I actually want to learn to do. The error is: Traceback (most

Embedded python problem

2006-07-03 Thread Robin Becker
We have a client using a fully embedded python in a large DTP app. It used to be Mac OS 9/X only, but the MAC 9 support has gone away and we now have support for the PC with the embedding being used in C# via external DLL aliasing/marshalling etc etc. The embedding DLL has effectively a

Re: A python problem about int to long promotion just see the idle session

2006-05-23 Thread gen_tricomi
wow i think i was just been too paranoid. i thought it would affect some precision arithmetic in science. thanks for the reply -- http://mail.python.org/mailman/listinfo/python-list

A python problem about int to long promotion just see the idle session

2006-05-03 Thread gen_tricomi
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. Personal firewall software may warn about the connection IDLE makes to its

Re: A python problem about int to long promotion just see the idle session

2006-05-03 Thread Fredrik Lundh
gen_tricomi [EMAIL PROTECTED] wrote: IDLE 1.1.2 import sys save_maxint = sys.maxint save_maxint 2147483647 save_maxint += 1 save_maxint 2147483648L save_maxint - 1 2147483647L save_maxint + 1 2147483649L save_maxint - 1 2147483647L save_maxint + 1 2147483649L

Re: A python problem about int to long promotion just see the idle session

2006-05-03 Thread Robert Kern
gen_tricomi wrote: from the above you can see what int to long promotion is causing i dont need to say much please see for yourself. is this a bug or a feature. This is expected behavior. Why is it problematic for you? -- Robert Kern I have come to believe that the whole world is an

Re: A python problem about int to long promotion just see the idle session

2006-05-03 Thread [EMAIL PROTECTED]
gen_tricomi wrote: Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. Personal firewall software may warn about the connection IDLE

Extend/embedd python problem?

2006-02-16 Thread Mile Blenton
Hello all, I am considering python as a 'scripting' language to be used in my application where users must be able to write their own code to access application data, use the application mechanisms to gather various data and basicly must be able to control the application itself. Currently,

Re: Help w/ easy python problem

2005-09-22 Thread r2_r2
Actually, it is not a sin curve i need to plot, it is dots running down the page in the shape of a sin curve like this . . . etc... -- http://mail.python.org/mailman/listinfo/python-list

Re: Help w/ easy python problem

2005-09-22 Thread r2_r2
Actually, it is not a sin curve i need to plot, it is dots running down the page in the shape of a sin curve like this . . . etc... -- http://mail.python.org/mailman/listinfo/python-list

Re: Help w/ easy python problem

2005-09-22 Thread Tomasz Lisowski
[EMAIL PROTECTED] napisał(a): Actually, it is not a sin curve i need to plot, it is dots running down the page in the shape of a sin curve like this . . . etc... Seems, like a homework to me :-) Anyway, use the following hints: math.sin() is your sine function, ranging, from -1.0

Re: Help w/ easy python problem

2005-09-22 Thread Mikael Olofsson
[EMAIL PROTECTED] wrote: I am very much a beginner to python. I have been working on writing a very simple program and cannot get it and was hoping someone could help me out. Basically i need to write a code to print a sin curve running down the page from top to bottom. The trick is I have

Re: Help w/ easy python problem

2005-09-22 Thread bruno modulix
[EMAIL PROTECTED] wrote: I am very much a beginner to python. I have been working on writing a very simple program and cannot get it and was hoping someone could help me out. Basically i need to write a code to print a sin curve running down the page from top to bottom. The trick is I have

Help w/ easy python problem

2005-09-21 Thread r2_r2
I am very much a beginner to python. I have been working on writing a very simple program and cannot get it and was hoping someone could help me out. Basically i need to write a code to print a sin curve running down the page from top to bottom. The trick is I have to do this using only 7-8

  1   2   >