Here is the error that the user has on their machine and happens when 
trying to setup a data container for the path. The reason I am confused 
about this is because the path exists and was found when I walked the users 
dir path...

*FileNotFoundError: [WinError 2] The system cannot find the file specified: 
'G:/De sortat 2020 apr-dec/06 - brĂ¼c - Second Live.flac'*

On Sunday, 24 January 2021 at 15:38:01 UTC+1 Benjam901 wrote:

> Hello community,
>
> I am having some trouble with my project inside of the windows build, this 
> has happened twice now with 2 separate users so it needs to be addressed. 
> The thing is, I find this very weird...
>
> The user inputs a directory they wish to iterate, and I use good old 
> os.walk, replace backslashes with forward and then I normalize the path in 
> order to make sure the sql database is fine with displaying the special 
> chars, which I think might be the cause of my problems: *normalize('NFC', 
> file_path)*
>
> Mac has 0 issues with this but Windows is another story.
>
> Is there a fool proof way to encode characters for both platforms that I 
> am missing?
>
> Here is the gist of the simple function that gathers the paths:
> https://gist.github.com/a626215d95f1b292e66b388be3c1eb2b
>
> Cheers,
>
> Ben
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/f3866246-3f0d-4d09-bcf3-6966610fc3dfn%40googlegroups.com.

Reply via email to