[ZeroBrane Studio] Re: error loading module 'socket.core'

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: "zerobrane@xxxxxxxxxxxxx" <zerobrane@xxxxxxxxxxxxx>
  • Date: Tue, 9 Sep 2014 10:30:26 -0700

Hi Steve,

> ZBS=C:\Program Files (x86)\ZeroBrane
> LUA_CPATH=C:\Program Files (x86)\ZeroBrane/bin/?.dll;C:\Program Files 
> (x86)\ZeroBrane/bin/clibs/?.dll

> I get:
> Failed to load file : error loading module ‘socket.core’ from file 
> “C:\Program Files (x86)\ZeroBrane/bin/clibs/socket\core.dll”:The specified 
> module could not be found.

I think you are loading Lua 5.1 modules to use with Lua 5.2 and this
is causing the error you see. Try changing LUA_CPATH to C:\Program
Files (x86)\ZeroBrane/bin/?.dll;C:\Program Files
(x86)\ZeroBrane/bin/clibs52/?.dll (note using clibs52 instead of
clibs).

If that fixes the issue for you, I'll update the documentation...

Paul.

Other related posts: