Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quvi: can't find binary module 'socket.core' from luasockets #20268

Closed
AbigailBuccaneer opened this issue Nov 8, 2016 · 5 comments
Closed

quvi: can't find binary module 'socket.core' from luasockets #20268

AbigailBuccaneer opened this issue Nov 8, 2016 · 5 comments
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 9.needs: community feedback

Comments

@AbigailBuccaneer
Copy link
Contributor

Issue description

Running quvi fails, complaining about the Lua module socket.core. This file is present in the LuaSocket installation, but seemingly not on the package search path.

Steps to reproduce

$ nix-shell --pure -p quvi --command "quvi get 'https://www.youtube.com/watch?v=QvH5qU1qBXY'"

** (get:10632): CRITICAL **: [_chk_script_ident] ...y0zwwmv8w-lua5.1-socket-3.0-rc1/share/lua/5.1/socket.lua:12: module 'socket.core' not found:
	no field package.preload['socket.core']
	no file '/nix/store/fcin67bpbkb25ra9vhp4v30y0zwwmv8w-lua5.1-socket-3.0-rc1/share/lua/5.1/socket/core.lua'
	no file '/nix/store/rplam6m9nal889q73ffwjv8iyjgcwdaw-quvi-scripts-0.9.20131130/share/libquvi-scripts/0.9/common/socket/core.lua'
	no file '/usr/lib/lua/5.2/socket/core.so'
	no file '/usr/lib/lua/5.2/loadall.so'
	no file './socket/core.so'
	no file '/usr/lib/lua/5.2/socket.so'
	no file '/usr/lib/lua/5.2/loadall.so'
	no file './socket.so'
error: while initializing libquvi: Could not find any subtitle scripts in the path
$

However, socket.core does exist:

$ tree /nix/store/fcin67bpbkb25ra9vhp4v30y0zwwmv8w-lua5.1-socket-3.0-rc1/
/nix/store/fcin67bpbkb25ra9vhp4v30y0zwwmv8w-lua5.1-socket-3.0-rc1/
├── lib
│   └── lua
│       └── 5.1
│           ├── mime
│           │   └── core.so
│           └── socket
│               └── core.so
└── share
    └── lua
        └── 5.1
            ├── ltn12.lua
            ├── mime.lua
            ├── socket
            │   ├── ftp.lua
            │   ├── headers.lua
            │   ├── http.lua
            │   ├── smtp.lua
            │   ├── tp.lua
            │   └── url.lua
            └── socket.lua

9 directories, 11 files
$

Technical details

  • System: Ubuntu 16.04.1 LTS
  • Nix version: nix-env (Nix) 1.11.4
  • Nixpkgs version: "17.03pre94828.ecbb932"
@AbigailBuccaneer
Copy link
Contributor Author

cc @mornfall (the maintainer for both quvi and luasocket).

Also, probably a separate bug for the Lua package, but I'm not sure if the package search path should include the /usr/lib/... entries.

@Profpatsch
Copy link
Member

(triage) can you still reproduce?

@AbigailBuccaneer
Copy link
Contributor Author

AbigailBuccaneer commented Jun 24, 2018

Yes, this is still reproducible:

$ nix-shell --pure -p quvi --command "quvi get 'https://www.youtube.com/watch?v=QvH5qU1qBXY'"
** (get:11121): CRITICAL **: 19:29:43.085: [_chk_script_ident] ...plh3hraj9-lua5.1-socket-3.0-rc1/share/lua/5.1/socket.lua:12: module 'socket.core' not found:
	no field package.preload['socket.core']
	no file '/nix/store/p9lzb23ghmgbh7z1p36ij9rplh3hraj9-lua5.1-socket-3.0-rc1/share/lua/5.1/socket/core.lua'
	no file '/nix/store/l3qhc0h7zqyxf4rgnnsck0dbnsjj6yjp-quvi-scripts-0.9.20131130/share/libquvi-scripts/0.9/common/socket/core.lua'
	no file '/usr/lib/lua/5.2/socket/core.so'
	no file '/usr/lib/lua/5.2/loadall.so'
	no file './socket/core.so'
	no file '/usr/lib/lua/5.2/socket.so'
	no file '/usr/lib/lua/5.2/loadall.so'
	no file './socket.so'
error: while initializing libquvi: Could not find any subtitle scripts in the path

Technical details

  • System: Ubuntu 18.04 LTS
  • Nix version: nix-env (Nix) 2.0.4
  • Nixpkgs version: "18.09pre143776.db0da282c37"

@stale
Copy link

stale bot commented Jun 4, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2020
@patka-123 patka-123 mentioned this issue Nov 25, 2023
13 tasks
@patka-123
Copy link
Contributor

Quvi is no longer available in nixpkgs so I'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 9.needs: community feedback
Projects
None yet
Development

No branches or pull requests

4 participants