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

A UTF-8 locale is required. Got ANSI_X3.4-1968 error #4

Open
evstektrainee opened this issue Jul 27, 2023 · 2 comments
Open

A UTF-8 locale is required. Got ANSI_X3.4-1968 error #4

evstektrainee opened this issue Jul 27, 2023 · 2 comments

Comments

@evstektrainee
Copy link

hi, thank you for the video and the informative guides. theyre helping me to grow a lot. ^^

I just have an error when i try to complete the last step of google colab:
!scp -r /content/runs '/content/gdrive/My Drive/ComputerVisionDeveloper/TrainYolov8CustomDataset'

the error is this and i couldn't fix it:
165 locale_encoding = locale.getpreferredencoding()
166 if locale_encoding != _ENCODING:
--> 167 raise NotImplementedError(
168 'A UTF-8 locale is required. Got {}'.format(locale_encoding)
169 )

NotImplementedError: A UTF-8 locale is required. Got ANSI_X3.4-1968

@computervisioneng
Copy link
Owner

Does this path exist in your google drive? 'My Drive/ComputerVisionDeveloper/TrainYolov8CustomDataset'
If it doesn't, you would need to edit it to a path in your google drive.

@ricdurh
Copy link

ricdurh commented Aug 3, 2023

I'd also like to say thanks for your videos! They've been very helpful to me. As to the error above, I encountered the same issue. I replaced this:

"!scp -r /content/runs '/content/gdrive/My Drive/ComputerVisionDeveloper/TrainYolov8CustomDataset'"

with what I have below and it worked:

"import shutil

shutil.copytree('/content/runs', '/content/gdrive/My Drive/ComputerVisionDeveloper/TrainYolov8CustomDataset')"

edit: looks like I continued to run into the same error after all. I found this link that helped me resolve the issue for now.

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

No branches or pull requests

3 participants