@ntarocco In my application using Invenio v3.3, I am trying to add/change styles. In which file should i add the changes in virtualenv and run any command (like
invenio webpack buildall
)? I tried adding them tostyles.scss
in virtualenv. They don't get picked up. Thank you.
i have the same issue when i deploy the app with the docker-compose.full.yml, i have modified the css in my_site/theme/assets/scss/my_site/theme.scss
, added some js files in my_site/theme/assets/js/my_site/
and finally added images in my_site/theme/static/images
but none of this are found
@osoo_gitlab Invenio comes with an object store API, so filenames are in fact “keys” that can contain slashes etc, that you could use to build a file hierarchy
:point_up: 7. Juli 2020 17:35
Dear community, do we have already some module to represent a file hierarchy in GUI (e.g. like in Dataverse - http://guides.dataverse.org/en/latest/user/dataset-management.html#file-path)? Is such implementation planned in InvenioRDM? Currently I can not find some real Invenio Instance, which has a file hierarchy in GUI (folders, subfolders). Many thanks in advance. It is an important feature for preservation of digital legacy materials in archives.
app_loaded
(at https://github.com/inveniosoftware/invenio-base/blob/master/invenio_base/app.py#L123) and for my use-case (modifying RECORDS_REST_ENDPOINTS dynamically after extensions are loaded but before loading blueprints) it would be great to have extensions_loaded
and maybe even config_loaded
. If it makes sense I'd create an issue and pull request. thanks.
Hi, when a SVG file is uploaded with invenio-files-rest
, the mime type is well guessed:
{
"links": {
"self": "https://localhost:5000/api/files/2615f001-65a8-4ece-85da-87d120bcc7f7/logo.svg",
"version": "https://localhost:5000/api/files/2615f001-65a8-4ece-85da-87d120bcc7f7/logo.svg?versionId=8e455c6c-cb34-444a-9fed-21abd3cca4af",
"uploads": "https://localhost:5000/api/files/2615f001-65a8-4ece-85da-87d120bcc7f7/logo.svg?uploads"
},
"is_head": true,
"delete_marker": false,
"version_id": "8e455c6c-cb34-444a-9fed-21abd3cca4af",
"created": "2020-09-01T09:29:22.312312+00:00",
"tags": {},
"mimetype": "image/svg+xml",
"checksum": "md5:8fef00abde7378bed4e9de313fe7cfe3",
"updated": "2020-09-01T09:29:22.327441+00:00",
"key": "logo.svg",
"size": 1294
}
But when trying to get the file, the mime type is text/plain
. I think it's because image/svg+xml
is not present in the MIMETYPE_WHITELIST
list. I would be great if this whitelist could be configured per project.
MIMETYPE_WHITELIST
variable if you need
https://localhost:5000/api/login
but I go an error that suggest that I have a problem with Flask-Login which defined /api/login/
and invenio-accounts that defines /api/login
. Here is the error: flask.debughelpers.FormDataRoutingRedirect: b'A request was sent to this URL (https://localhost:5000/api/login) but a redirect was issued automatically by the routing system to "https://localhost:5000/api/login/". Any idea?
@jma the variable is used to register or not the flask-security
blueprints. In the latest version of invenio-accounts
we integrated the rest views from invenio-accounts-rest
and we register all the endpoints that flask-security
was registering in the InvenioAccountsREST
extension. That said, when setting the ACCOUNTS_REGISTER_BLUEPRINT
variable, initially controlling the registration of the flask-security blueprints, it works fine for the UI application e.g /login
, /logout
etc. but it conflicts with the REST application i.e /api/login
, /api/logout
. The problem is that it tries to register twice the same endpoints and thus giving you the error you saw...
In your application do you need to access the authentication views i.e login
, logout
etc through jinja or you have an SPA making requests to the API application? The scope of the REST application is to give back a REST response instead of rendering the corresponding templates e.g for the login page...
"/root/.local/share/virtualenvs/invenio3-gVyQboDv/lib/python3.6/site-packages/pkg_resources/init.py", line 2740, in requires
) from e
pkg_resources.UnknownExtra: nbconvert 6.0.7 has no such extra feature 'execute'
I do not understand the error. Could anybody help ? Thx.
nbconvert = {version = ">=5.6.1,<6.0.0", extras = ["execute"]}
this has been done in the master branch of invenio-previewer
but not yet in the release: https://github.com/inveniosoftware/invenio-previewer/blob/340121b967f3bc8e942ee947bbce7fd332ba93d9/setup.py#L58
Hi. I am trying to connect to use Amazon Elasticsearch Service with Invenio. As per the currrent implementation, I configure the Elasticsearch params -as shown in this tutorial - in SEARCH_ELASTIC_HOSTS
. But the problem with this is that the session_token
passed in the AWS4Auth
object expires after a while which would cause the subsequent requests to fail.
Since the Elasticsearch parameters are configured during app initialization, there seems to be no way to refresh the token and/or re-initialize the ES object with a new token. Is there any way to handle this issue?
My colleague sent me how he is trying the installation:
Hi all! I don't know if its's the right place (I hope). I currently trying to install an invenio-rdm instance on one of our linux servers. I could install the invenio-cli, init the rdm project, and even install it (with --pre and --development), but after whether I try run
, services
or containers
I get an error, saying AttributeError: 'NoneType' object has no attribute 'group'
. Im running on python 3.6.9 with pip 20.3.1, and invenio-cli 0.19.4 . Can someone help me, what have I missed? Thank you!
bibindex --repair
. (Usually, bibindex
lives in /opt/invenio/bin
) This will add a job to your bibsched
. In case this one is on halt (manual mode) you may run it from there using R
short cut. (Open the scheduler by just calling it via bibsched
. Mind that you usually need to be the same user as the invenio user to do all this stuff, so sudo
or su
will be required, depending on your setup.)