Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action-own: fix reading result string in French #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bors-ltd
Copy link

I had the usual Python 2 encoding issues with this app, and the TTS literally reading the garbage it can produce.

I found out this "latin1" encoding was in contradiction with the encoding declared where the sentences are stored, e.g. https://github.com/snipsco/snips-skill-owm/blob/master/snipsowm/sentence_generator.py#L2

For completeness, my dev kit is configured to the locale fr_FR.UTF-8.

I can only encourage you to move to Python 3 but I have no idea how installed applications can be migrated. By writing specific migration code in setup.sh?

I had the usual Python 2 encoding issues with this app, and the TTS literally reading the garbage it can produce.

I found out this "latin1" encoding was in contradiction with the encoding declared where the sentences are stored, e.g. https://github.com/snipsco/snips-skill-owm/blob/master/snipsowm/sentence_generator.py#L2

For completeness, my dev kit is configured to the locale fr_FR.UTF-8.

I can only encourage you to move to Python 3 but I have no idea how installed applications can be migrated. By writing specific migration code in setup.sh?
@anthonyray
Copy link
Contributor

anthonyray commented Mar 11, 2019

Thanks for your contribution.
This was indeed an error on our side. I'll merge your pull request, and will think of a way to transition properly to Python 3. hermes-python already supports python3. In the meantime, there's already a migration guide written here : https://forum.snips.ai/t/howto-convert-your-snips-skills-to-python-3/1511

@dohseven
Copy link

@anthonyray Any plan to merge this PR soon? Or is something blocking it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants