Git Product home page Git Product logo

Comments (32)

leafo avatar leafo commented on June 14, 2024

It's a bug in luarocks, the error suggests it's trying to load the manifest as a zip but moonrocks serves 404 on zipped manifests so it should skip to the non zipped variant. @hishamhm told me that he fixed this but maybe it snuck out into a release?

from luarocks-site.

hishamhm avatar hishamhm commented on June 14, 2024

@motw, what's your LuaRocks version?

luarocks --version

from luarocks-site.

motw avatar motw commented on June 14, 2024

@hishamhm , it is installed the version.

luarocks --version 
2.1.2

from luarocks-site.

davidzchen avatar davidzchen commented on June 14, 2024

I am experiencing this issue as well, also running luarocks 2.1.2.

from luarocks-site.

hishamhm avatar hishamhm commented on June 14, 2024

I made a fresh install of LR 2.1.2 here in a separate directory and could not reproduce this. The above command line works as expected...

from luarocks-site.

 avatar commented on June 14, 2024

Same as @davidzchen I am using luarocks 2.1.2. Did a fresh install on archlinux. I haven't tried again on osx.

from luarocks-site.

hishamhm avatar hishamhm commented on June 14, 2024

@Eltuerto :

  1. Do you have the unzip utility installed?
  2. Do you get the exact same error message as the original poster? (No results matching query were found)
  3. Do you get the exact same output if you run luarocks install --only-server=http://rocks.moonscript.org moonrocks ?

Thanks!

from luarocks-site.

 avatar commented on June 14, 2024

@hishamhm

  1. Yes
    UnZip 6.00 of 20 April 2009, by Info-ZIP

  2. Yes

Warning: Failed searching manifest: Failed loading manifest: Failed extracting manifest file

Error: No results matching query were found.
  1. Yes

from luarocks-site.

hishamhm avatar hishamhm commented on June 14, 2024

@Eltuerto, could you email the output of luarocks install --verbose --only-server=http://rocks.moonscript.org moonrocks to [email protected]? Thanks

(edit: or post as a gist and link here)

from luarocks-site.

 avatar commented on June 14, 2024

@hishamhm sorry it took so long :( this is the output of the above command (I run with --local) https://gist.github.com/eltuerto/9588708

I added the output of the curl command used for fetching the manifest since I think that is where the problem lies (the response is not a zip).

from luarocks-site.

jaimedp avatar jaimedp commented on June 14, 2024

Apparently I'm seeing the same issue. (both brew install and build fro download), here's a gist with the verbose output if that helps.

https://gist.github.com/jaimedp/11068301

from luarocks-site.

hishamhm avatar hishamhm commented on June 14, 2024

I'll have a closer look at this the upcoming week. I'm planning a new LuaRocks release for early next month and this is a must-fix.

from luarocks-site.

telemachus avatar telemachus commented on June 14, 2024

Just fyi, here's another data point. I'm having the same issue: https://gist.github.com/telemachus/fdb0d0da75100c3c7daf.

  • OSX 10.8.5
  • Lua 5.2.3
  • luarocks 2.1.2
  • UnZip 5.52

from luarocks-site.

hishamhm avatar hishamhm commented on June 14, 2024

Ok, this is the problem:

https://gist.github.com/telemachus/fdb0d0da75100c3c7daf#file-gistfile1-txt-L14-L18

That curl command should fail, but it returned true. Looks like this is already solved in current git; curl there uses -f to ensure it returns a failure code in case of Error 404. So, 2.2.0beta1 should present no problems.

from luarocks-site.

ignacio avatar ignacio commented on June 14, 2024

It is not working for me either. (Windows, LuaRocks 2.2.0beta1)

https://gist.github.com/ignacio/8db4152211cd76f09cf0

EDIT: Nevermind. It is working now. The manifest file (http://rocks.moonscript.org/manifest-5.1.zip) had 0 bytes, but is is downloading normally now.

from luarocks-site.

ryansch avatar ryansch commented on June 14, 2024

I'm running into this pretty consistently. It'll fail 5 times in a row and then succeed and then fail on the next rock.

from luarocks-site.

leafo avatar leafo commented on June 14, 2024

I've narrowed down the problem. Looks like the site is caching a 0 byte manifest zip. Still investigating, disabled the cache in the meantime. Leave a response if it happens again.

leafo ~ > wget rocks.moonscript.org/manifest-5.1.zip
--2014-07-25 23:12:24--  http://rocks.moonscript.org/manifest-5.1.zip
Resolving rocks.moonscript.org (rocks.moonscript.org)... 54.204.57.69
Connecting to rocks.moonscript.org (rocks.moonscript.org)|54.204.57.69|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [application/zip]
Saving to: ‘manifest-5.1.zip.1’

    [ <=>                                   ] 0           --.-K/s   in 0s      

2014-07-25 23:12:24 (0.00 B/s) - ‘manifest-5.1.zip.1’ saved [0/0]

from luarocks-site.

ryansch avatar ryansch commented on June 14, 2024

Thanks for looking into it. I'll keep my eye on it.

from luarocks-site.

synchro-- avatar synchro-- commented on June 14, 2024

I still get the same error with 2.2.0beta1

from luarocks-site.

leafo avatar leafo commented on June 14, 2024

Try again, there was an issue with the server that I just fixed.

from luarocks-site.

synchro-- avatar synchro-- commented on June 14, 2024

It only works as root. But maybe it's normal, I'm new to Luarocks and I don't know if it is due to the kind of installation I did some days ago. I installed it via the torch7 script

from luarocks-site.

kwiatowa26 avatar kwiatowa26 commented on June 14, 2024

In my case the problem was here:
...wget: unrecognized option '--no-check-certificate'..

My maverick's wget had no ssl compiled in and wget was selected as default downloader:

--with-downloader)
[ -n "$value" ] || die "Missing value in flag $key."
case "$value" in
wget|curl) LUAROCKS_DOWNLOADER="$value" ;;
*) die "Invalid option: $value. See --help." ;;
esac
LUAROCKS_DOWNLOADER_SET=yes
;;

