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

Module 'image' not found #471

Open
xojin opened this issue Feb 2, 2019 · 4 comments
Open

Module 'image' not found #471

xojin opened this issue Feb 2, 2019 · 4 comments

Comments

@xojin
Copy link

xojin commented Feb 2, 2019

I have the following error:

/usr/share/lua/5.1/trepl/init.lua:389: module 'image' not found:
no field package.preload['image']
no file './image.lua'
no file '/usr/share/luajit-2.1.0-beta3/image.lua'
no file '/usr/local/share/lua/5.1/image.lua'
no file '/usr/local/share/lua/5.1/image/init.lua'
no file '/usr/share/lua/5.1/image.lua'
no file '/usr/share/lua/5.1/image/init.lua'
no file './image.so'
no file '/usr/local/lib/lua/5.1/image.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/image.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/usr/share/lua/5.1/trepl/init.lua:389: in function 'require'
neural_style.lua:3: in main chunk
[C]: in function 'dofile'
/usr/lib/torch-trepl/th:149: in main chunk
[C]: at 0x5565421471d0

@xojin xojin changed the title Module image not found Module 'image' not found Feb 2, 2019
@PonasKovas
Copy link

I'm having the same problem

@AndreV84
Copy link

AndreV84 commented Apr 9, 2019

what if you install the module with:
luarocks --local install image

@aldenjenkins
Copy link

luarocks --local install image --check-lua-versions
image not found for Lua 5.4.
Checking if available for other Lua versions...
Checking for Lua 5.1...
Checking for Lua 5.2...
Checking for Lua 5.3...

Error: No results matching query were found for Lua 5.4.
image is not available for any Lua versions.

@aldenjenkins
Copy link

Solution for arch linux: https://aur.archlinux.org/packages/torch7-image-git/

Install the torch image package

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