Index
2012-04-20 14:01 – Zdravko Subakov : [dabo-users] Fw: Unicode Encode Error
2012-04-20 14:21 – Paul McNett : Re: [dabo-users] Fw: Unicode Encode Error
2012-04-20 14:31 – Zdravko Subakov : Re: [dabo-users] Fw: Unicode Encode Error
2012-04-20 14:35 – Paul McNett : Re: [dabo-users] Fw: Unicode Encode Error
2012-04-20 14:52 – Zdravko Subakov : Re: [dabo-users] Fw: Unicode Encode Error
2012-04-20 14:56 – Paul McNett : Re: [dabo-users] Fw: Unicode Encode Error
2012-04-20 15:19 – Zdravko Subakov : Re: [dabo-users] Fw: Unicode Encode Error
2012-04-20 16:08 – Paul McNett : Re: [dabo-users] Fw: Unicode Encode Error
2012-04-20 16:23 – Zdravko Subakov : Re: [dabo-users] Fw: Unicode Encode Error
2012-04-20 16:39 – Paul McNett : Re: [dabo-users] Fw: Unicode Encode Error
Back to top
[dabo-users] Fw: Unicode Encode Error

Author: Zdravko Subakov

Posted: 2012-04-20 14:01:34   Link

Ups I used wrong email account and now the email is waiting for approval,

here is the original

Z.

----- Original Message -----

From: "Zdravko Subakov" <subakovz@stcable.net>

To: "Dabo Users list" <dabo-users@leafe.com>

Sent: Friday, April 20, 2012 8:55 PM

Subject: Re: [dabo-users] Unicode Encode Error

> Thanks Paul for being so quick,

>

> No, the dabodemo worked ok, I even lost some time with that Montana

> solitaire. The problem started when I tried to modify the PyCon 2010 Hello

> World application.

>

> I copied a couple of lines and it worked.

> Ok I thought, how does it look if I try the only 5 different letters(from

> English Latin) in Serbian Latin SDCCZ. And as soon as I put it app was

> stuck, the error appeared in command window, so the only way out was

> CTRL+C, which terminated Python call for editor.py which I have been using

> to code the Hello World program.

>

> Z.

>

> ----- Original Message -----

> From: "Paul McNett" <p@ulmcnett.com>

> To: "Dabo Users list" <dabo-users@leafe.com>

> Sent: Friday, April 20, 2012 8:39 PM

> Subject: Re: [dabo-users] Unicode Encode Error

>

>

>

>

>>

>> Can you narrow down for us when/where this is happening? IOW, if you run

>> dabo/demo/DaboDemo.py, does that cause a unicode error?

>>

>> Thanks

>> Paul

>>

>>

>> _______________________________________________

>> Post Messages to: Dabo-users@leafe.com

>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>> This message:

>> http://leafe.com/archives/byMID/4F91AD50.8040004@ulmcnett.com

>>

>

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/3661B33093304674B51582ECDF2161DE@Perajoe

©2012 Zdravko Subakov
Back to top
Re: [dabo-users] Fw: Unicode Encode Error

Author: Paul McNett

Posted: 2012-04-20 14:21:56   Link

What is editor.py? Can you try editing directly in vim or any regular text editor

instead?

Paul

On 4/20/12 12:01 PM, Zdravko Subakov wrote:

> Ups I used wrong email account and now the email is waiting for approval,

> here is the original

> Z.

> ----- Original Message -----

> From: "Zdravko Subakov"<subakovz@stcable.net>

> To: "Dabo Users list"<dabo-users@leafe.com>

> Sent: Friday, April 20, 2012 8:55 PM

> Subject: Re: [dabo-users] Unicode Encode Error

>

>

>> Thanks Paul for being so quick,

>>

>> No, the dabodemo worked ok, I even lost some time with that Montana

>> solitaire. The problem started when I tried to modify the PyCon 2010 Hello

>> World application.

>>

>> I copied a couple of lines and it worked.

>> Ok I thought, how does it look if I try the only 5 different letters(from

>> English Latin) in Serbian Latin SDCCZ. And as soon as I put it app was

