Re: rstrip error python2.4.3 not in 2.5.1?

2008-02-29 Thread dirkheld
> > What is the actual error message [SyntaxError, NameError? etc] that you > clipped? Here it is : I tought that I didn't matter because the deliciousapi worked fine on my mac. Traceback (most recent call last): File "delgraph.py", line 62, in ? url_metadata = d.get_url(site.rstrip()) F

Re: XML expat error

2008-02-28 Thread dirkheld
On 28 feb, 08:18, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Wed, 27 Feb 2008 14:02:25 -0800, dirkheld wrote: > > Something strange here. The xml file causing the problem has only 361 > > lines. Isn't there a way to catch this error, ignore it

rstrip error python2.4.3 not in 2.5.1?

2008-02-28 Thread dirkheld
Hi, I wrote some python code that retrieves urls from a txt file. In this code I use .rstrip() for removing the '\n' at the end of every url. While this code works on my mac (leopard) with python 2.5.1, this same code fails to work on an ubuntu server with python 2.4.3 I was wondering if there is

Re: XML expat error

2008-02-27 Thread dirkheld
On 27 feb, 17:18, "Richard Brodie" <[EMAIL PROTECTED]> wrote: > "dirkheld" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > xml.parsers.expat.ExpatError: not well-formed (invalid token): line > > 554, column 20 >

XML expat error

2008-02-27 Thread dirkheld
Hi, I have written a piece of code that reads all xml files in a directory in onder to retrieve one element in each of these files. All files have the same XML structure. After file 123 I receive the following error : xml.parsers.expat.ExpatError: not well-formed (invalid token): line 554, column

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-04 Thread dirkheld
another computername. So the path were I wanted to write to didn't exist any more. Previous : /users/dirkheld/programming/python/ Now : /users/dirk/programming/python/... Sorry for keeping you guys busy with such a mistake ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread dirkheld
On 3 dec, 14:54, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > dirkheld wrote: > > Hi, > > > I upgraded my system from tiger to leopard. With leopard came a new > > version of python 2.5 > > > Now I trying to run some python code that previo

python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread dirkheld
Hi, I upgraded my system from tiger to leopard. With leopard came a new version of python 2.5 Now I trying to run some python code that previously worked on tiger (which included an older version of python). This is the error I'm receiving : Traceback (most recent call last): File "test.py",

write whitespace/tab to a text file

2007-10-19 Thread dirkheld
Hi, I would l like to write some data to a text file. I want to write the data with whitespace or tabs in between so that I create tabular columns like in a spreadsheet. How can I do this in python. (btw, I'm new to python) names = ['John','Steve','asimov','fred','jim'] ## output I would like in

write whitespace/tab to a text file

2007-10-19 Thread dirkheld
Hi, I would l like to write some data to a text file. I want to write the data with whitespace or tabs in between so that I create tabular columns like in a spreadsheet. How can I do this in python. (btw, I'm new to python) names = ['John','Steve','asimov','fred','jim'] ## output I would like in

write whitespace/tab to a text file

2007-10-19 Thread dirkheld
Hi, I would l like to write some data to a text file. I want to write the data with whitespace or tabs in between so that I create tabular columns like in a spreadsheet. How can I do this in python. (btw, I'm new to python) names = ['John','Steve','asimov','fred','jim'] ## output I would like in