unity-scope-zotero does not yield any results in most settings

Bug #1242008 reported by Albert Weichselbraun
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Unity Zotero Scope
Fix Committed
Undecided
Mark Tully
unity-scope-zotero (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Unity-scope-zotero only yields results if _all_ paths defined in /usr/share/unity-scopes/zotero/unity_zotero_daemon.py are present (i.e. the firefox zotero plugin _and_ the stand-alone zotero application are installed).

Otherwise the python scripts stops with a FileNotFoundError because the path used for os.listdir in line 104 does not exist.
- the attached patch fixes this problem.

cheers,
  albert :-)

Tags: patch

Related branches

Revision history for this message
Albert Weichselbraun (albert-weichselbraun) wrote :
Mark Tully (markjtully)
Changed in unity-scope-zotero:
status: New → Fix Committed
assignee: nobody → Mark Tully (markjtully)
Revision history for this message
Timse (timshel86) wrote :

Hi! How do I apply the patch? And how long does it normally take from fix commited to fix released?
Thanks!

Revision history for this message
Mark Tully (markjtully) wrote :
Revision history for this message
Timse (timshel86) wrote :

Hi Mark, thanks for the file. However, I still cannot search my Zotero library from the Dash with the .deb file you posted. Maybe it still doesn't find the library, but I don't know why. I have a Zotero Standalone installation in /opt/zotero and my user library is in ~/.zotero/zotero/dycmqsm6.default/zotero/zotero.sqlite. Any ideas on why it doesn't find anything?

Another thing, the .deb file you posted, Ubuntu tells me there is a newer version. I installed it with dpkg -i, and rebooted.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:unity-scope-zotero at revision 26, scheduled for release in unity-scope-zotero, milestone Unknown

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity-scope-zotero (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "unity_zotero_daemon_fix_FileNotFoundError.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Timse (timshel86) wrote :

The problem persists in Ubuntu 14.04, as the dash cannot find any result from the Zotero database.
How to make the Zotero filter recognize my database. Thanks.

Revision history for this message
Ilya Flyamer (flyamer) wrote :

I confirm what Timse reported. The problem is present in Ubuntu 14.04 with all updates.

Revision history for this message
Craig Kelly (craig-n-kelly) wrote :

Hello - I'm affected by this bug on 15.04. I was also surprised that only the title was searched. I've attached the patch that I'm currently using. It includes the patch from above by albert-weichselbraun, fixes a few other potential issues with paths, and adds both the authors and abstract text to the fields searched.

I'm not what you would consider a Unity Dash super-user, but it's currently working for me and passes the 3 unit tests run by a default nosetests3 run.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.