Giter VIP home page Giter VIP logo

Comments (10)

Jibec avatar Jibec commented on June 4, 2024 1

well, you it's using a virtual env, you have to use source first, see an example:
https://github.com/YunoHost-Apps/funkwhale_ynh/blob/master/scripts/install#L146

from funkwhale_ynh.

llinfrance avatar llinfrance commented on June 4, 2024

Thank you for your answer ! So, I tried the same command in the virtualenv :
source virtualenv/bin/activate then
python api/manage.py import_files "/home/yunohost.multimedia/share/Music/*" --recursive --noinput
Unfortunatly, I got :

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "api/manage.py", line 16, in
django.setup()
File "/var/www/funkwhale/virtualenv/lib/python3.5/site-packages/django/init.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/var/www/funkwhale/virtualenv/lib/python3.5/site-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/var/www/funkwhale/virtualenv/lib/python3.5/site-packages/django/conf/init.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "/var/www/funkwhale/virtualenv/lib/python3.5/site-packages/django/conf/init.py", line 106, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 673, in exec_module
File "", line 222, in _call_with_frames_removed
File "/var/www/funkwhale/api/config/settings/production.py", line 14, in
from .common import * # noqa
File "/var/www/funkwhale/api/config/settings/common.py", line 44, in
FUNKWHALE_URL = env("FUNKWHALE_URL")
File "/var/www/funkwhale/virtualenv/lib/python3.5/site-packages/environ/environ.py", line 130, in call
return self.get_value(var, cast=cast, default=default, parse_default=parse_default)
File "/var/www/funkwhale/virtualenv/lib/python3.5/site-packages/environ/environ.py", line 275, in get_value
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: Set the FUNKWHALE_URL environment variable

But is it expected to not be able to stay log in without any music ? The web interface log me out each time (with correct login/password).

from funkwhale_ynh.

Jibec avatar Jibec commented on June 4, 2024

from funkwhale_ynh.

llinfrance avatar llinfrance commented on June 4, 2024

OK for one issue, one problem (I though it was somehow related...)

So, I was able to do source load_env (removing $final_path because it was not known). Moreover, I change also the line in load_env file to remove $final_path...

I was then able to import an album successfully ! It finished with some errors though :

Exception ignored in: <function WeakValueDictionary.init..remove at 0x75bee4b0>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.init..remove at 0x75bee4b0>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable

from funkwhale_ynh.

Jibec avatar Jibec commented on June 4, 2024

from funkwhale_ynh.

agateblue avatar agateblue commented on June 4, 2024

Hi @llinfrance, I'm glad you could make your import work! The File "/usr/lib/python3.5/weakref.py", line 117, in remove TypeError: 'NoneType' object is not callable you see in your console comes from a small bug in your version of Python, but this should not affect Funkwhale. You can safely ignore those warnings :)

from funkwhale_ynh.

Jibec avatar Jibec commented on June 4, 2024

I upgraded Reame in testing: 33ddcba

Please let me know if anything else is needed

from funkwhale_ynh.

llinfrance avatar llinfrance commented on June 4, 2024

Thank you guys for your answer.
I did get this :

You can say thank you to Elliot (his login is one of the issue), and close this issue.

I was able to import some music, but I still cannot log in. Did I missed something you said, or should I open a new issue ?

By the way, sorry for such a late answer... When I will be able to log in I will comment on the cli import :)

from funkwhale_ynh.

Jibec avatar Jibec commented on June 4, 2024

from funkwhale_ynh.

llinfrance avatar llinfrance commented on June 4, 2024

from funkwhale_ynh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.