-
Notifications
You must be signed in to change notification settings - Fork 327
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
module 'yaml.version' not found #250
Comments
I haven't seen this before, but hopefully we can get to the bottom of it. A few questions:
|
Hi Nick, thanks a lot for the reply and here's my answers. I installed API-Umbrella from apt-get, just by following the guide at https://apiumbrella.io/install/ and following the instruction for Ubuntu Trusty (14.04) The version installed is 0.11.1 Output of ls: Output of dpkg:
Let me know if there's anything wrong, or if you need any more information. Thanks! |
Hm, this is really strange. Everything looks correct, but based on the error you're getting, it appears like it's having trouble loading the The only dependency on that In any case, it would still be great to figure out what's going on here. So if you don't mind some additional debugging, can you try running this lyaml-test.sh script? You can download the file or paste its contents into a file and then run |
Hi Nick,
|
Ah, perfect, this helps. It looks like there's a conflicting Lua YAML library that's installed on your system at I think fixing this issue within API Umbrella should be fairly easy so we can co-exist with other Lua libraries installed on the same system (we'll just need to load our Lua dependencies in a more isolated fashion than we were before). Could you try replacing the contents of #!/usr/bin/env luajit
local embedded_root = os.getenv("API_UMBRELLA_EMBEDDED_ROOT")
if embedded_root then
package.path = embedded_root .. "/openresty/lualib/?.lua;" ..
embedded_root .. "/openresty/lualib/?/init.lua;" ..
embedded_root .. "/openresty/luajit/share/luajit-2.1.0-beta1/?.lua;" ..
embedded_root .. "/openresty/luajit/share/luajit-2.1.0-beta1/?/init.lua;" ..
embedded_root .. "/openresty/luajit/share/lua/5.1/?.lua;" ..
embedded_root .. "/openresty/luajit/share/lua/5.1/?/init.lua"
package.cpath = embedded_root .. "/openresty/lualib/?.so;" ..
embedded_root .. "/openresty/luajit/lib/lua/5.1/?.so"
end
local src_root = os.getenv("API_UMBRELLA_SRC_ROOT")
if src_root then
package.path = src_root .. "/src/?.lua;" ..
src_root .. "/vendor/share/lua/5.1/?.lua;" ..
src_root .. "/vendor/share/lua/5.1/?/init.lua;" ..
package.path
package.cpath = src_root .. "/vendor/lib/lua/5.1/?.so;" ..
package.cpath
end
local cli = require "api-umbrella.cli"
cli() If you have a chance to give that a try and could let us know whether or not it fixes the startup issue for you, that would be a big help. If it does fix things, then we'll get that fix integrated into the next release. Thanks for your help debugging this! |
Hi Nick, |
No longer include the default paths in the lua load paths. This ensures we load our dependencies in isolation of any other lua libraries that might be installed on the same system. See: #250
I've committed a fix to master for this. This will be part of the next v0.12 package release. We don't currently have a release date for that package release, but hopefully it shouldn't be too far off. Feel free to watch this repo or subscribe to the mailing list for an announcement when it's released. And thanks again for reporting the issue! |
Quick heads up: v0.12.0 packages have been released, which includes this update. |
Thanks Nick! -- Director, Puntofisso Ltd | CTO, DigitailComics.com Subscribe to my weekly "In other news": http://puntofisso.net/newsletter On Thu, Jun 30, 2016 at 4:25 PM, Nick Muerdter [email protected]
|
I'm on Ubuntu Trusty (14.04). I've followed the tutorial but I keep getting this error.
Note that I've installed yaml via apt-get, pip, and also cpan (just to be sure...) but this hasn't changed it. Googling isn't of much help, and no one else mentions this error. What's happening?
The text was updated successfully, but these errors were encountered: