``` File "/home/prefect_user/venv/lib/python3.6/s...
# ask-community
h
Copy code
File "/home/prefect_user/venv/lib/python3.6/site-packages/prefect/cli/build_register.py", line 495, in build_and_register
    click.echo(f"  \u2514\u2500\u2500 ID: {flow_id}")
  File "/home/prefect_user/venv/lib/python3.6/site-packages/click/utils.py", line 272, in echo
    file.write(message)
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 2-4: ordinal not in range(256)
Hi, when I do a register I get this weird error but it registers and all works fine. I'm on python 3.6.9. Has anyone encountered this before?
k
I have not…this successfully registers? What is your IDE and OS?
j
hi Harish, I'm not entirely sure the cause but this is in the display message you get after a flow is registered. https://github.com/PrefectHQ/prefect/blob/master/src/prefect/cli/build_register.py#L495
└──
is not valid for latin-1 encoding, which Kevin mentioned might have to do with your settings
h
yeah I saw that once, but it changed to this error now
I'm on Ubuntu 18.04 and I use the terminal in VSCode to register
I run this command to register flows, prefect register --project "test" -m package.test
j
in the terminal if you open up a python shell and type the following what do you get back?
Copy code
import sys
sys.getdefaultencoding()
h
>> import sys
>> sys.getdefaultencoding()
'utf-8'
Btw now it started working, I'm not quite sure what changed other than restart VSCode
Thank you @Jake Kaplan @Kevin Kho
j
😅 glad it's working now!