Comments (32)
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.
@motw, what's your LuaRocks version?
luarocks --version
from luarocks-site.
@hishamhm , it is installed the version.
luarocks --version
2.1.2
from luarocks-site.
I am experiencing this issue as well, also running luarocks 2.1.2.
from luarocks-site.
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.
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.
- Do you have the
unzip
utility installed? - Do you get the exact same error message as the original poster? (
No results matching query were found
) - Do you get the exact same output if you run
luarocks install --only-server=http://rocks.moonscript.org moonrocks
?
Thanks!
from luarocks-site.
-
Yes
UnZip 6.00 of 20 April 2009, by Info-ZIP -
Yes
Warning: Failed searching manifest: Failed loading manifest: Failed extracting manifest file
Error: No results matching query were found.
- Yes
from luarocks-site.
@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.
@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.
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.
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.
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.
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.
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.
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.
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.
Thanks for looking into it. I'll keep my eye on it.
from luarocks-site.
I still get the same error with 2.2.0beta1
from luarocks-site.
Try again, there was an issue with the server that I just fixed.
from luarocks-site.
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.
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.
@kwiatowa26 The configure script tries to use curl first. Is your installation calling ./configure --with-downloader=wget
explicitly?
from luarocks-site.
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.
@kwiatowa26 Indeed the issue is related to the Torch script. Is it fixed now?
regards
from luarocks-site.
It seems that right now everything is OK!
from luarocks-site.
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.
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.
@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.
closing out old issues
from luarocks-site.
@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.
@LinZichuan fix permissions with chown in /home/linzichuan/torch/install
as well.
from luarocks-site.
Related Issues (20)
- Dead link on README.md
- /usr/bin/bash: c:lualuarocks-3.8.0node_modules.bintsc.cmd: command not found HOT 2
- Got Error While Logging with GitHub
- Error while uploading a module HOT 1
- label doesn't get picked up from rockspec HOT 3
- rockspec is ignored when reuploading the same version after a delete HOT 1
- All lua cmsgpack rockspec files need git:// changed to https:// HOT 1
- Show a list of things I've starred? HOT 1
- On Windows luarocks show --porcelain returns unusable command path format HOT 1
- "Dependency for" listing is incorrect
- lua-gd references an old version version HOT 1
- what are those "${{DAEMON}}" directives in nginx.conf HOT 4
- How to deal with "faulty" unmaintained packages HOT 9
- LPeg rock is outdated HOT 1
- lsqlite3 rock is outdated HOT 4
- Add a field for Mastodon profile HOT 3
- Add uploader permissions HOT 5
- ownership change request: kong-plugin-ddtrace HOT 2
- Decimal Number returns as string in lua HOT 1
- Transfer ownership of the `catppuccin` package to `@Catppuccin-Holdings` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luarocks-site.