>> stuck, the error appeared in command window, so the only way out was

>> CTRL+C, which terminated Python call for editor.py which I have been using

>> to code the Hello World program.

>>

>> Z.

>>

>> ----- Original Message -----

>> From: "Paul McNett"<p@ulmcnett.com>

>> To: "Dabo Users list"<dabo-users@leafe.com>

>> Sent: Friday, April 20, 2012 8:39 PM

>> Subject: Re: [dabo-users] Unicode Encode Error

>>

>>

>>

>>

>>>

>>> Can you narrow down for us when/where this is happening? IOW, if you run

>>> dabo/demo/DaboDemo.py, does that cause a unicode error?

>>>

>>> Thanks

>>> Paul

>>>

>>>

>>> _______________________________________________

>>> Post Messages to: Dabo-users@leafe.com

>>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>> This message:

>>> http://leafe.com/archives/byMID/4F91AD50.8040004@ulmcnett.com

>>>

>>

>

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

> Searchable Archives: http://leafe.com/archives/search/dabo-users

> This message: http://leafe.com/archives/byMID/3661B33093304674B51582ECDF2161DE@Perajoe

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4F91B754.1020404@ulmcnett.com

©2012 Paul McNett
Back to top
Re: [dabo-users] Fw: Unicode Encode Error

Author: Zdravko Subakov

Posted: 2012-04-20 14:31:30   Link

I suppose I can, but the editor is in dabo/ide directory it looks it has

syntax coloring etc. ok so I thought its ok to use it. Why? Do you it that

is the problem?

Z.

----- Original Message -----

From: "Paul McNett" <p@ulmcnett.com>

To: "Dabo Users list" <dabo-users@leafe.com>

Sent: Friday, April 20, 2012 9:21 PM

Subject: Re: [dabo-users] Fw: Unicode Encode Error

> What is editor.py? Can you try editing directly in vim or any regular text

> editor

> instead?

>

> Paul

>

>

> On 4/20/12 12:01 PM, Zdravko Subakov wrote:

>> Ups I used wrong email account and now the email is waiting for approval,

>> here is the original

>> Z.

>> ----- Original Message -----

>> From: "Zdravko Subakov"<subakovz@stcable.net>

>> To: "Dabo Users list"<dabo-users@leafe.com>

>> Sent: Friday, April 20, 2012 8:55 PM

>> Subject: Re: [dabo-users] Unicode Encode Error

>>

>>

>>> Thanks Paul for being so quick,

>>>

>>> No, the dabodemo worked ok, I even lost some time with that Montana

>>> solitaire. The problem started when I tried to modify the PyCon 2010

>>> Hello

>>> World application.

>>>

>>> I copied a couple of lines and it worked.

>>> Ok I thought, how does it look if I try the only 5 different

>>> letters(from

>>> English Latin) in Serbian Latin SDCCZ. And as soon as I put it app was

>>> stuck, the error appeared in command window, so the only way out was

>>> CTRL+C, which terminated Python call for editor.py which I have been

>>> using

>>> to code the Hello World program.

>>>

>>> Z.

>>>

>>> ----- Original Message -----

>>> From: "Paul McNett"<p@ulmcnett.com>

>>> To: "Dabo Users list"<dabo-users@leafe.com>

>>> Sent: Friday, April 20, 2012 8:39 PM

>>> Subject: Re: [dabo-users] Unicode Encode Error

>>>

>>>

>>>

>>>

>>>>

>>>> Can you narrow down for us when/where this is happening? IOW, if you

>>>> run

>>>> dabo/demo/DaboDemo.py, does that cause a unicode error?

>>>>

>>>> Thanks

>>>> Paul

>>>>

>>>>

>>>> _______________________________________________

>>>> Post Messages to: Dabo-users@leafe.com

>>>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>>> This message:

>>>> http://leafe.com/archives/byMID/4F91AD50.8040004@ulmcnett.com

>>>>

>>>

>>

>> _______________________________________________

>> Post Messages to: Dabo-users@leafe.com

>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>> This message:

