grahamrow / zim-mendeley-plugin

Plugin for inserting citations into Zim
GNU General Public License v2.0
9 stars 1 forks source link

NameError: global name 'MendeleyHttpClient' is not defined. #2

Open leonqli opened 9 years ago

leonqli commented 9 years ago

"The Mendeley plugin was not able to fulfill this request. Please ensure that Mendeley Desktop application is open. "

grahamrow commented 9 years ago

Hi! Could you let me know where you installed the plugin to? What sort of system are you running on?

leonqli commented 9 years ago

First, tried to install it into ~/.local/share/zim/plugins as suggested. But it seems zim can't find the installation.

Then, I installed it into /lib/python2.7/dist-packages as an instead, and Zim did find it. But unfortunately it didn't work well.

The system I used is Ubuntu 14.04LTS.

Thanks, Leon

On Mon, Jan 12, 2015 at 3:34 PM, Graham Rowlands notifications@github.com wrote:

Hi! Could you let me know where you installed the plugin to? What sort of system are you running on?

Reply to this email directly or view it on GitHub https://github.com/grahamrow/zim-mendeley-plugin/issues/2#issuecomment-69640748 .

grahamrow commented 9 years ago

Hi Leon,

Strange: I just tried ~/.local/share/zim/plugins on a fresh 14.04 virtual machine and Zim was able to locate the plugin (it ran just fine). Also, I didn't see a /lib/python2.7/dist-packages directory by default and was unable to see the plugin after creating that directory and moving the zim-mendeley-plugin folder to that location.

Did you install zim 0.62 through a .deb? What happens when you run zim -D?

I see the lines:

DEBUG: Set XDG_DATA_HOME to /home/myname/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share/ubuntu>, <Dir: /usr/share/gnome>, <Dir: /usr/local/share>, <Dir: /usr/share>]

near the beginning of the output.

Best, Graham

grahamrow commented 9 years ago

Zim also found the plugin at /usr/local/share/zim/plugins as I would predict from the XDG_DATA_DIRS path above. Perhaps try somewhere listed under your own XDG_DATA_DIRS?

leonqli commented 9 years ago

Hi Graham,

Thanks for your replies! I upgrade zim from 0.60 to 0.62. It can find the plugin in "./local/....". But the problem of "MendeleyHttpClient" seems still there. Still not sure sure what's wrong about it.

Thanks, Leon