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.
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
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
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-',)
>
> > > ===
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
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
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
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
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
>
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
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.
&
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
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
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
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.
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
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
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
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
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
20 matches
Mail list logo