Re: ORCID in Invenio

2013-08-09 Thread Alexander Wagner

On 09.08.2013 10:40, Laura Rueda wrote:

Hi!


That sounds very promising. How much do you already have here? On what
invenio version are you implementing it? I guess it is next/ in case,
could this be (easily) backportable to the 1.x series?


We are working on 1.x as well, but our developments are a bit tailored
to the peculiarities of the INSPIRE installation.


If the tayloring is not to much hardcoded I think we could well live
with our friends from inspire. We could check out if/where/how we need
adoptions/configs.


I'd be very interested, indeed. ORCiD integration is quite a hot topic
here and I'd definitely not want to redo what's already done. We should
probably check out how to team up e.g. if registration of ORCiDs is not
that much of interest on your end we could work on that as we definitely
would need that.


Sounds excellent! I will send you more information so we can see how to
get the best from the effort.


So I get it we'll go that way :) At the moment we have some smaller
issues to sort out first, but ORCiD is then one of our very next topics.


Thanks!


De rien :)

--

Kind regards,

Alexander Wagner
Subject Specialist
Central Library
52425 Juelich

mail : a.wag...@fz-juelich.de
phone: +49 2461 61-1586
Fax  : +49 2461 61-6103
www.fz-juelich.de/zb/DE/zb-fi




Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt



Das Forschungszentrum oeffnet seine Tueren am Sonntag, 29. September, von 10:00 
bis 17:00 Uhr: http://www.tagderneugier.de


Re: ORCID in Invenio

2013-08-09 Thread Laura Rueda



That sounds very promising. How much do you already have here? On what
invenio version are you implementing it? I guess it is next/ in case,
could this be (easily) backportable to the 1.x series?


We are working on 1.x as well, but our developments are a bit tailored 
to the peculiarities of the INSPIRE installation.




I'd be very interested, indeed. ORCiD integration is quite a hot topic
here and I'd definitely not want to redo what's already done. We should
probably check out how to team up e.g. if registration of ORCiDs is not
that much of interest on your end we could work on that as we definitely
would need that.



Sounds excellent! I will send you more information so we can see how to 
get the best from the effort.


Thanks!

Laura


Re: Problem caused by socket.setdefaulttimeout()

2013-08-09 Thread Lars Holm Nielsen

Hey Jay,

Interesting problem. I can reproduce the problem on ZENODO production 
machines running Python 2.6.6 but I cannot reproduce on my Ubuntu 
installation with Python 2.7.4


Btw...you might want to look into Celery for distributed processing. 
Naturally I don't know if it would fit your use-case, but at least I've 
found celery much less headache than trying to use multiprocessing :-)


Best regards,
Lars

On 08.08.2013 22:31, Luker, James wrote:

Hi gang,

Does this stacktrace look familiar-ish to anyone?

Traceback (most recent call last):
  File "", line 1, in 
  File 
"/home/jluker/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/multiprocessing/managers.py", 
line 667, in temp

token, exp = self._create(typeid, *args, **kwds)
  File 
"/home/jluker/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/multiprocessing/managers.py", 
line 565, in _create

conn = self._Client(self._address, authkey=self._authkey)
  File 
"/home/jluker/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/multiprocessing/connection.py", 
line 175, in Client

answer_challenge(c, authkey)
  File 
"/home/jluker/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/multiprocessing/connection.py", 
line 413, in answer_challenge

message = connection.recv_bytes(256) # reject large message
IOError: [Errno 11] Resource temporarily unavailable

We started seeing exceptions like that yesterday when we tried 
incorporating a new blueprint into our ADS 2.0 Flask app that uses 
some components of the python mulitprocessing library. Googling turned 
up a few clues and mentions about socket timeout stuff. I suspected 
something we were importing was maybe monkey-patching or otherwise 
messing with sockets, so I painstakingly went through all of our 
import chains and tracked it back to bibdocfile.py*, where it sets 
"socket.setdefaulttimeout(40)". Apparently that's enough to totally 
break multiprocessing. I don't really understand why, but you can 
duplicate the error very easily...


>>> import socket
>>> socket.setdefaulttimeout(40)
>>> from multiprocessing import Manager
>>> m = Manager()
>>> res = m.list([])
Traceback ...

I was able to work around the exceptions by simply calling, 
socket.setdefaulttimeout(None), immediately after the "from invenio 
import ..." statements, but I figured I should give you a heads up. 
Also, Roman mentioned that you'd had problems making use of the 
multiprocessing library in the past. Surely it's not that simple though.


--jay

* our app imports some functions like run_sql from invenio



--
Lars Holm Nielsen
CERN, IT Department, Collaboration & Information Services
http://zenodo.org | Tel: +41 22 76 79182 | Cel: +41 76 672 8927



smime.p7s
Description: S/MIME Cryptographic Signature


Re: ORCID in Invenio

