kmarchand / iCloudTabsAlfredWorkflow

Alfred2 workflow for retrieving iCloud tabs from all devices
131 stars 15 forks source link

Tabdump doesn't work for me #2

Closed jbryant705 closed 10 years ago

jbryant705 commented 10 years ago

This is the error it's producing:

[ERROR: alfred.workflow.output.script] Code 1: Traceback (most recent call last): File "", line 91, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 25: ordinal not in range(128)

kmarchand commented 10 years ago

Sorry about that. I think I fixed the unicode error with the workflow and I've tested both the normal tabs function and tabdump with a site that has non ascii characters in the title.

Can you download the file from github and try again?

On Fri, Mar 7, 2014 at 1:53 PM, jbryant705 notifications@github.com wrote:

This is the error it's producing:

[ERROR: alfred.workflow.output.script] Code 1: Traceback (most recent call last): File "", line 91, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 25: ordinal not in range(128)

Reply to this email directly or view it on GitHubhttps://github.com/kmarchand/iCloudTabsAlfredWorkflow/issues/2 .

jbryant705 commented 10 years ago

I got the same error but a different line this time:

[ERROR: alfred.workflow.output.script] Code 1: Traceback (most recent call last): File "", line 80, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 25: ordinal not in range(128)

kmarchand commented 10 years ago

jbryant705, did you try with the update that was posted within the past 10 minutes?

jbryant705 commented 10 years ago

Ya I tried re-downloading right after I got the email notification with your comment.

— JB Bryant

On Mar 7, 2014, at 4:04 PM, Kevin Marchand notifications@github.com wrote:

jbryant705, did you try with the update that was posted within the past 10 minutes?

— Reply to this email directly or view it on GitHub.

kmarchand commented 10 years ago

Ok... line 80 referred to the device name which wasn't protected for non-ascii. I think I fixed it (I can't change my device name to have non ascii characters to test at the moment). Can you try again?

jbryant705 commented 10 years ago

Same line 80 error as last time. FYI my iPhone name is "JB's iPhone"

kmarchand commented 10 years ago

Weird... I changed my iPhone name to "KM's iPhone" and then also to Chinese characters and in both cases, and with a tab open that had Chinese characters in the Title, it worked fine when I ran the script from the command line:

kmb:icloudtabs km$ python icloudtabs-dump.py processing links from: 系统 processing: http://www.google.com [...]

However when the same python code is in the Alfred workflow it only works when the Device name is ascii.

Where do you see the [ERROR: alfred.workflow.output.script] coming up? I don't see anything in console for Alfred and I'm not sure where to see that log.

jbryant705 commented 10 years ago

There's a new debug option in the latest alfred beta

alfred_preferences

kmarchand commented 10 years ago

The problem was due to a few utility print statements that were in the file for the purpose of running it from the terminal. Those were causing a problem when non ascii characters were printed but since they aren't actually needed at all I just commented them out and it works now.

jbryant705 commented 10 years ago

Thanks!