mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 15:22:10 +00:00
a8797df45c
Intermediate commits (oldest → newest): - Hit list queue for radio - fix - Documentation of conjurer_librarian - Reformatting of conjurer_librarian - Documentation of conjurer_musician - Formatting of conjurer_musician - Documentation of radio_conjurer.liq - Merge branch 'main' of https://github.com/migatu/conjurer - Removal from tracking - Fixing librarian result (#6) - Potential bugfix for some lazycoding in spotipy... Another one. fuck it - Music tunneling (#7) - Even more logging in spotify download - test requests - Fine tuning - Optimization bug fix #1 - Fix crossfade - Crossfadeing ctnd - Fix - Starting work on librarian headless mode
34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# This script sets up a virtual environment for the Conjurer Librarian service and installs the required dependencies.
|
|
|
|
|
|
# Create a virtual environment at /home/pi/Conjurer_librarian/env
|
|
python3 -m venv /home/pi/Conjurer_librarian/env
|
|
|
|
# Copy the Conjurer Librarian Python script to the appropriate directory
|
|
cp /home/pi/conjurer/conjurer_librarian/conjurer_librarian.py ./Conjurer_librarian/
|
|
|
|
# Copy the requirements file to the appropriate directory
|
|
cp /home/pi/conjurer/conjurer_librarian/requirements_librarian.txt ./Conjurer_librarian/
|
|
|
|
# Change directory to /home/pi/Conjurer_librarian
|
|
cd /home/pi/Conjurer_librarian
|
|
|
|
touch /home/pi/Conjurer/rr_results.json
|
|
touch /home/pi/Conjurer/cr_results.json
|
|
touch /home/pi/Conjurer/s_results.json
|
|
touch /home/pi/Conjurer/rr_results.json
|
|
touch /home/pi/Conjurer/not_in_db.json
|
|
|
|
# Activate the virtual environment
|
|
source /home/pi/Conjurer_librarian/env/bin/activate
|
|
|
|
# Upgrade pip
|
|
./env/bin/python3 -m pip install --upgrade pip
|
|
|
|
# Install the required dependencies
|
|
./env/bin/python3 -m pip install -r requirements_librarian.txt
|
|
|
|
# Deactivate the virtual environment
|
|
deactivate
|