ContentMine / getpapers

Get metadata, fulltexts or fulltext URLs of papers matching a search query
MIT License
197 stars 37 forks source link

Installing getpapers globally #113

Closed abannachbrown closed 8 years ago

abannachbrown commented 8 years ago

There seems to be an issue with installing the getpapers. When i install the npm package globally (using the command "npm install -global getpapers") on windows 7 the cli hangs indefinitely (as shown). I have only noticed this problem today as it was working fine yesterday.

The same issue occurs on another machine (running windows 10). hanging cli

tarrow commented 8 years ago

Hi!

Can you try with --global? (two minus signs)

abannachbrown commented 8 years ago

Hi Thank you for the suggestion. The cli still hangs indefinitely. I've tried this also the other machine (windows 10) with the same result.

untitled1

abannachbrown commented 8 years ago

I think the issue might be with the latest update 0.4.6. getpapers v 0.4.5 has no issues installing.

tarrow commented 8 years ago

interesting.. How are you installing v0.4.5?

chrissena commented 8 years ago

I can confirm i have had exactly the same issue on windows 10. Have got it to work using

npm install --global getpapers@0.4.5

abannachbrown commented 8 years ago

i've installed v0.4.5 using the command npm install --gloabl getpapers@0.4.5 and can successfully execute a getpapers command and download full texts.

tarrow commented 8 years ago

I can replicate your problem on windows 7. I'll try and figure out what has changed between the two versions and implement a fix. I guess it is some bug in npm rather than on our side but perhaps we can find a workaround.

On Wed, Jun 15, 2016 at 12:20 AM, abananchbrown notifications@github.com wrote:

i've installed v0.4.5 using the command npm install --gloabl getpapers@0.4.5 and can successfully execute a getpapers command and download full texts.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ContentMine/getpapers/issues/113#issuecomment-226045358, or mute the thread https://github.com/notifications/unsubscribe/AHA028T0lc9ztlrf7rdnkjn2UOXy7i6Eks5qLzdMgaJpZM4I1NYT .

tarrow commented 8 years ago

Sorry that is has taken me a while to get to the bottom of this but I think the problem is that 0.4.6 is a bad release. I think lots of files have accidentally been packaged up with the release. Perhaps so many (or ones with such a long path name) that it breaks on windows.

I've asked @blahah to take a look at this and cut another release when he gets a chance.

blahah commented 8 years ago

Ah yes, looks like I accidentally included my testing files in the release. Sorry for the trouble. I'll cut another release now.

blahah commented 8 years ago

New version 0.4.7 pushed, with all the extra files removed. Can anyone with a Windows machine confirm whether this fixes the install issue?

tarrow commented 8 years ago

Yep! install issue all fixed! Thanks!