NDS Troubleshooting
Contents:
- 500 error:Invalid tagset <pos>. Choose one of:
- automake problems
- HTML appears in templates
- Audio links do not work (opens new tab)
- gtdict language compile process errors
- String compilation failed, aborting:babel.core.UnknownLocaleError:unknown locale 'hdn'
- fab is unable to copy FSTs
- 500:"unsupported format character "n" (0x6e) at index 20"
- SVN problems
- More...
!! Troubleshooting frequent problems
500 error:Invalid tagset <pos>. Choose one of:
This means the tagset file is missing, or `pos` is not a valid category in that file.
To fix:
- Go to: .../configs/language_specific_rules/tagsets
- Check that ZZZ.tagset exists, where ZZZ is the language ISO (this may be `udm`,
- If it exists:
- edit the file and add a `pos` category with at least one entry
- edit the file and add a `pos` category with at least one entry
- If it does not exist:
- create the file, and do the above.
For more information on tagsets, see NDS Linguistic settings.
automake problems
WARNING: 'aclocal-1.13' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package:
This usually means there's a problem with the path variable, on gtdict, the correct versions of automake should be installed. Observe the
HTML appears in templates
Try switching internationalization languages and see if the problem remains: if
Audio links do not work (opens new tab)
This is a newer feature and hasn't been tested on many projects, however the
- go to language_specific_rules/templates/PROJNAME/
- look for includes.template. If this file isn't there, create it, based on
gtdict language compile process errors
Occasionally an installation problem will arise due to source updates or
Since these problems arise in a deployment situation, it is usually best to
String compilation failed, aborting:babel.core.UnknownLocaleError:unknown locale 'hdn'
There are two possible problems:
- Compile with a more specific version of this command, i.e., fab PROJNAME compile
- A locale is not installed in the project environment
In the case of the second, see the section Dat files in NDS Localisations.
fab is unable to copy FSTs
cp: cannot create regular file ‘/opt/smi/vep/bin/analyser-dict-gt-desc.xfst’: Permission denied cp: cannot create regular file ‘/opt/smi/vep/bin/generator-dict-gt-norm.xfst’: Permission denied
Cause: File permissions and owners on certain files have been overridden.
Fix:
- Run the following:
chown neahtta:neahtta /opt/smi/ISO/bin/*
Cause: The FSTs have not actually compiled.
Fix:
- Check that running make in the language directory in $GTHOME/langs/ actually works as expected.
500:"unsupported format character "n" (0x6e) at index 20"
Cause: one of the python formatted variables in the translation strings has the
%(variable_name)s
Where both the % and the s are required parts of syntax. This is confusing,
Fix:
- First: confirm that the server is running the most up-to-date versions of the
- If there is still a problem, then likely one of the translation strings is
OR:
Do a regular expression search for everything not in the correct format. In
%\((.*)\)[^s\w\s]
SVN problems
Files are missing, update is hanging, whatever. NDS uses svn as the rest of us. Try these:
svn st /home/neahtta/gtsvn/giella-core svn st /home/neahtta/gtsvn/langs svn st /home/neahtta/gtsvn/st svn st /home/neahtta/gtsvn/words
If any of them show any of the usual FST signs of being locked, lacking or in conflict,