Hey,
I’m trying to add music that I have in my nextcloud. She are in the follwing folder : /home/yunohost.multimedia/share/Music/
So, I execute the following commands
cd /var/www/funkwhale
python api/manage.py import_files "/home/yunohost.multimedia/share/Music/*" --recursive --noinput
But I have the following error
Traceback (most recent call last):
File "api/manage.py", line 2, in <module>
import django
ImportError: No module named django
I do not understand …
I saw that there is venv` in the install script, but
# virtualenv /var/www/funkwhale/virtualenv
-bash: virtualenv: command not found
…
Did I miss something ?
EDIT : f**, You have to execute the command as a user funkwhale
?
if so, I do not see how to do it, I do not understand very well virtualenv python …
(virtualenv, virtualenvwrapper, pew, … )
And it’s python or python3 ?? (python3 -m venv "$final_path/virtualenv"
)
En bref, j’essaie de rajouter la musique que j’ai dans le dossier /home/yunohost.multimedia/share/Music/
, sauf que quand j’exécute la commande que j’ai trouvée dans la doc (grâce à une issue sur github), j’ai un message d’erreur m’indiquant que django n’est pas installé …
Je me doute que cela doit être lié à une histoire d’environnement virtuel, mais je ne maitrise pas vraiment bien cet aspect de la programmation …
(virtualenv, virtualenvwrapper, pew, … je connais la théorie mais pas plus ! )
PS : si problème avec mon anglais, je peux entièrement tout traduire.