>> http://leafe.com/archives/byMID/3661B33093304674B51582ECDF2161DE@Perajoe

>

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

> Searchable Archives: http://leafe.com/archives/search/dabo-users

> This message:

> http://leafe.com/archives/byMID/4F91B754.1020404@ulmcnett.com

>

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/8E551C97C0CD4BEBB66D63ABAF2D60D4@Perajoe

©2012 Zdravko Subakov
Back to top
Re: [dabo-users] Fw: Unicode Encode Error

Author: Paul McNett

Posted: 2012-04-20 14:35:51   Link

Sorry, I guess you are using dabo/ide/Editor.py. I was confused because I'm using a

case-sensitive operating system (Linux) and I'm actually surprised that it got

reported in your traceback as 'editor.py' instead of 'Editor.py', even though Windows

is case-insensitive.

Well, it would help to isolate things. I have a hunch that the dabo library isn't at

fault in this case, but something at the IDE level, but I could be wrong.

Paul

On 4/20/12 12:31 PM, Zdravko Subakov wrote:

> I suppose I can, but the editor is in dabo/ide directory it looks it has

> syntax coloring etc. ok so I thought its ok to use it. Why? Do you it that

> is the problem?

>

> Z.

>

> ----- Original Message -----

> From: "Paul McNett"<p@ulmcnett.com>

> To: "Dabo Users list"<dabo-users@leafe.com>

> Sent: Friday, April 20, 2012 9:21 PM

> Subject: Re: [dabo-users] Fw: Unicode Encode Error

>

>

>> What is editor.py? Can you try editing directly in vim or any regular text

>> editor

>> instead?

>>

>> Paul

>>

>>

>> On 4/20/12 12:01 PM, Zdravko Subakov wrote:

>>> Ups I used wrong email account and now the email is waiting for approval,

>>> here is the original

>>> Z.

>>> ----- Original Message -----

>>> From: "Zdravko Subakov"<subakovz@stcable.net>

>>> To: "Dabo Users list"<dabo-users@leafe.com>

>>> Sent: Friday, April 20, 2012 8:55 PM

>>> Subject: Re: [dabo-users] Unicode Encode Error

>>>

>>>

>>>> Thanks Paul for being so quick,

>>>>

>>>> No, the dabodemo worked ok, I even lost some time with that Montana

>>>> solitaire. The problem started when I tried to modify the PyCon 2010

>>>> Hello

>>>> World application.

>>>>

>>>> I copied a couple of lines and it worked.

>>>> Ok I thought, how does it look if I try the only 5 different

>>>> letters(from

>>>> English Latin) in Serbian Latin SDCCZ. And as soon as I put it app was

>>>> stuck, the error appeared in command window, so the only way out was

>>>> CTRL+C, which terminated Python call for editor.py which I have been

>>>> using

>>>> to code the Hello World program.

>>>>

>>>> Z.

>>>>

>>>> ----- Original Message -----

>>>> From: "Paul McNett"<p@ulmcnett.com>

>>>> To: "Dabo Users list"<dabo-users@leafe.com>

>>>> Sent: Friday, April 20, 2012 8:39 PM

>>>> Subject: Re: [dabo-users] Unicode Encode Error

>>>>

>>>>

>>>>

>>>>

>>>>>

>>>>> Can you narrow down for us when/where this is happening? IOW, if you

>>>>> run

>>>>> dabo/demo/DaboDemo.py, does that cause a unicode error?

>>>>>

>>>>> Thanks

>>>>> Paul

>>>>>

>>>>>

>>>>> _______________________________________________

>>>>> Post Messages to: Dabo-users@leafe.com

>>>>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>>>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>>>> This message:

>>>>> http://leafe.com/archives/byMID/4F91AD50.8040004@ulmcnett.com

>>>>>

>>>>

>>>

>>> _______________________________________________

>>> Post Messages to: Dabo-users@leafe.com

>>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>> This message:

>>> http://leafe.com/archives/byMID/3661B33093304674B51582ECDF2161DE@Perajoe

>>

>> _______________________________________________

