/PsychometricStudy

Psychometric Study software

Primary LanguagePythonOtherNOASSERTION

Psychometric Study

(c) 2022-2023 Nathan Ducker - Miyazaki Municipal University 宮崎公立大学(MMU) If you use this code, please send us a message!

Installation

First install Python 3.11 or newer and VLC 3.0.18 or newer

Supported Operating Systems

  • Windows
  • MacOS
  • Linux

Automatic

pipenv install

Manual

The following packages are needed. This might administrative permissions.

python3 -m pip install xlsxwriter python-vlc PyQt5 qtawesome pyinstaller pillow playsound

Run from source

python3 app.py

How to create an executable file:

Without including VLC in the binary. Will need to have VLC installed. VLC will need to be in the path on Windows.

python -m PyInstaller app.py --name PsychometricStudy --onefile --clean --icon icon.ico --add-binary icon.ico

Including VLC in the binary. Will work on computers without VLC installed, if you are comfortable with redistributing VLC.

python -m PyInstaller --noconsole  app.py --name PsychometricStudy --onefile --additional-hooks-dir hooks --icon icon.ico --add-data="icon.ico;." --add-binary="buttonSound.mp3;." --clean

OSX:

python3 -m PyInstaller  --noconsole app.py --name PsychometricStudy --additional-hooks-dir hooks/ --icon icon.png  --add-binary="buttonSound.mp3:." --clean --osx-bundle-identifier=com.idogawa.psychometricstudy --noconfirm

brew install create-dmg
mkdir -p dist/dmg
cp -r "dist/PsychometricStudy.app" dist/dmg
rm dist/PsychometricStudy.dmg
create-dmg \
  --volname "PsychometricStudy" \
  --volicon "icon.icns" \
  --window-pos 200 120 \
  --window-size 600 300 \
  --icon-size 100 \
  --icon "PsychometricStudy.app" 175 120 \
  --hide-extension "PsychometricStudy.app" \
  --app-drop-link 425 120 \
  "dist/PsychometricStudy.dmg" \
  "dist/dmg/"

For more information see https://realpython.com/pyinstaller-python/

Further Reading on Python Libraries