Comments (10)
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.
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.
from funkwhale_ynh.
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.
from funkwhale_ynh.
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.
I upgraded Reame in testing: 33ddcba
Please let me know if anything else is needed
from funkwhale_ynh.
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.
from funkwhale_ynh.
from funkwhale_ynh.
Related Issues (20)
- Warning in diagnosis HOT 2
- Upgrade/install fail on arm architecture HOT 13
- AttributeError: 'AnonymousUser' object has no attribute 'get_channels_groups' HOT 1
- Need help with reverse proxying Funkwhale since it needs its own subdomain instead of subpath HOT 1
- Installation fails HOT 1
- Sharing Link results in HTML Error 405 HOT 1
- Peer authentication failed for user "funkwhale" then e_sendauth: no password supplied HOT 1
- pip version in Yunohost 11 HOT 3
- funkwhale-beat doesn't start HOT 27
- `funkwhale-server` times out on startup HOT 2
- Can't register new user HOT 4
- Installation Error (RPi 4) HOT 4
- Change of maintainer HOT 1
- YunoHost documentation link for this app link produces a strange HTTP error HOT 4
- WebSocket connection refused with 403 after update to 1.3.0 HOT 8
- "The track cannot be loaded" after upgrade to 1.3.0 HOT 47
- android app does not connect to instance HOT 2
- Fresh install fails due mismatching checksum HOT 1
- Service funkwhale-beat failed HOT 1
- gunicorn gives error messages while loading django admin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from funkwhale_ynh.