>> Post Messages to: Dabo-users@leafe.com

>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>> This message:

>> http://leafe.com/archives/byMID/4F91B754.1020404@ulmcnett.com

>>

>

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

> Searchable Archives: http://leafe.com/archives/search/dabo-users

> This message: http://leafe.com/archives/byMID/8E551C97C0CD4BEBB66D63ABAF2D60D4@Perajoe

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4F91BA97.5010302@ulmcnett.com

©2012 Paul McNett
Back to top
Re: [dabo-users] Fw: Unicode Encode Error

Author: Zdravko Subakov

Posted: 2012-04-20 14:52:15   Link

You are the King, I tried runnig app directly without using editor.py and it

worked strait away. So I entered all culprit letters from Serbian Latin and

a couple from Hungarian and it worked!

Now I have to try other editor that could write Cyrilic cause Textpad that I

was using cannot do that.

Any suggestion for editor that would work for me or I should wait for a fix

for Dabo's Editor.py?

Z.

----- Original Message -----

From: "Paul McNett" <p@ulmcnett.com>

To: "Dabo Users list" <dabo-users@leafe.com>

Sent: Friday, April 20, 2012 9:35 PM

Subject: Re: [dabo-users] Fw: Unicode Encode Error

> Sorry, I guess you are using dabo/ide/Editor.py. I was confused because

> I'm using a

> case-sensitive operating system (Linux) and I'm actually surprised that it

> got

> reported in your traceback as 'editor.py' instead of 'Editor.py', even

> though Windows

> is case-insensitive.

>

> Well, it would help to isolate things. I have a hunch that the dabo

> library isn't at

> fault in this case, but something at the IDE level, but I could be wrong.

>

> Paul

>

>

> On 4/20/12 12:31 PM, Zdravko Subakov wrote:

>> I suppose I can, but the editor is in dabo/ide directory it looks it has

>> syntax coloring etc. ok so I thought its ok to use it. Why? Do you it

>> that

>> is the problem?

>>

>> Z.

>>

>> ----- Original Message -----

>> From: "Paul McNett"<p@ulmcnett.com>

>> To: "Dabo Users list"<dabo-users@leafe.com>

>> Sent: Friday, April 20, 2012 9:21 PM

>> Subject: Re: [dabo-users] Fw: Unicode Encode Error

>>

>>

>>> What is editor.py? Can you try editing directly in vim or any regular

>>> text

>>> editor

>>> instead?

>>>

>>> Paul

>>>

>>>

>>> On 4/20/12 12:01 PM, Zdravko Subakov wrote:

>>>> Ups I used wrong email account and now the email is waiting for

>>>> approval,

>>>> here is the original

>>>> Z.

>>>> ----- Original Message -----

>>>> From: "Zdravko Subakov"<subakovz@stcable.net>

>>>> To: "Dabo Users list"<dabo-users@leafe.com>

>>>> Sent: Friday, April 20, 2012 8:55 PM

>>>> Subject: Re: [dabo-users] Unicode Encode Error

>>>>

>>>>

>>>>> Thanks Paul for being so quick,

>>>>>

>>>>> No, the dabodemo worked ok, I even lost some time with that Montana

>>>>> solitaire. The problem started when I tried to modify the PyCon 2010

>>>>> Hello

>>>>> World application.

>>>>>

>>>>> I copied a couple of lines and it worked.

>>>>> Ok I thought, how does it look if I try the only 5 different

>>>>> letters(from

>>>>> English Latin) in Serbian Latin SDCCZ. And as soon as I put it app was

>>>>> stuck, the error appeared in command window, so the only way out was

>>>>> CTRL+C, which terminated Python call for editor.py which I have been

>>>>> using

>>>>> to code the Hello World program.

>>>>>

>>>>> Z.

>>>>>

>>>>> ----- Original Message -----

>>>>> From: "Paul McNett"<p@ulmcnett.com>

>>>>> To: "Dabo Users list"<dabo-users@leafe.com>

>>>>> Sent: Friday, April 20, 2012 8:39 PM

>>>>> Subject: Re: [dabo-users] Unicode Encode Error

