Skip to content

Language Archiving Technology

Sections
Personal tools
You are here: Home » Tools » Elan » ELAN Forum » Opening file or selection in Praat

Opening file or selection in Praat

Up one level

Opening file or selection in Praat

Posted by vaaseirik at 2009-07-27 10:27  

Hello,<br><br>When I try to open a selection or a whole file in Praat, the only thing that pops up is this warning: "The Praat script could not be created". Nothing else happens.<br><br>I have of course Praat installed on my computer, in the same folder as sendpraat.exe.<br><br>I run the 32-bit version of Vista Enterprise Service Pack 2.<br><br><br>Anders<br>

Re: Opening file or selection in Praat

Posted by hasloe at 2009-07-27 11:56  

This error message can be generated if any of the following conditions occurs:
- ELAN cannot create or access its own folder in the user home directory. On Vista that should be something like <user>\.elan_data
- if this folder is there ELAN tries to create a Praat script file in that folder: openpraat-v2.praat
- if both folder and file exist it is used (and can be found), unless the absolute path to the file (e.g.
C:\Users\user name\.elan_data\openpraat-v2.praat)
contains a space character. In that case ELAN tries to create and use the default "temp" directory for the Praat script (and this could fail).

Maybe you can check on your system whether there is a .elan_data folder and a openpraat-v2.praat file?

-Han

Re: Re: Opening file or selection in Praat

Posted by vaaseirik at 2009-07-27 13:10  

"Maybe you can check on your system whether there is a .elan_data folder and a openpraat-v2.praat file?"


Hello again,

Actually, I can't find neither the folder (.elan_data) nor the file (openpraat-v2.praat)!


Anders

Re: Re: Re: Opening file or selection in Praat

Posted by hasloe at 2009-08-03 15:44  

The user home location is usually something like C:\Users\<login_name>. In that directory the .elan_data folder is created (if there is no problem with permissions). If this folder cannot be created and accessed, launching Praat won't work.
I have no further clues. Does the user home directory exist at its expected location and is there anything stored there by other applications?

-Han

Re: Re: Re: Re: Opening file or selection in Praat

Posted by vaaseirik at 2009-08-04 15:04  

Thank you again,

Yes, the home directory exists at the expected location (At my computer it is C:\Users\anders_loc). By the way, the name of the directory is 'anders_loc', while the username is 'Anders'.

And yes, other programs--like Praat itself, and Cubase--have created folders here.

I don't know if this was helpful ...

Anders

Re: Re: Re: Re: Re: Opening file or selection in Praat

Posted by hasloe at 2009-08-06 12:13  

It is helpful; everything seems to be as expected. So, I have no explanation for ELAN not being able to store information there. A last possible way of getting some information is to move the file "elanlog.properties" from ELAN's install directory to somewhere else and then launch ELAN from a Command window using one of the .bat files in the same directory. All logging and error messages should be visible in the command window. If you try to open a selection in Praat there might be error messages in the window.
Currently the location of the user home directory according to the Java environment is not logged, I'll add that in the next version.

-han

Re: Re: Re: Re: Re: Re: Opening file or selection in Praat

Posted by vaaseirik at 2009-08-06 16:09  

Hello again,

I did as you asked me to: Opened ELAN from a command window after removing the specific file.

Some information pops up in the window as ELAN opens, and even more appears as I open an eaf-file.

But when I select a part of the sound file and click 'Open Selection in Praat', nothing happens in the command window.

I only get the usual pop-up warning: "The Praat Script could not be created".

Strange?

Re: Re: Re: Re: Re: Re: Re: Opening file or selection in Praat

Posted by hasloe at 2009-08-10 10:23  

That is a bit strange, yes. If the folder ".elan_data" in the user's home directory is not found (and you already indicated that the folder does not exist), the "Open Selection in Praat" action tries to create it. If this fails, an error message should be logged, according to the code. If neither the folder is created nor an error logged, I'm completely out of clues...

-Han

 

Powered by Plone

This site conforms to the following standards: