wshanks / lyz

LyZ is a plugin for Zotero, which is intended to make working with LyX/Zotero more pleasant.
GNU General Public License v3.0
108 stars 13 forks source link

Zotero standalone cannot install lyz #15

Closed ganong123 closed 7 years ago

ganong123 commented 7 years ago

Hi,

I followed the instructions posted here to install Lyz with Zotero 4.0.15.29 running Mac OS X Sierra. Error:

The add-on "LyZ" could not be installed. It may be incompatible with this version of Zotero Standalone.

Is there a newer .xpi file I should be using? Or any other tips to make this work?

Thanks, Peter

wshanks commented 7 years ago

Yes, those instructions are very old. Try downloading the latest version here: https://addons.mozilla.org/en-US/firefox/addon/lyz/

ganong123 commented 7 years ago

I tried that and it didn't work. I think I need an xpi file. On Wed, Feb 1, 2017 at 11:27 PM willsALMANJ notifications@github.com wrote:

Yes, those instructions are very old. Try downloading the latest version here: https://addons.mozilla.org/en-US/firefox/addon/lyz/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/willsALMANJ/lyz/issues/15#issuecomment-276865389, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsLEmHNh6HQeDRZmX9vxVgF-2XRzbmhks5rYVsugaJpZM4L0Zf1 .

wshanks commented 7 years ago

That is where you download the xpi file. If you are using Firefox, right-click the button that says "Add to Firefox" and choose "Save link as". If you are using a different browser, click the small link that says "download any way" under the "Only with Firefox" button.

ganong123 commented 7 years ago

Thanks. That worked. I'm now getting a second set of errors (both in Firefox-based Zotero and in desktop-based) when I select a citation and choose "Cite in LyX". (A bit of context: I've used Zotero/Lyx/LyZ integration successfully in the past. Just got a new computer and trying to get everything set up there.)

I get three errors in succession

SERVER ERROR:
[Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]"  nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)"  location: "JS frame :: chrome://lyz/content/lyz.js :: Zotero.Lyz.lyxPipeInit :: line 137"  data: no]

Could not contact server at: \\.\pipe\lyxpipe

Could not retrieve document name.

My Lyx server pipe is set to "~/.lyxpipe" per the setup instructions for LyZ.

Also, I'm happy to move this question over to a new issue if you would prefer.

Thanks for your help!

wshanks commented 7 years ago

You need to update the LyX pipe location in LyZ's settings as well. The default location is \\.\pipe\lyxpipe which is the default for Windows. On other systems you will see those errors because the Windows path formatting is invalid for OS X/Unix.

ganong123 commented 7 years ago

That worked -- thanks! Step 2 of the current installation instructions reads "Open LyX and set LyXServer path (in LyX go to menu, Tools > Preferences... > Paths and set LyXServer pipe to): Windows users can use the default path setting in LyZ, i.e. \.\pipe\lyxpipe. Linux and Mac users can use e.g. ~/.lyxpipe and change the LyZ settings accordingly." I'd suggest adding a bit more detail of how exactly to update LyZ settings for the newbs who get confused like me. Thanks again!

wshanks commented 7 years ago

Glad it worked. Yes, it could be clearer. LyZ could also detect the operating system and use a different default path for OS X than for Windows. Firefox and Zotero are undergoing a lot of change right now, so I'm not too motivated to make updates to LyZ until the future of Zotero plugins is more clear.