Guides for Testing and Debugging¶
Guides for Testing and Debugging
Overview: This document offers platform-specific instructions for developers working with PASTA-ELN on Windows and Linux. It details how to run the application, manage installation paths, perform reinstallations, create installers on Windows, and set up a Linux development environment using virtual environments.
Notes for Windows Developers¶
How to start Pasta ELN¶
Anaconda
python -m pasta_eln.gui
DOES NOT WORK "pastaELN"
Installation location¶
Default installation
C:Users...AppDataLocalProgramsPythonPython311Scripts
C:Users...AppDataLocalProgramsPythonPython311Libsite-packagespasta_eln
Anaconda
C:Users...anaconda3envs...Scripts>
C:Users...anaconda3envs...Libsite-packagespasta_eln
Reinstall / retry windows installation¶
remove directories
C:Users....AppDataLocalProgramsPython [If deleted python]
Pasta-Folder in Documents
remove Users....pastaELN.json
remove shortcut on Windows desktop
python -m pasta_eln.gui
Create an installer using pyInstaller¶
In terminal
cd DocumentsPastaELN_src: all files in pasta-eln
pyinstaller pastaELN.py -F
File is in /dist/ folder
Notes for Linux Developers¶
Be sure to have an additional backup of your previous ~/.pastaELN.json
Installation¶
python -m venv venvPastaTest
. venvPastaTest/bin/activate
mv ~/.pastaELN.json ~/.pastaELN.backup.json
pip install git+https://github.com/PASTA-ELN/pasta-eln@sb_sqlite
Test (you can edit the code in venvPastaTest/lib/python3.12/site-packages/pasta_eln):
python -m pasta_eln.gui