Re: Joining Big Files

2007-08-26 Thread mcl
On 26 Aug, 15:45, vasudevram <[EMAIL PROTECTED]> wrote: > On Aug 26, 6:48 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > > > > > On Aug 25, 8:15 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > > > > On Aug 25, 4:57 am,mosscliffe<[EMAIL PROTECTED]> wrote: > > > > > I have 4 text files each approx 50mb.

Unzip: Memory Error

2007-08-29 Thread mcl
I am trying to unzip an 18mb zip containing just a single 200mb file and I get a Memory Error. When I run the code on a smaller file 1mb zip, 11mb file, it works fine. I am running on a hosted Apache web server I am using some code I found on the web somewhere. def unzip_file_into_dir(file, di

Re: Unzip: Memory Error

2007-08-30 Thread mcl
On 29 Aug, 21:18, David Bolen <[EMAIL PROTECTED]> wrote: > mcl <[EMAIL PROTECTED]> writes: > > I am trying to unzip an 18mb zip containing just a single 200mb file > > and I get a Memory Error. When I run the code on a smaller file 1mb > > zip, 11mb fil

Re: MySQLdb: ValueError Something Stupid

2007-09-07 Thread mcl
On 7 Sep, 14:11, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Fri, 2007-09-07 at 05:52 -0700, mcl wrote: > > > ValueError: invalid literal for int(): 0- > > > args = ('invalid literal for int(): 0-',) > > > > ===

Re: MySQLdb: ValueError Something Stupid

2007-09-07 Thread mcl
On 7 Sep, 12:08, mcl <[EMAIL PROTECTED]> wrote: > I have just started with python and MySQL. > > I have a simple test for each of my tables. > > The first two work as expected, but the third 'qlooks', gives a > ValueError. > > If I copy and paste the SQL

MySQL: Global Connection

2007-09-07 Thread mcl
It is tough when the grey matter is getting past it. I am starting to use MySQL and I would like to make my connection to my database a variable in my Global Variable Class, but I just can not see how to do it. Class GlobalVars : -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb: ValueError Something Stupid

2007-09-07 Thread mcl
I have just started with python and MySQL. I have a simple test for each of my tables. The first two work as expected, but the third 'qlooks', gives a ValueError. If I copy and paste the SQL in the traceback to phpMyAdmin, it works as expected. Can anyone give a clue as to what I am doing wrong

Accessing a URL file Remotely

2007-11-29 Thread mcl
I have been given a url of CSV file (http://hostname/dir/file.csv), which when I put the full URL in a web browser shows the contents of the file. I want to be able to use the CSV module to read that file, which I have successfully used with a local CSV file. Any examples anywhere would be apprec

Re: Accessing a URL file Remotely

2007-11-30 Thread mcl
On 29 Nov, 22:32, TheSeeker <[EMAIL PROTECTED]> wrote: > On Nov 29, 3:13 pm, mcl <[EMAIL PROTECTED]> wrote: > > > > > I have been given a url ofCSVfile (http://hostname/dir/file.csv), > > which when I put the full URL in a web browser shows the contents of >

Standalone USB Web Server and Python Interpeter

2007-12-04 Thread mcl
I would like to have a USB pen drive, which can execute python scripts including CGI versions, which I can take to any Windows PC and run without having to install anything on the PC. My days of hacking are past so I am looking for something very simple. I would envisage a batch file which would

Re: Standalone USB Web Server and Python Interpeter

2007-12-05 Thread mcl
On 5 Dec, 08:31, Shane Geiger <[EMAIL PROTECTED]> wrote: > mcl wrote: > > I would like to have a USB pen drive, which can execute python scripts > > including CGI versions, which I can take to any Windows PC and run > > without having to install anything on the PC. &

Problem with Image: Opening a file

2008-02-03 Thread mcl
I am obviously doing something stupid or not understanding the difference between HTML file references and python script file references. I am trying to create a thumbnail of an existing .jpg file. It is in the directory 'temp', which is below my script I can display the file with , but Image.ope

Re: Problem with Image: Opening a file

2008-02-05 Thread mcl
On Feb 4, 10:43 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Feb 4, 6:51 pm,mcl<[EMAIL PROTECTED]> wrote: > > > > > I am obviously doing something stupid or not understanding the > > difference between HTML file references and python script file > &g

mysqldb: Rows READ or Processed

2008-02-06 Thread mcl
I have looked through Python Database API Specification v2.0, but can not find any reference to the number of records processed in a select query. I know I can get the number of records returned with cursor.rowcount, but I want to know the number of records processed. I suppose the info is in one

Re: mysqldb: Rows READ or Processed

2008-02-06 Thread mcl
On Feb 7, 12:19 am, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Wed, 2008-02-06 at 14:51 -0800, mcl wrote: > > I have looked through Python Database API Specification v2.0, but can > > not find any reference to the number of records processed in a select > > query.

Confused yet again: Very Newbie Question

2008-07-07 Thread mcl
Why can I not the change the value of a variable in another class, when I have passed it via a parameter list. I am sure I am being stupid, but I thought passed objects were Read/ Write eg #!/usr/bin/python class one(): #my Global Var

Re: Confused yet again: Very Newbie Question

2008-07-07 Thread mcl
On 7 Jul, 13:09, Jeff <[EMAIL PROTECTED]> wrote: > When you call c3.createJoe(c1.fred), you are passing a copy of the > value stored in c1.fred to your function.  Python passes function > parameters by value.  The function will not destructively modify its > arguments; you must expliticly state you

Re: Confused yet again: Very Newbie Question

2008-07-07 Thread mcl
On Jul 7, 5:07 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 7 Jul 2008 05:41:22 -0700 (PDT), mcl <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > My use of classes is because I want two classes one for  global > > varia

iptcinfo: Can not import: Newbie not really knowing what he is doing

2010-07-12 Thread mcl
My Code `import os from PIL import Image from iptcinfo import IPTCInfo info = IPTCInfo('test.jpg') print info.keywords, info.supplementalCategories, info.contacts caption = info.data['caption/abstract'] print caption` running Win XP SP3 I get the message No module: iptcinfo I have downloaded i

Re: iptcinfo: Can not import: Newbie not really knowing what he is doing

2010-07-12 Thread mcl
On Jul 12, 4:11 pm, Nick Raptis wrote: > Hi Richard!> I have downloaded iptcinfo and placed it in > python27\Lib\site-packages > > \iptcinfo > > > I guessed that was the right place, because that is where PIL ended > > up, but that had a fancy installer with it. > > You did place it in the right