jonathansick / ads_bibdesk

(Unmaintained) Mac OS X service for frictionless import of NASA ADS and arXiv publications into BibDesk.
GNU General Public License v3.0
37 stars 20 forks source link

failure in process_articles? #36

Closed mmaclow closed 10 years ago

mmaclow commented 10 years ago

I've been getting failed workflow errors from the automator script, so I installed and tried the command line. It also failed, with the following error report. (on Mac OS X 10.8.5, running python 2.7.6 installed by Mac Ports):

sagittariusB 28 % adsbibdesk 2010ApJ...709...27W Starting ADS to BibDesk Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/adsbibdesk", line 9, in load_entry_point('adsbibdesk==3.1.1', 'console_scripts', 'adsbibdesk')() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/adsbibdesk.py", line 175, in main process_articles(args, prefs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/adsbibdesk.py", line 189, in process_articles bibdesk = BibDesk() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/adsbibdesk.py", line 814, in init self.refresh() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/adsbibdesk.py", line 841, in refresh self.titles = self('return title of publications', strlist=True) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/adsbibdesk.py", line 837, in call for i in range(output.numberOfItems())] AttributeError: 'NoneType' object has no attribute 'numberOfItems'

Thanks for any help you can offer!

mmaclow commented 10 years ago

I went and checked my console log, and found the following error which seems to be associated with the problem I reported above:

12/31/13 11:08:26.939 AM python[88805]: Initializer-based scripting additions are no longer supported. "/Library/ScriptingAdditions/LCC Scroll Enhancer Loader.osax" not loaded.

12/31/13 11:08:27.050 AM com.apple.automator.xpc.workflowServiceRunner[88803]: WorkflowServiceRunner received error running Workflow Service at /Users/mordecai/Library/Services/Add to BibDesk 4.workflow: The action “Run Shell Script” encountered an error.

mmaclow commented 10 years ago

oops, closed by accident! sorry.

jonathansick commented 10 years ago

Thanks for the issue report. I'm getting back to maintaining ADS to BibDesk this month after a hiatus. I'll start by pulling together the other forks and seeing if this issue has already been fixed.

mmaclow commented 10 years ago

So this appears to have been a transient error. I just tried executing the script again on the same machine with the same ADS identifier, and today it worked. Strange.

mmaclow commented 10 years ago

And now the problem is back!?

1/18/14 7:42:18.572 AM python[12577]: Initializer-based scripting additions are no longer supported. "/Library/ScriptingAdditions/LCC Scroll Enhancer Loader.osax" not loaded. 1/18/14 7:42:18.744 AM com.apple.automator.xpc.workflowServiceRunner[12570]: WorkflowServiceRunner received error running Workflow Service at /Users/mordecai/Library/Services/Add to BibDesk 4.workflow: The action “Run Shell Script” encountered an error.

RuiPereira commented 10 years ago

@mmaclow The error you're seeing is because your BibDesk instance has not an opened bibliography file when you run adsbibdesk. The related console error is just the The action “Run Shell Script” encountered an error. part. Could you try this developement version https://raw.github.com/RuiPereira/ads_bibdesk/work/adsbibdesk.py of the command line script and tell me if it works now? It should open a new blank bibliography if it finds none.

jonathansick commented 10 years ago

I’m closing this issue since it should be fixed by now; reopen it if there’s still an issue with ADS to BibDesk 3.2.