Closed TelDragon closed 3 years ago
I did this.
/opt/tinypilot-updater/geerlingguy.nginx/tasks/main.yml
#- name: Ensure nginx service is running as configured.
# service:
# name: nginx
# state: "{{ nginx_service_state }}"
# enabled: "{{ nginx_service_enabled }}"
TASK [mtlynch.tinypilot : create TinyPilot virtualenv] ********************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'pkg_resources'
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (setuptools) on orangepizero's Python /usr/bin/python3. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
chenk
root@orangepizero:~# . /opt/tinypilot-updater/venv/bin/activate
(venv) root@orangepizero:~# pip install pkg_resources
Requirement already satisfied: pkg_resources in /opt/tinypilot-updater/venv/lib/python3.7/site-packages (0.0.0)
(venv) root@orangepizero:~# pip install setuptools
Requirement already satisfied: setuptools in /opt/tinypilot-updater/venv/lib/python3.7/site-packages (40.8.0)
/opt/tinypilot-updater/mtlynch.tinypilot/tasks/main.yml
- name: save absolute path to python3
set_fact:
python3_abs_path: "{{ realpath_python3.stdout }}"
#- name: create TinyPilot virtualenv
# pip:
# virtualenv: "{{ tinypilot_dir }}/venv"
# virtualenv_command: "{{ python3_abs_path }} -m venv venv"
# requirements: "{{ tinypilot_dir }}/requirements.txt"
notify:
- restart TinyPilot service
/opt/tinypilot# python3 -m venv venv
root@orangepizero:/opt/tinypilot# . venv/bin/activate
(venv) root@orangepizero:/opt/tinypilot# pip install -r requirements.txt
that
+ echo '[defaults]
roles_path = /opt/tinypilot-updater
interpreter_python = /usr/bin/python3
'
+ TINYPILOT_ROLE_NAME=mtlynch.tinypilot
+ '[' -d mtlynch.tinypilot ']'
+ pushd mtlynch.tinypilot
/opt/tinypilot-updater/mtlynch.tinypilot /opt/tinypilot-updater ~
+ git pull origin master
From https://github.com/mtlynch/ansible-role-tinypilot
* branch master -> FETCH_HEAD
Already up to date.
+ popd
/opt/tinypilot-updater ~
+ ansible-galaxy install --role-file mtlynch.tinypilot/requirements.yml
What puzzles me is whether the ustreamer service lacks parameters? Should I edit it myself? E.g. /dev/video1
--device /dev/video1
The default parameters are /dev/video
/lib/systemd/system/ustreamer.service
[Service]
Type=simple
User=ustreamer
WorkingDirectory=/opt/ustreamer
ExecStart=/opt/ustreamer/ustreamer \
--host 127.0.0.1 \
--port 8001 \
--encoder hw \
--format jpeg \
--desired-fps 30 \
--resolution 1920x1080 \
--persistent \
Restart=always
[Install]
WantedBy=multi-user.target
Or are there selectable items on the WEB page?
run quick-install
chenk nginx status ....