Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update re3data plugin for RDMO 1.7.0 and higher #1

Open
yvgrossmann opened this issue Mar 8, 2022 · 2 comments
Open

Update re3data plugin for RDMO 1.7.0 and higher #1

yvgrossmann opened this issue Mar 8, 2022 · 2 comments

Comments

@yvgrossmann
Copy link

Unfortunately the re3data plugin is not working anymore on RDMO 1.7.0 or higher. Because this plugin to query is quite a nice feature, it would be nice, if this can be adapted to the newer RDMO versions.

Our error report:

mod_wsgi (pid=3248599): Failed to exec Python script file '/config/wsgi.py'.
mod_wsgi (pid=3248599): Exception occurred processing WSGI script '/config/wsgi.py'.
Traceback (most recent call last):
File "/config/wsgi.py", line 7, in
application = get_wsgi_application()
File "/lib/python3.7/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
django.setup(set_prefix=False)
File "/lib/python3.7/site-packages/django/init.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/lib/python3.7/site-packages/django/conf/init.py", line 82, in
getattr
self._setup(name)
File "/lib/python3.7/site-packages/django/conf/init.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/lib/python3.7/site-packages/django/conf/init.py", line 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/config/settings/init.py", line 20, in from .local import *
File "/config/settings/local.py", line 72, in
('re3data', ('Repositories from re3data'), 'rdmo_re3data.Re3DataProvider')
NameError: name '
' is not defined

@jochenklar
Copy link
Member

Hi @yvgrossmann, I found and fixed one problem, but it was not exactly the error given here. The line in local.py changed to

OPTIONSET_PROVIDERS = [
    ('re3data', ('Repositories from re3data'), 'rdmo_re3data.providers.Re3DataProvider')
]

also from django.utils.translation import gettext_lazy as _ might be missing at the top of the file.

@yvgrossmann
Copy link
Author

great! Thanks a lot @jochenklar 👌 we'll have a look, if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants