Syntax error

H

hg

Hi,

I've had this problem in the past and still cannot fully understand.

I latelly passed my source code in Wing IDE wihch asked be to resolve
tab/space/CRLF conflicts and I said yes (initially the code was developped
under Linux ... and now all source got tabs replaced by spaces and all EOL
when switched to Windows CR/LF)

I sent a new release of the software, tested here first, to the customer who
got a syntax error on a line which visibly did not have any error.

retyping that line by and made the error jump around the file like crazy.

I had the customer comment out the first two lines of the file:

"""
#!/bin/env python
# -*- coding: iso-8859-15 -*-
"""

.... and the problem disappeared.

I am at a loss.

Any clue ?

Thanks

hg
 
H

hg

Marc said:
There was once a bug in Python that lead to such "errors" if an encoding
comment was used. So your costumer might check his Python version and
maybe he should update.

Ciao,
Marc 'BlackJack' Rintsch

Thanks,

The troubling part is that I package python in the release ... but I'll
check anyway.

hg
 
H

hg

Diez said:
Without a stacktrace? It's spring, not crystal ball season.

Diez


Not worth showing really, it's a screen dump so can't put it here but:

.....
self.T_CARD_FOUND = 'PLEASE WAIT ...'
^
Syntax error

hg
 
M

Marc 'BlackJack' Rintsch

I had the customer comment out the first two lines of the file:

"""
#!/bin/env python
# -*- coding: iso-8859-15 -*-
"""

... and the problem disappeared.

I am at a loss.

Any clue ?

There was once a bug in Python that lead to such "errors" if an encoding
comment was used. So your costumer might check his Python version and
maybe he should update.

Ciao,
Marc 'BlackJack' Rintsch
 
D

Diez B. Roggisch

hg said:
Hi,

I've had this problem in the past and still cannot fully understand.

I latelly passed my source code in Wing IDE wihch asked be to resolve
tab/space/CRLF conflicts and I said yes (initially the code was developped
under Linux ... and now all source got tabs replaced by spaces and all EOL
when switched to Windows CR/LF)

I sent a new release of the software, tested here first, to the customer
who got a syntax error on a line which visibly did not have any error.

retyping that line by and made the error jump around the file like crazy.

I had the customer comment out the first two lines of the file:

"""
#!/bin/env python
# -*- coding: iso-8859-15 -*-
"""

... and the problem disappeared.

I am at a loss.

Any clue ?

Without a stacktrace? It's spring, not crystal ball season.

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top