>>>>>

>>>>>

>>>>>

>>>>>

>>>>>>

>>>>>> Can you narrow down for us when/where this is happening? IOW, if you

>>>>>> run

>>>>>> dabo/demo/DaboDemo.py, does that cause a unicode error?

>>>>>>

>>>>>> Thanks

>>>>>> Paul

>>>>>>

>>>>>>

>>>>>> _______________________________________________

>>>>>> Post Messages to: Dabo-users@leafe.com

>>>>>> Subscription Maintenance:

>>>>>> http://leafe.com/mailman/listinfo/dabo-users

>>>>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>>>>> This message:

>>>>>> http://leafe.com/archives/byMID/4F91AD50.8040004@ulmcnett.com

>>>>>>

>>>>>

>>>>

>>>> _______________________________________________

>>>> Post Messages to: Dabo-users@leafe.com

>>>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>>> This message:

>>>> http://leafe.com/archives/byMID/3661B33093304674B51582ECDF2161DE@Perajoe

>>>

>>> _______________________________________________

>>> Post Messages to: Dabo-users@leafe.com

>>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>> This message:

>>> http://leafe.com/archives/byMID/4F91B754.1020404@ulmcnett.com

>>>

>>

>> _______________________________________________

>> Post Messages to: Dabo-users@leafe.com

>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>> This message:

>> http://leafe.com/archives/byMID/8E551C97C0CD4BEBB66D63ABAF2D60D4@Perajoe

>

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

> Searchable Archives: http://leafe.com/archives/search/dabo-users

> This message:

> http://leafe.com/archives/byMID/4F91BA97.5010302@ulmcnett.com

>

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/8C5E46449C5B4D74983BF4BC9CA1ADC4@Perajoe

©2012 Zdravko Subakov
Back to top
Re: [dabo-users] Fw: Unicode Encode Error

Author: Paul McNett

Posted: 2012-04-20 14:56:38   Link

Please try manually patching dabo/ide/Editor.py with these changes:

Index: Editor.py

===================================================================

--- Editor.py (revision 7134)

+++ Editor.py (working copy)

@@ -10,6 +10,7 @@

import operator

import dabo

import dabo.dEvents as dEvents

+from dabo.lib.utils import ustr

from dabo.dLocalize import _

_Use_Subprocess = True

try:

@@ -897,7 +898,7 @@

fileDir = os.path.split(ed.FilePath)[0]

if fileDir:

os.chdir(fileDir)

- txt = ed.Text

+ txt = ustr(ed.Text)

fname = getTempFile(ext="py")

f = open(fname, "w")

f.write(txt)

On 4/20/12 12:52 PM, Zdravko Subakov wrote:

> You are the King, I tried runnig app directly without using editor.py and it

> worked strait away. So I entered all culprit letters from Serbian Latin and

> a couple from Hungarian and it worked!

> Now I have to try other editor that could write Cyrilic cause Textpad that I

> was using cannot do that.

> Any suggestion for editor that would work for me or I should wait for a fix

> for Dabo's Editor.py?

>

> Z.

> ----- Original Message -----

> From: "Paul McNett"<p@ulmcnett.com>

> To: "Dabo Users list"<dabo-users@leafe.com>

> Sent: Friday, April 20, 2012 9:35 PM

> Subject: Re: [dabo-users] Fw: Unicode Encode Error

>

>

>> Sorry, I guess you are using dabo/ide/Editor.py. I was confused because

>> I'm using a

>> case-sensitive operating system (Linux) and I'm actually surprised that it

>> got

>> reported in your traceback as 'editor.py' instead of 'Editor.py', even

>> though Windows

>> is case-insensitive.

>>

>> Well, it would help to isolate things. I have a hunch that the dabo

>> library isn't at

>> fault in this case, but something at the IDE level, but I could be wrong.

>>

>> Paul

>>

>>

>> On 4/20/12 12:31 PM, Zdravko Subakov wrote:

>>> I suppose I can, but the editor is in dabo/ide directory it looks it has

>>> syntax coloring etc. ok so I thought its ok to use it. Why? Do you it

