computervisioneng / train-yolov8-custom-dataset-step-by-step-guide

GNU Affero General Public License v3.0
257 stars 112 forks source link

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

Open evstektrainee opened 1 year ago

evstektrainee commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.