itorch image error on mac os x yosemite

240 views
Skip to first unread message

Frank Luo

unread,
Apr 19, 2015, 3:10:23 PM4/19/15
to tor...@googlegroups.com
Trying the iTorch_demo.ipynb and got the following error:

In [1]:
require 'image';
In [2]:
itorch.image({image.lena(), image.lena(), image.lena()})
/Users/fluo/torch/install/share/lua/5.1/image/init.lua:141: cannot open file <1> for reading
stack traceback:
	[C]: in function 'load'
	/Users/fluo/torch/install/share/lua/5.1/image/init.lua:141: in function 'loader'
	/Users/fluo/torch/install/share/lua/5.1/image/init.lua:285: in function 'load'
	/Users/fluo/torch/install/share/lua/5.1/image/init.lua:1307: in function 'lena'
	[string "local f = function() return itorch.image({ima..."]:1: in function 'f'
	[string "local f = function() return itorch.image({ima..."]:1: in main chunk
	[C]: in function 'xpcall'
	/Users/fluo/torch/install/share/lua/5.1/itorch/main.lua:174: in function </Users/fluo/torch/install/share/lua/5.1/itorch/main.lua:140>
	/Users/fluo/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll'
	/Users/fluo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll'
	/Users/fluo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex'
	/Users/fluo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start'
	/Users/fluo/torch/install/share/lua/5.1/itorch/main.lua:341: in main chunk
	[C]: in function 'require'
	(command line):1: in main chunk
	[C]: at 0x010dc4b330

can anyone help? The demo runs well on Ubuntu 14.04

Leo Tam

unread,
Apr 23, 2015, 1:12:58 PM4/23/15
to tor...@googlegroups.com
Have you tried reinstalling the image module?

Kemal AYDIN

unread,
Oct 3, 2015, 10:26:29 AM10/3/15
to torch7
I have the same problem.

-reinstalled image

> luarocks install image


But it doesn't work. Any updates?

Kemal AYDIN

unread,
Oct 3, 2015, 10:52:44 AM10/3/15
to torch7 on behalf of Kemal AYDIN
image.lena()
gives the following error:

/Users/kemal/torch/install/share/lua/5.1/image/init.lua:159: [write_png_file] png_create_write_struct failed stack traceback: [C]: in function 'save' /Users/kemal/torch/install/share/lua/5.1/image/init.lua:159: in function 'saver' /Users/kemal/torch/install/share/lua/5.1/image/init.lua:354: in function 'save' /Users/kemal/torch/install/share/lua/5.1/itorch/gfx.lua:25: in function 'image' [string "i = image.load('lena.jpg')..."]:2: in main chunk [C]: in function 'xpcall' /Users/kemal/torch/install/share/lua/5.1/itorch/main.lua:179: in function </Users/kemal/torch/install/share/lua/5.1/itorch/main.lua:143> /Users/kemal/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll' /Users/kemal/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll' /Users/kemal/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex' /Users/kemal/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start' /Users/kemal/torch/install/share/lua/5.1/itorch/main.lua:350: in main chunk [C]: in function 'require' [string "arg={'/Users/kemal/Library/Jupyter/runtime/ke..."]:1: in main chunk



--
You received this message because you are subscribed to a topic in the Google Groups "torch7" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/torch7/wih6GHAOXSU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at http://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.



--
Kemal Aydin, Ph.D.
Associate Professor of Computer Science
North American University
3203 N Sam Houston Parkway W
Houston, TX 77038
(832) 230 5158

Reply all
Reply to author
Forward
0 new messages