These are chat archives for inveniosoftware/invenio

4th
Apr 2016
Jacopo Notarstefano
@jacquerie
Apr 04 2016 07:57
Hey everyone. I’m having trouble finding where the API app is created. Any pointers?
Samuele Kaplun
@kaplun
Apr 04 2016 08:03
Jacopo Notarstefano
@jacquerie
Apr 04 2016 08:04
Thanks a lot!
user131385
@user131385
Apr 04 2016 10:35
hello, when I run the populate_instance.sh I get the following error:

Usage: invenio3 records create [OPTIONS] [SOURCE]

Error: Invalid value: Unknown minter oaiid. Please use one of recid.

Any idea?
Jiri Kuncar
@jirikuncar
Apr 04 2016 10:38
please make sure that you have latest invenio-records installed in your docker.
user131385
@user131385
Apr 04 2016 10:40
:/ how I check that? (I have installed everything on localhost - I used the detailed installation guide)
Jiri Kuncar
@jirikuncar
Apr 04 2016 10:42
try pip install --upgrade git+git://.../invenio-records#egg=invenio-records
I forgot -e
user131385
@user131385
Apr 04 2016 10:54
pip install --upgrade -e git+git://.../invenio-records#egg=invenio-records returns:
"Obtaining invenio-records from git+git://.../invenio-records#egg=invenio-records
Cloning git://.../invenio-records to ./src/invenio-records
fatal: unable to connect to ...:
...: Name or service not known"
What if I mkdir the "inverio-records" and git pull from github?
Lars Holm Nielsen
@lnielsen
Apr 04 2016 11:01
You have to fill in the dots in the command
pip install —upgrade -e git+https://github.com/inveniosoftware/invenio-records.git#egg=invenio-records
user131385
@user131385
Apr 04 2016 12:25
I started from scratch and now I get this error when I run ./scripts/create-instance.sh:
Running setup.py (path:/home/ubuntu14/.virtualenvs/invenio3/src/invenio-pidstore/setup.py) egg_info for package invenio-pidstore
error in invenio-pidstore setup command: Invalid environment marker: python_version<"3.4"
so I can't proceed to the next SH script. I use python 2.7, I will update to the latest version and I will try again :worried:
Leonardo Rossi
@hachreak
Apr 04 2016 12:28
@user131385 the error come from pip I think... try to run pip install --upgrade pip setuptools py
user131385
@user131385
Apr 04 2016 12:29
Yes you are right it has nothing to do with Python's version...
user131385
@user131385
Apr 04 2016 12:44
I did the pip upgrade and I used the --devel argument. Now the error is: OSError: [Errno 2] No such file or directory
But it does not say which file/dir is missing.
it stopped at "Building bundle: gen/search.%(version)s.css"
Leonardo Rossi
@hachreak
Apr 04 2016 12:47
try find / -name "search.*.css" ls -al '{}' \;
user131385
@user131385
Apr 04 2016 12:52
I used "find . -name search.*.css" while in root directory. Nothing found...
Leonardo Rossi
@hachreak
Apr 04 2016 12:53
try to run
${INVENIO_WEB_INSTANCE} collect -v
${INVENIO_WEB_INSTANCE} assets build
user131385
@user131385
Apr 04 2016 12:56
In both of the cases:
invenio123: command not found
Leonardo Rossi
@hachreak
Apr 04 2016 12:57
invenio3 doesn't exist?
user131385
@user131385
Apr 04 2016 12:58
I 'rm' the dir from .'virtualenvs' otherwise it does not allow me to re-run the scripts...
... and I ran ./create-instance (I changed the .inveriorc)
Samuele Kaplun
@kaplun
Apr 04 2016 19:32
Sorry I couldn't attend today's full forum. Just wanted to ask: since sets information is stored directly in records (hence in ES), when a given OAI Set is created/amended, is it then needed to reindex all the records?
Jiri Kuncar
@jirikuncar
Apr 04 2016 20:37
no, only affected and newly matching ones
Samuele Kaplun
@kaplun
Apr 04 2016 21:24
Right. Is there a way to automatically reindex affected records then? Or the admin has to manually reindex affected records (in case of an update of OAI set definition that would mean old records belonging to the set and new ones as well)?
(basically this is what oairepositoryupdater was responsible for in Invenio 1)
Mmh. I guess this could be implemented by firing a signal upon set creation/update/modification. I might look into that
Jiri Kuncar
@jirikuncar
Apr 04 2016 21:26
Yes, you can enable the signal or you can check CLI in inveniosoftware/invenio-oaiserver#54.
Samuele Kaplun
@kaplun
Apr 04 2016 21:29
Nice!
Thanks!