Installation instructions
a/ Install or update SPPAS package
There is a unique version of the SPPAS package which does not depend on the operating system.
The package does not need elaborate installation: all you need to do is to download and copy it from the website to somewhere on your computer. The package is compressed and zipped, so you will have to decompress and unpack it once you've got it, and... that's it.
About the location of the uncompressed package
You have to choose a location, somewhere in your User directory. Actually, SPPAS offers customizable solutions; then each user must have his/her own version of SPPAS, and must have 'write' permission on the location.
About the name of the uncompressed package
- Do not use the name "sppas". You can choose the name you want (like SPPAS, SPPAS-4, SPPAS-Love-Forever, ...) but "sppas" is the name of the source code folder; it can't be also the name of the software folder.
- Preferably use only US-ASCII characters — i.e., a-z and A-Z, in both the path and the filename.
- Preferably use a name without any whitespace in both the path and the filename.
b/ Install external programs
This is a two-stage process:
- install the required ones;
- launch setup to install the optional ones.
1. Required external programs
Under Windows
Launch the Microsoft Store. Search the Microsoft Store app for “Python 3”. Select the App with the name Python 3.9, or 3.10, or 3.11, or 3.12. Ensure that the app you select is published by the Python Software Foundation.
Under MacOS
- Install Homebrew.
- Python 3.9 is already installed. However, if you want to install a more
recent version, open the Terminal application and launch the command:
brew install python
Under Linux
Check if Python >= 3.7, then use either apt/yum/brew or any other tool to install the packages:
- python3
- python3-venv
- python3-pip
- gstreamer (optional)
- IMPORTANT! Use Python... Do NOT use Anaconda: it will crash.
- For a full experience of SPPAS, choose Python 3.10 - 3.12
- Installing one and ONLY ONE version of Python is highly recommended!
2. Enable features: setup
External programs have to be installed on your operating system to enable some features of SPPAS. You must do it every time you install a new package of SPPAS, or/and if you change the version of Python on your computer.
The SPPAS setup was tested with Firefox only. Using another web-browser is at your own risk.
Under Windows
Solution 1: Let's SPPAS installing the programs
Double-click the `setup.bat` file. After a few seconds, it will open a new tab in your favorite web-browser - hopefully Firefox. Then, follow instructions.
When it's done, close the web-browser tab.
Solution 2: Install the programs manually
- Launch either 'cmd.exe' or the 'PowerShell' application or the 'PowerShell with Admin rights' application
- Change location to the unzipped SPPAS package
- Launch the command:
python.exe -m venv .sppaspyenv~
- Launch the command:
.sppaspyenv~\Scripts\python.exe sppas\bin\preinstall.py
Then choose the features to be installed.
Under MacOS or Linux
Solution 1: Let's SPPAS installing the programs
Double-click the `setup.command` file. After a few seconds, it will open a new tab in your favorite web-browser - hopefully Firefox. The administrator password may be asked in the terminal application.
Under Linux, this procedure is supported if either "brew" or "dpkg/apt" is available.
Solution 2: Install the programs manually
- Open a Terminal application
- Change location to the SPPAS package
- Launch the command:
python3 -m venv .sppaspyenv~
- Launch the command:
.sppaspyenv~/bin/python sppas/bin/preinstall.py
Then choose the features to be installed.
Solution 3: Full manual procedure
Perform steps 1 to 3 of Solution 2.
Below are most of the programs and Python packages to be installed either in your OS, or
in the python virtual environment, with pypi.
Take a look at the file sppas/etc/features.ini
for the full list and versions.
- REQUIRED: the pypi packages of
AudiooPy,
WhakerPy, and
ClammingPy:
.sppaspyenv~/bin/python -m pip install AudiooPy WhakerPy ClammingPy
- OPTIONAL: the pypi package of WxPython
allows interacting with SPPAS with the Graphical User Interface - GUI:
.sppaspyenv~/bin/python -m pip install wxpython
- OPTIONAL: the pypi packages of
OpenCV and of
Mediapipe
to enable image and video processing:
.sppaspyenv~/bin/python -m pip install opencv-contrib-python-headless
.sppaspyenv~/bin/python -m pip install opencv-contrib-python
.sppaspyenv~/bin/python -m pip install mediapipe
- OPTIONAL: the pypi package PyAudio"
to allow playing sounds in the 'Edit' page of the GUI:
.sppaspyenv~/bin/python -m pip install pyaudio
- OPTIONAL: the CSR Engine Julius, is used by the automatic annotation 'Alignment'. The HVite command of HTK 3.4.1 can also be used by the automatic annotation 'Alignment' but there are license restrictions.
F.A.Q.
What can happen with a more recent version of Python?
- Python 3.12 is supported by SPPAS from version 4.17.
- Python 3.11 is supported by SPPAS from version 4.12. If you need a previous version of SPPAS, you must install a previous version of Python!
- Python 3.10 is supported by SPPAS from version 4.7. If you need a previous version of SPPAS, you must install a previous version of Python!
What can happen with an older version of Python?
- Python 2.7.x is no longer supported. However, a few annotations command-line can still be used.
- Most of the features of SPPAS require external programs that are not available or deprecated for Python before 3.10.
What is happening if I change the Python version on my computer?
SPPAS can work with various versions of Python. If you need to update Python on your system, you also have to delete the folder ".sppaspyenv~", which is located at the root of the SPPAS package. Then, re-launch the setup.
Contact Python developers or see the Python FAQ for any help with Python installation.
External programs installation ISSUES
Installation error of Julius under Windows
If you installed the programs without the administration rights, Julius failed to be installed. You have then to move the file "julius.exe" to C:\\WINDOWS, or anywhere else Windows can find it.
ISSUE for macOS 12+
The new gift of Apple: Under macOS 12, it seems that SPPAS is no longer allowed to launch "julius" to perform alignment. The Gatekeeper is overly zealous in preventing a third party app from being used in macOS.
In that case, turn off Gatekeeper through the System Preferences or launch Terminal if you haven't done so yet (/Applications/Utilities/) and issue the following command to turn off Gatekeeper: >sudo spctl --master-disable
ISSUE for Windows 10 + Python 3 + wxPython 4 + non-romanized languages
There's currently an issue - described here, under Some Windows OS with the versions Python 3.8+ and WxPython 4.1.0. It concerns only languages with a non-Romanized writing system. We are waiting that the developers of Python/wxPython solve the problem. I recommend to Windows users of non-romanized languages to choose an earlier version of Python (3.6 or 3.7).
Notice that it is not an issue under Linux and macOS; because the problem comes from Windows OS itself.