>>> that

>>> is the problem?

>>>

>>> Z.

>>>

>>> ----- Original Message -----

>>> From: "Paul McNett"<p@ulmcnett.com>

>>> To: "Dabo Users list"<dabo-users@leafe.com>

>>> Sent: Friday, April 20, 2012 9:21 PM

>>> Subject: Re: [dabo-users] Fw: Unicode Encode Error

>>>

>>>

>>>> What is editor.py? Can you try editing directly in vim or any regular

>>>> text

>>>> editor

>>>> instead?

>>>>

>>>> Paul

>>>>

>>>>

>>>> On 4/20/12 12:01 PM, Zdravko Subakov wrote:

>>>>> Ups I used wrong email account and now the email is waiting for

>>>>> approval,

>>>>> here is the original

>>>>> Z.

>>>>> ----- Original Message -----

>>>>> From: "Zdravko Subakov"<subakovz@stcable.net>

>>>>> To: "Dabo Users list"<dabo-users@leafe.com>

>>>>> Sent: Friday, April 20, 2012 8:55 PM

>>>>> Subject: Re: [dabo-users] Unicode Encode Error

>>>>>

>>>>>

>>>>>> Thanks Paul for being so quick,

>>>>>>

>>>>>> No, the dabodemo worked ok, I even lost some time with that Montana

>>>>>> solitaire. The problem started when I tried to modify the PyCon 2010

>>>>>> Hello

>>>>>> World application.

>>>>>>

>>>>>> I copied a couple of lines and it worked.

>>>>>> Ok I thought, how does it look if I try the only 5 different

>>>>>> letters(from

>>>>>> English Latin) in Serbian Latin SDCCZ. And as soon as I put it app was

>>>>>> stuck, the error appeared in command window, so the only way out was

>>>>>> CTRL+C, which terminated Python call for editor.py which I have been

>>>>>> using

>>>>>> to code the Hello World program.

>>>>>>

>>>>>> Z.

>>>>>>

>>>>>> ----- Original Message -----

>>>>>> From: "Paul McNett"<p@ulmcnett.com>

>>>>>> To: "Dabo Users list"<dabo-users@leafe.com>

>>>>>> Sent: Friday, April 20, 2012 8:39 PM

>>>>>> Subject: Re: [dabo-users] Unicode Encode Error

>>>>>>

>>>>>>

>>>>>>

>>>>>>

>>>>>>>

>>>>>>> Can you narrow down for us when/where this is happening? IOW, if you

>>>>>>> run

>>>>>>> dabo/demo/DaboDemo.py, does that cause a unicode error?

>>>>>>>

>>>>>>> Thanks

>>>>>>> Paul

>>>>>>>

>>>>>>>

>>>>>>> _______________________________________________

>>>>>>> Post Messages to: Dabo-users@leafe.com

>>>>>>> Subscription Maintenance:

>>>>>>> http://leafe.com/mailman/listinfo/dabo-users

>>>>>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>>>>>> This message:

>>>>>>> http://leafe.com/archives/byMID/4F91AD50.8040004@ulmcnett.com

>>>>>>>

>>>>>>

>>>>>

>>>>> _______________________________________________

>>>>> Post Messages to: Dabo-users@leafe.com

>>>>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>>>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>>>> This message:

>>>>> http://leafe.com/archives/byMID/3661B33093304674B51582ECDF2161DE@Perajoe

>>>>

>>>> _______________________________________________

>>>> Post Messages to: Dabo-users@leafe.com

>>>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>>> This message:

>>>> http://leafe.com/archives/byMID/4F91B754.1020404@ulmcnett.com

>>>>

>>>

>>> _______________________________________________

>>> Post Messages to: Dabo-users@leafe.com

>>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>>> This message:

>>> http://leafe.com/archives/byMID/8E551C97C0CD4BEBB66D63ABAF2D60D4@Perajoe

>>

>> _______________________________________________

>> Post Messages to: Dabo-users@leafe.com

>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>> This message:

>> http://leafe.com/archives/byMID/4F91BA97.5010302@ulmcnett.com

