Re: Python scripts in .exe form

2022-08-22 Thread Mona Lee
I didn't create exe files they kind of just appeared I guess? Perhaps somewhere in the process of redownloading my python/visual studio? My situation is similar to this person's description that I found online

Re: Python scripts in .exe form

2022-08-20 Thread Barry
> On 20 Aug 2022, at 14:28, Jim Schwartz wrote: > > What method did you use to create the exe file from your python scripts? If > it was pyinstaller, then it puts the compiled versions of these python > scripts in a windows temp folder when you run them. You’ll be able to get the >

Re: Python scripts in .exe form

2022-08-20 Thread Jim Schwartz
What method did you use to create the exe file from your python scripts? If it was pyinstaller, then it puts the compiled versions of these python scripts in a windows temp folder when you run them. You’ll be able to get the scripts from there. Sent from my iPhone > On Aug 19, 2022, at 9:51

RE: Python Scripts

2020-07-21 Thread David Raymond
Remember to reply-all, so that python-list is included and can still see responses and offer help. If Python won't open them, then how do you know the scripts work? They work on someone else's computer you mean? Please provide the basics then so we can try to help out. What OS are you using?

RE: Python Scripts

2020-07-21 Thread David Raymond
> im having problems when running python scripts > > When running the scripts it always closes immediately If you're running it in Windows, and running it by double clicking on a .py file, then it will pop up a console window while it's running, and then immediately close that window when the

Re: Python scripts

2019-08-05 Thread Rhodri James
On 04/08/2019 10:29, Arun Kumar wrote: In python application in scripts folder files are missing then how to get those files. That depends on exactly what you mean by "files are missing". If (most likely) the application is trying to import a third party module that you don't have

Re: python scripts for web

2012-10-23 Thread chip9munk
On Friday, October 19, 2012 12:32:48 PM UTC+2, Gilles wrote: In that case, are you sure a web script is a good idea? If you're thinking web to make it easy for people to upload data, click on a button, and get the results back, you might want to write the UI in Python but write the number

Re: python scripts for web

2012-10-19 Thread chip9munk
On Thursday, October 18, 2012 11:10:45 PM UTC+2, Zero Piraeus wrote: WSGI would enable you to write a persistent application that sits around waiting for requests and returns responses for them as and when, as opposed to a simple CGI script that gets started each time a request comes in, and

Re: python scripts for web

2012-10-19 Thread Gilles
On Thu, 18 Oct 2012 23:05:48 -0700 (PDT), chip9m...@gmail.com wrote: these scripts will do a lot of calculation on a big dataset, and it is possible that there will be many requests in a short period of time. In that case, are you sure a web script is a good idea? If you're thinking web to make

Re: python scripts for web

2012-10-18 Thread Zero Piraeus
: On 18 October 2012 03:18, chip9m...@gmail.com wrote: Here is what I need to do: on some webpage (done in php, or any other different technology), user inputs some data, that data and the request then goes to the server where python scripts calculate something and return the result to the

Re: python scripts for web

2012-10-18 Thread chip9munk
To explain, I am basically doing different algorithms and would like to make them work and be accessible as I mentioned in the example... and to add them to the functionality of a specific page... so I have experience in programming, just no experience in web development etc.. On Thursday,

Re: python scripts for web

2012-10-18 Thread Zero Piraeus
: On 18 October 2012 04:10, chip9m...@gmail.com wrote: I will give you an example. So let us say I create two simple python scripts, one does the sum of two numbers the other one does the multiplication. SO now I want to put these scripts on the server. Now let us say there is a web page

Re: python scripts for web

2012-10-18 Thread chip9munk
On Thursday, October 18, 2012 10:42:56 AM UTC+2, Zero Piraeus wrote: That is exactly what a webserver does. Is there some reason you don't want to use e.g. Apache to handle the requests? no reason at all. so i guess the solution is much easier then I have anticipated. So i guess in that case i

Re: python scripts for web

