Funkwhale : ajout des dossiers yunohost.multimedia dans funkwhale / add yunohost.multimedia in funkwhale



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/ import_files "/home/yunohost.multimedia/share/Music/*" --recursive --noinput

But I have the following error

Traceback (most recent call last):
  File "api/", 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.

J’ai le même problème que toi, j’en suis un petit peu plus loin:
Pour activer le virtualenv, je fais source ./virtualenv/bin/activate, puis source load_env
Cependant, le script d’import plante quand même à cause de certaines variables qui ne sont pas définies (FUNKWHALE_URL, DJANGO_ALLOWED_HOSTS, peut-être plus)

Traceback (most recent call last):
    File "/var/www/funkwhale/virtualenv/lib/python3.5/site-packages/environ/", line 273, in get_value
    value = self.ENVIRON[var]
    File "/usr/lib/python3.5/", line 725, in __getitem__
    raise KeyError(key) from None

Any news about this ?
Or any advice on how to add a music folder to Funkwhale ?

ok here is how i did it

make a simlink of your nextcloud music folder into funkwhale import folder
ln -s /home/yunohost.mutlimedia/<username>/Music /var/www/funkwhale/import/<folder_name>

then before running the import_files command, i think that there is a bug in the install script :
in /var/www/funkwhale/code/load_env replace ${final_path} by /var/www/funckwhale

once done we can load the virtualenv and import our files

cd /var/www/funkwhale
source code/virtualenv/bin/activate
source code/load_env
python code/api/ import_files <your library id> /var/funkwhale/import/<folder_name> --noinput --in-place --recursive

thank you for spotting this bug, this is now fixed in the testing branch, should be in master (and available to everyone) in the coming days.

Please open issues in
I often missed threads here.

Hi there,
i’m trying to set up Funkwhale to access the Yunohost shared music library, but cannot get through as all posts seem quite old.
So far i’ve tried to reload the script ‘’ but could not figure whether I add to give writting capacity to Funkwhale (nor how to) as explained here
And then I attempted to symlink the shared music to funkwhale/import folder and then run the import_files script as explained above but with a command.error return :

CommandError: Importing in-place only works if importing from /var/www/funkwhale/import (MUSIC_DIRECTORY_PATH), as this directoryneeds to be accessible by the webserver.Culprit: /var/funkwhale/import

I keep for the moment that last solution, but really feel like not really knowing what should work in all those posts.
Any help / support would be much appreciated.