Problem with filename with accented characters in the pool and sub-folder in pool question
Hi all,
I am working with openSesame on french Phonetic problematic (for example phonetic differences between e and é and è)
I am getting problems with filenames with accented characters. (and also with ROI names, but I can handle this)
Of course I could allways try to map the accented characters with non accented characters (è --> ei for example) but this is not so nice.
Do you know any clue to avoid having this kind of problems (defining characterSet somewhere ) ?
And another question : is there anyway to work with subfolders (say e_ei) in pool ? I get the files in the sub-folders and work with these files correctly but when I try to save the project, OpenSesame raises the following error : Erreur: [Errno 13] Permission denied: u'c:\users\cleroux\appdata\local\temp\tmpmohfdz.opensesame_pool\e_ei'
Tanks again for your help !
Comments
By working a little more on that, this is much more link with (use of print for debugging and understanding)
print items['pour_les_phonemes_du_son_choisi'].dm
I tried to use something like encode('utf-8') .. somewhere but I do not find how to !!!
Any clue ?
After some trials : my main problem is that the name of the files I want to use for Sampler contains accented characters (like è).
No error ! But no sound is played (in fact, this is wrong .. something like a scratch is played !)
Any clue ?
Hi,
You're naming a lot of different things here, and it's not entirely clear to me what the actual problem is. Shall we give this a retry: What exactly are you trying to do? And in what sense doesn't this work as expected?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Ok. I agree with you that I was trying new things after better understanding ! So this is a little bit confusing !
This is what I am trying to do:
This is the content of the experiment
I have in the pool_folder, sub-folders for each "case" for my experiment. Say e_è, e_é, u_ou. In each folder, example of ogg files (say meurt.ogg, mère.ogg for folder e_è)
The experiment goes like that :
1st the student chooses the phonetic_case they want to work on (say e_è)
here is the status
going through subfolders to populate the loop data : OK
play sound with file without accented character : OK
play sound with file with accented character : not OK
And there is a problem when trying to save the experiment
--> Permission denied: u'c:\users\cleroux\appdata\local\temp\tmpmohfdz.opensesame_pool\e_è'
--> this problem happens with sub-folder without accented character, too !
Hoping it is more precise !
Tnaks a lot
Hi,
Ah ok, I see. The problem is probably that you're trying to have folders in the file pool, which is not supported. So you can either use a flat structure, without subfolders in the file pool. Or you can place the subfolders in the experiment folder, instead of in the file pool.
Hope this helps!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
This is what I did and it works fine ... just need some normalization with names. Thanks
But what about playing sound for files with accented characters ? Any clue ?
Thanks again