>>

>

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

> Searchable Archives: http://leafe.com/archives/search/dabo-users

> This message: http://leafe.com/archives/byMID/8C5E46449C5B4D74983BF4BC9CA1ADC4@Perajoe

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4F91BF76.6000908@ulmcnett.com

©2012 Paul McNett
Back to top
Re: [dabo-users] Fw: Unicode Encode Error

Author: Zdravko Subakov

Posted: 2012-04-20 15:19:30   Link

If I got it correctly I should

add this line

from dabo.lib.utils import ustr

and comment out first(with minus) and add the second one (with plus)

txt = ed.Text

txt = ustr(ed.Text)

If that is what you wanted to try out it still does not work, here is the

error:

***********************

C:\dabo\ide>python editor.py

Traceback (most recent call last):

File

"C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dMenuIte

m.py", line 58, in __onWxHit

self.raiseEvent(dEvents.Hit, evt)

File

"C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dPemMixi

n.py", line 1045, in raiseEvent

super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,

**kwargs)

File

"C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\lib\eventMixin.p

y", line 81, in raiseEvent

bindingFunction(event)

File "editor.py", line 905, in onRunScript

f.write(txt)

UnicodeEncodeError: 'ascii' codec can't encode character u'\u017d' in

position 1

53: ordinal not in range(128)

*****************************

----- Original Message -----

From: "Paul McNett" <p@ulmcnett.com>

To: "Dabo Users list" <dabo-users@leafe.com>

Sent: Friday, April 20, 2012 9:56 PM

Subject: Re: [dabo-users] Fw: Unicode Encode Error

> Please try manually patching dabo/ide/Editor.py with these changes:

>

> Index: Editor.py

> ===================================================================

> --- Editor.py (revision 7134)

> +++ Editor.py (working copy)

> @@ -10,6 +10,7 @@

> import operator

> import dabo

> import dabo.dEvents as dEvents

> +from dabo.lib.utils import ustr

> from dabo.dLocalize import _

> _Use_Subprocess = True

> try:

> @@ -897,7 +898,7 @@

> fileDir = os.path.split(ed.FilePath)[0]

> if fileDir:

> os.chdir(fileDir)

> - txt = ed.Text

> + txt = ustr(ed.Text)

> fname = getTempFile(ext="py")

> f = open(fname, "w")

> f.write(txt)

>

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/A7B076A235C84365B40E9DD5B7B20E42@Perajoe

©2012 Zdravko Subakov
Back to top
Re: [dabo-users] Fw: Unicode Encode Error

Author: Paul McNett

Posted: 2012-04-20 16:08:58   Link

On 4/20/12 1:19 PM, Zdravko Subakov wrote:

> If I got it correctly I should

> add this line

> from dabo.lib.utils import ustr

To close to the top of the file, yes.

> and comment out first(with minus) and add the second one (with plus)

> txt = ed.Text

> txt = ustr(ed.Text)

Yes, that should work. See below though.

>

> If that is what you wanted to try out it still does not work, here is the

> error:

> ***********************

> C:\dabo\ide>python editor.py

> Traceback (most recent call last):

> File

> "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dMenuIte

> m.py", line 58, in __onWxHit

> self.raiseEvent(dEvents.Hit, evt)

> File

> "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dPemMixi

> n.py", line 1045, in raiseEvent

> super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,

> **kwargs)

> File

> "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\lib\eventMixin.p

> y", line 81, in raiseEvent

> bindingFunction(event)

> File "editor.py", line 905, in onRunScript

> f.write(txt)

It is still running the old code. Otherwise the above line would show the ustr()

call. If you "installed" dabo with setup.py from this source you are editing you'll

need to install it again.

> UnicodeEncodeError: 'ascii' codec can't encode character u'\u017d' in

> position 1

> 53: ordinal not in range(128)

> *****************************

>

Paul

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4F91D06A.5020500@ulmcnett.com

©2012 Paul McNett
Back to top
Re: [dabo-users] Fw: Unicode Encode Error

Author: Zdravko Subakov

