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

NYI call return type in cv.imread #123

Closed
achsvg opened this issue May 9, 2016 · 11 comments
Closed

NYI call return type in cv.imread #123

achsvg opened this issue May 9, 2016 · 11 comments

Comments

@achsvg
Copy link

achsvg commented May 9, 2016

Hello,

When I try to call cv.imread, I get the following error:

torch/install/bin/lua: ...ng/torch/install/share/lua/5.1/cv/imgcodecs/init.lua:27: NYI: call return type

Can anyone tell me where this might be coming from?

Thanks

@shrubb
Copy link
Contributor

shrubb commented May 9, 2016

Hi!

What are your OS and CPU architecture?

@achsvg
Copy link
Author

achsvg commented May 9, 2016

OS is ubuntu 14.04 and CPU is 64 bit.

@shrubb
Copy link
Contributor

shrubb commented May 10, 2016

Hmm.

  1. Do other functions also crash? Have you tried running th demo/flann.lua or th demo/SVM.lua? Do they run correctly?
  2. Looks like you're running torch/install/bin/lua. Did you install Torch with Lua instead of LuaJIT? Try running torch/install/bin/th or luajit instead

@achsvg
Copy link
Author

achsvg commented May 10, 2016

None of the functions work, the demo does not work for me either with the same error :(

I am running the scripts with th and compiled torch with luajit too, even though I did install torch with Lua5.1 previously, I re-compiled it since then with luajit...
Will try with a fresh install, let me know if you have any more ideas, thanks.

@shrubb
Copy link
Contributor

shrubb commented May 10, 2016

Thanks, will be waiting for your result. I'll see if I can do something with FFI. That's really a strange error.

@achsvg
Copy link
Author

achsvg commented May 11, 2016

Ok it works now, I must have screwed up something in my torch installation...
Thanks!

@achsvg achsvg closed this as completed May 11, 2016
@arunpatala
Copy link

Hey I am also facing a similar error. Can you tell how you rectified this?

@arunpatala
Copy link

I installed torch using Lua5.2 instead of LuaJIT
TORCH_LUA_VERSION=LUA52 ./install.sh
Can that cause the problem

@shrubb shrubb mentioned this issue Dec 5, 2017
@ganliqiang
Copy link

I installed torch using Lua5.2 instead of LuaJIT
TORCH_LUA_VERSION=LUA52 ./install.sh
Can that cause the problem

i also meet the same poblem so do you have any solutions

@shrubb
Copy link
Contributor

shrubb commented Mar 7, 2019

@ganliqiang Try installing Torch with LuaJIT instead of Lua 5.x, or see #189.

@ganliqiang
Copy link

@ganliqiang Try installing Torch with LuaJIT instead of Lua 5.x, or see #189.

thanks a lot it woks for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants