Bug: ModuleNotFoundError: No module named 'tomli' in aura-user.add
ModuleNotFoundError: No module named 'tomli' in aura-user.add
When using the Administration Guide to set-up Deployment Preparations
, there was an interesting error message ModuleNotFoundError: No module named 'tomli'
.
Steps to Reproduce
- Cloned the aura repository to the server to deploy AURA Web at. Used
/opt/aura
as home for the AURA installation.
git clone https://gitlab.servus.at/aura/aura.git /opt/aura
- Moved to that directory and tried to create the aura user via:
make aura-user.add
Expected Result
The directory under /opt/aura should have been then be owned by aura:aura.
Actual Result
It created the aura user, but there was some error, which lead to an Interrupt in the Makefile. Had to run it twice.
Logs & configuration
root@phantomias:/opt/aura# make aura-user.add
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'tomli'
id: '2872': no such user
/bin/sh: 1: [: =: unexpected operator
New password:
Retype new password:
passwd: password updated successfully
make: *** [Makefile:47: aura-user.add] Interrupt
root@phantomias:/opt/aura# make aura-user.add
Traceback (most recent call last):
File "<string>";, line 1, in <module>;
ModuleNotFoundError: No module named 'tomli'
The user aura (2872:2872) already exists.
sudo chown -R "2872":"2872"; "/opt/aura"
Successfully created user 'aura' and now '/opt/aura'feels like home.
Environment
Installed on a completely new server.
Edited by Martina Müller