Posted: 2012-04-20 16:23:57   Link

I installed it again tried import dabo, it worked. Tried my Hello World

trough editor.py it failed.

***************

C:\dabo\ide>python editor.py

Traceback (most recent call last):

File

"C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dMenuIte

m.py", line 58, in __onWxHit

self.raiseEvent(dEvents.Hit, evt)

File

"C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dPemMixi

n.py", line 1045, in raiseEvent

super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,

**kwargs)

File

"C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\lib\eventMixin.p

y", line 81, in raiseEvent

bindingFunction(event)

File "editor.py", line 905, in onRunScript

f.write(txt)

UnicodeEncodeError: 'ascii' codec can't encode character u'\u017d' in

position 1

53: ordinal not in range(128)

*******************************

Z.

----- Original Message -----

From: "Paul McNett" <p@ulmcnett.com>

To: "Dabo Users list" <dabo-users@leafe.com>

Sent: Friday, April 20, 2012 11:08 PM

Subject: Re: [dabo-users] Fw: Unicode Encode Error

> It is still running the old code. Otherwise the above line would show the

> ustr()

> call. If you "installed" dabo with setup.py from this source you are

> editing you'll

> need to install it again.

>

>> UnicodeEncodeError: 'ascii' codec can't encode character u'\u017d' in

>> position 1

>> 53: ordinal not in range(128)

>> *****************************

>>

>

> Paul

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

> Searchable Archives: http://leafe.com/archives/search/dabo-users

> This message:

> http://leafe.com/archives/byMID/4F91D06A.5020500@ulmcnett.com

>

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/6B91BD9985484A1CB309F2B9F5E9B550@Perajoe

©2012 Zdravko Subakov
Back to top
Re: [dabo-users] Fw: Unicode Encode Error

Author: Paul McNett

Posted: 2012-04-20 16:39:25   Link

Okay please try one more thing. See the line above 905 that says:

f = open(fname, "w")

Change to:

f = open(fname, "wb")

Paul

On 4/20/12 2:23 PM, Zdravko Subakov wrote:

> I installed it again tried import dabo, it worked. Tried my Hello World

> trough editor.py it failed.

> ***************

> C:\dabo\ide>python editor.py

> Traceback (most recent call last):

> File

> "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dMenuIte

> m.py", line 58, in __onWxHit

> self.raiseEvent(dEvents.Hit, evt)

> File

> "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dPemMixi

> n.py", line 1045, in raiseEvent

> super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,

> **kwargs)

> File

> "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\lib\eventMixin.p

> y", line 81, in raiseEvent

> bindingFunction(event)

> File "editor.py", line 905, in onRunScript

> f.write(txt)

> UnicodeEncodeError: 'ascii' codec can't encode character u'\u017d' in

> position 1

> 53: ordinal not in range(128)

> *******************************

> Z.

>

> ----- Original Message -----

> From: "Paul McNett"<p@ulmcnett.com>

> To: "Dabo Users list"<dabo-users@leafe.com>

> Sent: Friday, April 20, 2012 11:08 PM

> Subject: Re: [dabo-users] Fw: Unicode Encode Error

>

>

>> It is still running the old code. Otherwise the above line would show the

>> ustr()

>> call. If you "installed" dabo with setup.py from this source you are

>> editing you'll

>> need to install it again.

>>

>>> UnicodeEncodeError: 'ascii' codec can't encode character u'\u017d' in

>>> position 1

>>> 53: ordinal not in range(128)

>>> *****************************

>>>

>>

>> Paul

>> _______________________________________________

>> Post Messages to: Dabo-users@leafe.com

>> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

>> Searchable Archives: http://leafe.com/archives/search/dabo-users

>> This message:

>> http://leafe.com/archives/byMID/4F91D06A.5020500@ulmcnett.com

>>

>

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

> Searchable Archives: http://leafe.com/archives/search/dabo-users

> This message: http://leafe.com/archives/byMID/6B91BD9985484A1CB309F2B9F5E9B550@Perajoe

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4F91D78D.9020807@ulmcnett.com

©2012 Paul McNett