attempt to call global 'import_all' (a nil value))

PriyaS <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
I am trying to call the lua script deskew.lua from C++ program

function deskew(imageinp,imageop)
print("Entered Lua Script")
import_all(ocr)
proc = ocr:make_DeskewPageByRAST()
input = bytearray:new()
output =bytearray:new()
iulib.read_image_gray(input,"/home/ima/Desktop/OCR/ocropus-0.3/ocroscript/tilt.png")
proc:cleanup(output,input)
iulib.write_image_gray("/home/ima/Desktop/OCR/ocropus-0.3/ocroscript/scripts/deTilt.png",output) 
print("Exit:Lua")
end
gives error msg " attempt to call global 'import_all' (a nil value)) "

C++
/* initialize Lua */
	L = lua_open();

	
	/* load Lua base libraries */
	luaL_openlibs(L);


	/* load the script */
	luaL_dofile(L,
"/home/ima/Desktop/OCR/ocropus-0.3/ocroscript/scripts/deskew.lua");




whereas other lua script in same directory having the same import_all(ocr)
runs fine .:-(Can any one suggest me some solution for this problem..Thank
you

-- 
View this message in context: http://www.nabble.com/attempt-to-call-global-%27import_all%27-%28a-nil-value%29%29-tp23826976p23826976.html
Sent from the Lua C++ Bind mailing list archive at Nabble.com.


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.