When I removed wget from OS everything started to work (with curl).

regards,

from luarocks-site.

hishamhm avatar hishamhm commented on June 14, 2024

@kwiatowa26 The configure script tries to use curl first. Is your installation calling ./configure --with-downloader=wget explicitly?

from luarocks-site.

kwiatowa26 avatar kwiatowa26 commented on June 14, 2024

please ignore my citation from configure file - I introduced misconception.
The problem occured durring execution of torch7 installation script:
https://raw.githubusercontent.com/torch/ezinstall/master/install-luajit+torch
It seems configure relays on default auto-dectection.
regards

from luarocks-site.

synchro-- avatar synchro-- commented on June 14, 2024

@kwiatowa26 Indeed the issue is related to the Torch script. Is it fixed now?

regards

from luarocks-site.

kwiatowa26 avatar kwiatowa26 commented on June 14, 2024

It seems that right now everything is OK!

from luarocks-site.

andrewwilson avatar andrewwilson commented on June 14, 2024

I had the same issue with 2.2.0beta1.
However I tracked it down to my ~/.cache/luarocks directory and everything in it being owned by root.
Changing the ownership (with "sudo chown -R myuser:mygroup ~/.cache/luarocks" or similar) fixed it for me.

from luarocks-site.

ramparte avatar ramparte commented on June 14, 2024

FWIW, I had the same issue as kwiatowa26, there was an old copy of wget in /usr/local/bin for some reason. Just nuking it with brew link --overwrite wget fixed it.

Running luarocks install with --verbose helped me find this - it's pretty obvious which step is failing once you do that (for anyone new to this thread trying to figure it out).

from luarocks-site.

MrKonstantin avatar MrKonstantin commented on June 14, 2024

@andrewwilson, thanks! "sudo chown -R myuser:mygroup ~/.cache/luarocks" fixed the same problem.

I think it would be great to mention about this option in docs: http://torch.ch/docs/getting-started.html#_

from luarocks-site.

leafo avatar leafo commented on June 14, 2024

closing out old issues

from luarocks-site.

LinZichuan avatar LinZichuan commented on June 14, 2024

@andrewwilson I run sudo chown -R myuser:mygroup ~/.cache/luarocks and it starts cloning the iTorch, but stop because mkdir: cannot create directory ‘/home/linzichuan/torch/install/lib/luarocks/rocks/itorch/scm-1/bin’: Permission denied
When I use sudo luarocks install itorch, it will come out Error: No results matching query were found.
How should I do? Thanks very much !!!

from luarocks-site.

hishamhm avatar hishamhm commented on June 14, 2024

@LinZichuan fix permissions with chown in /home/linzichuan/torch/install as well.

from luarocks-site.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.