[Users] error running vcard2xml.py - still hoping for reply
RSV-RR
rsv869 at roadrunner.com
Thu Jan 10 01:50:48 CET 2013
On Wed, 9 Jan 2013 01:26:31 +0100
Michael Rasmussen <mir at miras.org> wrote:
> On Tue, 8 Jan 2013 19:07:58 -0500
> RSV-RR <rsv869 at roadrunner.com> wrote:
>
> > Hello Michael and Tristan -
> >
> > Not sure how to get this resolved.....
> >
> > reid at rsv-linux:~/Temp$ python claws-mail-vcard2xml/vcard2xml.py list.vcf
> > File "claws-mail-vcard2xml/vcard2xml.py", line 4
> > SyntaxError: Non-ASCII character '\xa9' in file
> > claws-mail-vcard2xml/vcard2xml.py on line 5, but no encoding declared;
> > see http://www.python.org/peps/pep-0263.html for details
> Simply by doing this
> 1) Replace first line
> #!/usr/bin/python2.2
> 2) with
> #!/usr/bin/python2.2
> # -*- coding: latin-1 -*-
>
> Fix can also be found in
> http://claws-mail.org/tracker/getpatchset.php?ver=3.9.0cvs53
>
>
> --
> Hilsen/Regards
> Michael Rasmussen
>
> Get my public GnuPG keys:
> michael <at> rasmussen <dot> cc
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
> mir <at> datanom <dot> net
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
> mir <at> miras <dot> org
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
> --------------------------------------------------------------
> ... [concerning quotation marks] even if we *___did* quote anybody
> in this business, it probably would be gibberish.
> -- Thom McLeod
Thanks Michael -
made the changes you suggested and have come across this error.
Thoughts welcome.
reid at rsv-linux:~/Temp$
reid at rsv-linux:~/Temp$ ls -l
total 13304
-rw-rw-r-- 1 reid reid 91508 Dec 14 21:49 Addresses2.vcf
drwxr-xr-x 2 reid reid 4096 Jan 9 07:13 claws-mail-vcard2xml
drwxrwxr-x 3 reid reid 4096 Dec 31 12:27 home
-rw-rw-r-- 1 reid reid 6068177 Dec 31 09:57 inbox-archive
-rwxrwxrwx 1 reid reid 7349689 Dec 31 12:09 inbox-archive2
-rw-rw-r-- 1 reid reid 91508 Dec 31 15:22 list.vcf
drwxrwxr-x 3 reid reid 4096 Jan 4 21:38 tether
reid at rsv-linux:~/Temp$
reid at rsv-linux:~/Temp$
reid at rsv-linux:~/Temp$
reid at rsv-linux:~/Temp$ python claws-mail-vcard2xml/vcard2xml.py Addresses2.vcf
proccessing...
got exception: list index out of range
got exception, cleaning up the mess... changed files will be restored...
Traceback (most recent call last):
File "claws-mail-vcard2xml/vcard2xml.py", line 243, in <module>
execute ()
File "claws-mail-vcard2xml/vcard2xml.py", line 219, in execute
os.rename(out_file.name+'.tmp', out_file.name)
OSError: [Errno 20] Not a directory
reid at rsv-linux:~/Temp$
Thanks in advance
reid
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20130109/3f4f194b/attachment.sig>
More information about the Users
mailing list