2013-08-09 Thread Alexander Wagner

On 09.08.2013 09:30, Laura Rueda wrote:

Hello Laura!


Indeed, the ticket does not offer much information :)

I can tell you that we are working on the ORCID integration under the EU
Project ODIN (http://odin-project.eu/) and Lars will be doing something
similar for Zenodo.


Already imagined something like that :)


We will cover the OAuth login (it can be important to have access to the
'limited' publications) and both push and pull. In fact, we are also
working with ORCID for a quick push/pull, based on DOIs.


That sounds very promising. How much do you already have here? On what
invenio version are you implementing it? I guess it is next/ in case,
could this be (easily) backportable to the 1.x series?


What is not in our current use cases is the autoregistration on
submission. But I understand it will be as simple as to "plug" the OAuth
step.


This sounds promising. It could be that we could come up with this
plugin, given we know the framework around.


I will be happy to keep you updated!


I'd be very interested, indeed. ORCiD integration is quite a hot topic
here and I'd definitely not want to redo what's already done. We should
probably check out how to team up e.g. if registration of ORCiDs is not
that much of interest on your end we could work on that as we definitely
would need that.

--

Kind regards,

Alexander Wagner
Subject Specialist
Central Library
52425 Juelich

mail : a.wag...@fz-juelich.de
phone: +49 2461 61-1586
Fax  : +49 2461 61-6103
www.fz-juelich.de/zb/DE/zb-fi




Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt



Das Forschungszentrum oeffnet seine Tueren am Sonntag, 29. September, von 10:00 
bis 17:00 Uhr: http://www.tagderneugier.de


Re: ORCID in Invenio

2013-08-09 Thread Laura Rueda

Hello Alexander,

Indeed, the ticket does not offer much information :)

I can tell you that we are working on the ORCID integration under the EU 
Project ODIN (http://odin-project.eu/) and Lars will be doing something 
similar for Zenodo.


We will cover the OAuth login (it can be important to have access to the 
'limited' publications) and both push and pull. In fact, we are also 
working with ORCID for a quick push/pull, based on DOIs.


What is not in our current use cases is the autoregistration on 
submission. But I understand it will be as simple as to "plug" the OAuth 
step.


I will be happy to keep you updated!

Laura


On 09/08/13 08:58, Alexander Wagner wrote:

Hi!

In http://invenio-software.org/ticket/1379 ORCID is specified for
integration in Author profiles / Websearch. Unfortunatley, the ticket is
a bit short in words ;)

Anyway, what are the plans/current status of Invenio wrt ORCiD?

I'd not be so much interested in OAuth-Like logins or the like but more
in data exchange of Invenio <-> ORCiD.

Say: autoregistration to ORCiD as soon as a paper is submitted, and
authors don't have an ORCiD or we don't know it yet. (In our workflow,
finally approved by the library). Pushing bibliographic information from
Invenio -> ORCiD, probably get publications from an ORCiD record into
Invenio, stuff like that. So something like the member-api of

http://support.orcid.org/knowledgebase/articles/116874-orcid-api-guide

Anyone working on that and/or interested in joining forces?

--

Kind regards,

Alexander Wagner
Subject Specialist
Central Library
52425 Juelich

mail : a.wag...@fz-juelich.de
phone: +49 2461 61-1586
Fax  : +49 2461 61-6103
www.fz-juelich.de/zb/DE/zb-fi


 

 


Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
 

 



Das Forschungszentrum oeffnet seine Tueren am Sonntag, 29. September, 
von 10:00 bis 17:00 Uhr: http://www.tagderneugier.de




ORCID in Invenio

2013-08-09 Thread Alexander Wagner

Hi!

In http://invenio-software.org/ticket/1379 ORCID is specified for
integration in Author profiles / Websearch. Unfortunatley, the ticket is
a bit short in words ;)

Anyway, what are the plans/current status of Invenio wrt ORCiD?

I'd not be so much interested in OAuth-Like logins or the like but more
in data exchange of Invenio <-> ORCiD.

Say: autoregistration to ORCiD as soon as a paper is submitted, and
authors don't have an ORCiD or we don't know it yet. (In our workflow,
finally approved by the library). Pushing bibliographic information from
Invenio -> ORCiD, probably get publications from an ORCiD record into
Invenio, stuff like that. So something like the member-api of

http://support.orcid.org/knowledgebase/articles/116874-orcid-api-guide

Anyone working on that and/or interested in joining forces?

--

Kind regards,

Alexander Wagner
Subject Specialist
Central Library
52425 Juelich

mail : a.wag...@fz-juelich.de
phone: +49 2461 61-1586
Fax  : +49 2461 61-6103
www.fz-juelich.de/zb/DE/zb-fi




Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt



Das Forschungszentrum oeffnet seine Tueren am Sonntag, 29. September, von 10:00 
bis 17:00 Uhr: http://www.tagderneugier.de