2012-10-18 Thread Zero Piraeus
: On 18 October 2012 05:22, chip9m...@gmail.com wrote: So i guess in that case i do not need cgi or anything? Assuming your scripts accept the request as sent and return an appropriate response, they are CGI scripts (unless there's some wrinkle in the precise definition of CGI that escapes me

Re: python scripts for web

2012-10-18 Thread Chris Angelico
On Thu, Oct 18, 2012 at 8:22 PM, chip9m...@gmail.com wrote: On Thursday, October 18, 2012 10:42:56 AM UTC+2, Zero Piraeus wrote: That is exactly what a webserver does. Is there some reason you don't want to use e.g. Apache to handle the requests? no reason at all. so i guess the solution is

Re: python scripts for web

2012-10-18 Thread rurpy
On 10/18/2012 04:02 AM, Zero Piraeus wrote: On 18 October 2012 05:22, chip9m...@gmail.com wrote: [...] By the way: are you using Google Groups? It's just that I'm led to understand that it's recently started to misbehave [more than it used to], and your replies are addressed to both

Re: python scripts for web

2012-10-18 Thread chip9munk
thank you for the answer! On Thursday, October 18, 2012 12:03:02 PM UTC+2, Chris Angelico wrote: CGI is a protocol between Apache and your script. What you want to do is set up Apache to call your CGI scripts. yes, but as I have just answered to Zero, is using mod_wsgi a better strategy? --

Re: python scripts for web

2012-10-18 Thread chip9munk
On Thursday, October 18, 2012 12:02:40 PM UTC+2, Zero Piraeus wrote: Assuming your scripts accept the request as sent and return an appropriate response, they are CGI scripts (unless there's some wrinkle in the precise definition of CGI that escapes me right now). yes, they are, but, I came

Re: python scripts for web

2012-10-18 Thread chip9munk
thank you guys for pointing the double posting issue out, I am having some issues with the news server i am using, so I am doing this via google.groups at the time! :) i think i managed to fix it -- http://mail.python.org/mailman/listinfo/python-list

Re: python scripts for web

2012-10-18 Thread Zero Piraeus
: On 18 October 2012 12:03, chip9m...@gmail.com wrote: yes, but as I have just answered to Zero, is using mod_wsgi a better strategy? WSGI would enable you to write a persistent application that sits around waiting for requests and returns responses for them as and when, as opposed to a simple

Re: python scripts solution for euler projects

2012-02-29 Thread alister
On Tue, 28 Feb 2012 19:59:40 -0800, scripts examples wrote: Got a web site setup for solving euler problems in python, perl, ruby and javascript. Feel free to give me any feedback, thanks. Failing to give a link to the site is a pretty fundamental failure -- Please take note: --

Re: python scripts solution for euler projects

2012-02-29 Thread scripts examples
On Feb 29, 4:21 am, alister alister.w...@ntlworld.com wrote: On Tue, 28 Feb 2012 19:59:40 -0800, scripts examples wrote: Got a web site setup for solving euler problems in python, perl, ruby and javascript.    Feel free to give me any feedback, thanks. Failing to give a link to the site

Re: python scripts solution for euler projects

2012-02-28 Thread Rodrick Brown
On Tue, Feb 28, 2012 at 10:59 PM, scripts examples example.scri...@gmail.com wrote: Got a web site setup for solving euler problems in python, perl, ruby and javascript. Feel free to give me any feedback, thanks. -- http://mail.python.org/mailman/listinfo/python-list --

Re: Python scripts from DOS

2010-07-09 Thread Thomas Jollans
On 07/09/2010 11:37 AM, Mark Carter wrote: On my machine, I can go to a DOS shell, and type myscript.py This will cause the script to be run as a python script. So that bit works. On another machine, on which python was set up without admin privileges, if I type Which operating systems

Re: Python scripts from DOS

2010-07-09 Thread Rebelo
On 9 srp, 11:37, Mark Carter alt.mcar...@gmail.com wrote: On my machine, I can go to a DOS shell, and type    myscript.py This will cause the script to be run as a python script. So that bit works. On another machine, on which python was set up without admin privileges, if I type    

Re: Python scripts from DOS

2010-07-09 Thread Dave Angel
Mark Carter wrote: On my machine, I can go to a DOS shell, and type myscript.py This will cause the script to be run as a python script. So that bit works. On another machine, on which python was set up without admin privileges, if I type myscript.py it will open the Open With dialog box.

Re: python scripts to standalone executable

2008-04-01 Thread BlueBird
On Mar 31, 7:24 pm, Amit Gupta [EMAIL PROTECTED] wrote: Hi I am looking for a some tool that can convert python scripts to executable on Linux. I found freeeze.py as the only option so far. Couple of queries on freeze: 1. Have anyone used the freeze utility and any experiences to share

Re: python scripts to standalone executable

2008-03-31 Thread John Henry
On Mar 31, 10:24 am, Amit Gupta [EMAIL PROTECTED] wrote: Hi I am looking for a some tool that can convert python scripts to executable on Linux. I found freeeze.py as the only option so far. Couple of queries on freeze: 1. Have anyone used the freeze utility and any experiences to share

Re: python scripts to standalone executable

2008-03-31 Thread Amit Gupta
On Mar 31, 10:37 am, John Henry [EMAIL PROTECTED] wrote: On Mar 31, 10:24 am, Amit Gupta [EMAIL PROTECTED] wrote: Hi I am looking for a some tool that can convert python scripts to executable on Linux. I found freeeze.py as the only option so far. Couple of queries on freeze: 1.

Re: python scripts to standalone executable

2008-03-31 Thread John Henry
On Mar 31, 10:38 am, Amit Gupta [EMAIL PROTECTED] wrote: On Mar 31, 10:37 am, John Henry [EMAIL PROTECTED] wrote: On Mar 31, 10:24 am, Amit Gupta [EMAIL PROTECTED] wrote: Hi I am looking for a some tool that can convert python scripts to executable on Linux. I found freeeze.py

Re: python scripts to standalone executable

2008-03-31 Thread Amit Gupta
On Mar 31, 11:45 am, John Henry [EMAIL PROTECTED] wrote: Not sure. I use it on windows. I haven't looked at pyinstall.. Is it for linux? It appears so - according tohttp://www.pyinstaller.org/ Thanks! It does show support for Linux. The documentation says it works for python until version

Re: python scripts to standalone executable

2008-03-31 Thread Mike Driscoll
On Mar 31, 12:24 pm, Amit Gupta [EMAIL PROTECTED] wrote: Hi I am looking for a some tool that can convert python scripts to executable on Linux. I found freeeze.py as the only option so far. Couple of queries on freeze: 1. Have anyone used the freeze utility and any experiences to share

Re: python scripts to standalone executable

2008-03-31 Thread Amit Gupta
On Mar 31, 1:52 pm, Mike Driscoll [EMAIL PROTECTED] wrote: What about creating a setup.py and using the distutils command to build rpms or tarballs? http://docs.python.org/dist/built-dist.html Mike My quick look: The link you sent is under the header Distributing Python Modules. In my

Re: python scripts to standalone executable

2008-03-31 Thread Mike Driscoll
On Mar 31, 4:53 pm, Amit Gupta [EMAIL PROTECTED] wrote: On Mar 31, 1:52 pm, Mike Driscoll [EMAIL PROTECTED] wrote: What about creating a setup.py and using the distutils command to build rpms or tarballs? http://docs.python.org/dist/built-dist.html Mike My quick look: The link you

Re: python scripts with IIS

2008-01-19 Thread Rolf van de Krol
Adding the following lines before your print statement should do the trick. IIS complains about the headers, so adding headers should help. print Content-Type: text/html # HTML is following print # blank line, end of headers william paul wrote: Hello:

Re: python scripts with IIS

2008-01-19 Thread william paul
Thank you, William - Original Message From: Rolf van de Krol [EMAIL PROTECTED] To: python-list@python.org Sent: Saturday, January 19, 2008 5:33:59 PM Subject: Re: python scripts with IIS Adding the following lines before your print statement should do the trick. IIS complains about

Re: Python Scripts to logon to websites

2006-01-12 Thread Steve Holden
Peter Hansen wrote: BartlebyScrivener wrote: but googling for basic authentication and maybe realm and/or host will find you other sites with less technically detailed material. This looks promising, but it'll take me a week to understand it :)

Re: Python Scripts to logon to websites

2006-01-12 Thread Paul Rubin
Steve Holden [EMAIL PROTECTED] writes: Underlining your point, the difference between the two is that digest offers *strong* authentication (i.e. is not subject to replay attacks) As I mentioned in another post, that's really not enough, since digest still exposes the password hash to offline

Re: Python Scripts to logon to websites

2006-01-11 Thread Peter Hansen
BartlebyScrivener wrote: New to Python and Programming. Trying to make scripts that will open sites and automatically log me on. The following example is from the urllib2 module. What are realm and host in this example. http://www.ietf.org/rfc/rfc2617.txt probably provides more background

Re: Python Scripts to logon to websites

2006-01-11 Thread Mike Meyer
BartlebyScrivener [EMAIL PROTECTED] writes: New to Python and Programming. Trying to make scripts that will open sites and automatically log me on. A common enough things to want to do. The following example is from the urllib2 module. What are realm and host in this example. Host is a

Re: Python Scripts to logon to websites

2006-01-11 Thread Tomi Kyöstilä
BartlebyScrivener wrote: New to Python and Programming. Trying to make scripts that will open sites and automatically log me on. [snip] Does anyone have a simple example of a script that opens, say, gmail or some other commonly accessed site that requires a username and password so that I can

Re: Python Scripts to logon to websites

2006-01-11 Thread BartlebyScrivener
but googling for basic authentication and maybe realm and/or host will find you other sites with less technically detailed material. This looks promising, but it'll take me a week to understand it :) http://www.voidspace.org.uk/python/articles/authentication.shtm Thanks for your help with

Re: Python Scripts to logon to websites

2006-01-11 Thread Peter Hansen
BartlebyScrivener wrote: but googling for basic authentication and maybe realm and/or host will find you other sites with less technically detailed material. This looks promising, but it'll take me a week to understand it :) http://www.voidspace.org.uk/python/articles/authentication.shtm

Re: Python Scripts to logon to websites

2006-01-11 Thread BartlebyScrivener
Thanks, Peter. Peter Hansen wrote: BartlebyScrivener wrote: but googling for basic authentication and maybe realm and/or host will find you other sites with less technically detailed material. This looks promising, but it'll take me a week to understand it :)

Re: Python Scripts to logon to websites

2006-01-11 Thread Mike Meyer
Peter Hansen [EMAIL PROTECTED] writes: By the way, note that neither basic auth nor digest auth provide any real security, and in fact with basic auth the userid and password are sent *in cleartext*. For any serious production site these techniques should probably not be used without

Re: Python Scripts to logon to websites

2006-01-11 Thread Peter Hansen
Mike Meyer wrote: Peter Hansen [EMAIL PROTECTED] writes: By the way, note that neither basic auth nor digest auth provide any real security, and in fact with basic auth the userid and password are sent *in cleartext*. For any serious production site these techniques should probably not be used

Re: Python Scripts to logon to websites

2006-01-11 Thread Paul Rubin
Peter Hansen [EMAIL PROTECTED] writes: My information about digest was either obsolete or simply wrong, as I didn't realize it had all the nonce and anti-replay support it appears to have. (I may have been remembering articles about how much of that wasn't supported widely at some time in the

Re: Python Scripts to logon to websites

2006-01-11 Thread Mike Meyer
Peter Hansen [EMAIL PROTECTED] writes: Mike Meyer wrote: Peter Hansen [EMAIL PROTECTED] writes: By the way, note that neither basic auth nor digest auth provide any real security, and in fact with basic auth the userid and password are sent *in cleartext*. For any serious production site these

Re: Python Scripts to logon to websites

2006-01-11 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: Only if the userid and password are part of the content. If you're doing the usual form-based authentication, then they are. If you're doing an HTTP-based authentication, then they aren't - the authentication information is in the headers, and can be

Re: Python scripts wont run - HELP

2005-07-18 Thread John Abel
windozbloz wrote: Bye Bye Billy Bob... Hello All, I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or four line scripts from the command line but have not been

Re: Python scripts wont run - HELP

2005-07-18 Thread Damjan
I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or four line scripts from the command line but have not been able to execute a script from a file. I have

Re: Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Damjan wrote: I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or four line scripts from the command line but have not been able to execute a script from a

Re: Python scripts wont run - HELP

2005-07-18 Thread rbt
On Mon, 2005-07-18 at 17:22 +0100, John Abel wrote: windozbloz wrote: Bye Bye Billy Bob... Hello All, I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or

Re: Python scripts wont run - HELP

2005-07-18 Thread Nick Vargish
windozbloz [EMAIL PROTECTED] writes: It now works from the command line like you said. Shouldn't I also be able to 'click' an icon that has been set to executable and launch the whole process that way? You'll need to put an interpreter line at the beginning of your script, as other posters

Re: Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Nick Vargish wrote: windozbloz [EMAIL PROTECTED] writes: It now works from the command line like you said. Shouldn't I also be able to 'click' an icon that has been set to executable and launch the whole process that way? You'll need to put an interpreter line at the beginning of your