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

adsbibdesk stopped functioning today; no code change #23

Closed keflavich closed 11 years ago

keflavich commented 11 years ago

I suddenly stopped being able to run adsbibdesk today after having made no changes (but, I rebooted my machine and installed a Mac OS X update).

The errors from adsbibdesk:

On jonathansick/work:

$ adsbibdesk 2012ApJ...758L..28B
Starting ADS to BibDesk
Traceback (most recent call last):
  File "/Users/adam/virtual-python/bin/adsbibdesk", line 9, in <module>
    load_entry_point('adsbibdesk==3.1', 'console_scripts', 'adsbibdesk')()
  File "/Users/adam/virtual-python/lib/python2.7/site-packages/adsbibdesk-3.1-py2.7.egg/adsbibdesk.py", line 175, in main
    process_articles(args, prefs)
  File "/Users/adam/virtual-python/lib/python2.7/site-packages/adsbibdesk-3.1-py2.7.egg/adsbibdesk.py", line 189, in process_articles
    bibdesk = BibDesk()
  File "/Users/adam/virtual-python/lib/python2.7/site-packages/adsbibdesk-3.1-py2.7.egg/adsbibdesk.py", line 815, in __init__
    self.refresh()
  File "/Users/adam/virtual-python/lib/python2.7/site-packages/adsbibdesk-3.1-py2.7.egg/adsbibdesk.py", line 842, in refresh
    self.titles = self('return title of publications', strlist=True)
  File "/Users/adam/virtual-python/lib/python2.7/site-packages/adsbibdesk-3.1-py2.7.egg/adsbibdesk.py", line 838, in __call__
    for i in range(output.numberOfItems())]
AttributeError: 'NoneType' object has no attribute 'numberOfItems'

I have no idea what branch I was on before, but I got this error previously. I cannot reproduce it because I can't find any old branches that will install successfully any more. Color me confused.... /Users/adam/.adsbibdesk_injector_2.scpt: execution error: BibDesk got an error: Can’t get document 1. Invalid index. (-1719)

keflavich commented 11 years ago

Reverting to 3.0.0 worked; the bug is apparently pyobjc related. Still can't reproduce that 2nd error.

jonathansick commented 11 years ago

You can get the last pre-objc Service at http://files.jonathansick.ca/adsbibdesk/adsbibdesk_3.0.6.zip

/Users/adam/.adsbibdesk_injector_2.scpt: execution error: BibDesk got an error: Can’t get document 1. Invalid index. (-1719)

I can't imagine how you got that error message; the if its calling the injector script, that means you're running a pre 3.1 version of the command line app. Is that so, in that case?

Is BibDesk open and a bibtex document open?

keflavich commented 11 years ago

Is BibDesk open and a bibtex document open?

Oh... that might explain why it went away. Bibdesk auto-opened, but was stuck on the 'install the latest update' splash page.

Thanks for the latest tag # for pre-objC. Does the other bug indicate a failed pyobjc install?

jonathansick commented 11 years ago

Thanks for the latest tag # for pre-objC. Does the other bug indicate a failed pyobjc install?

BibDesk's delay in opening a document would also have tripped up v3.1. So I wouldn't call it a bug yet. That said, we could do a better job at making sure a default document is open; not sure how I'd get around the update dialogue box.

keflavich commented 11 years ago

You're right... with Bibdesk open, there are no problems. Honestly, you shouldn't need a better error message, this is a PEBKAC.

On a different note, using git update-index --assume-unchanged "build/Add to BibDesk.workflow/Contents/document.wflow" has led to problems switching between branches:

error: Your local changes to the following files would be overwritten by checkout:
    build/Add to BibDesk.workflow/Contents/document.wflow
Please, commit your changes or stash them before you can switch branches.
Aborting

I don't think this constitutes a bug, but if you know a workaround, it might be worth adding to the readme.