lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Thjs,

I tried am getting the following error in Lua5.2.3

> Proto = require("proto")
stdin:1: module 'proto' not found:
        no field package.preload['proto']
        no file 'C:\Users\bimmanue\Downloads\lua-5.2.3_Win32_bin\lua\proto.lua'
        no file 'C:\Users\bimmanue\Downloads\lua-5.2.3_Win32_bin\lua\proto\init.
lua'
        no file 'C:\Users\bimmanue\Downloads\lua-5.2.3_Win32_bin\proto.lua'
        no file 'C:\Users\bimmanue\Downloads\lua-5.2.3_Win32_bin\proto\init.lua'

        no file '.\proto.lua'
        no file 'C:\Users\bimmanue\Downloads\lua-5.2.3_Win32_bin\proto.dll'
        no file 'C:\Users\bimmanue\Downloads\lua-5.2.3_Win32_bin\loadall.dll'
        no file '.\proto.dll'
stack traceback:
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: in ?
objective : Am adding some lua scripts for customized protocol .


Regards,
Beno K Immanuel
Chennai, India
Mob: +91 9940791964
Email:
immanuel.beno@gmail.com




On Thu, Sep 11, 2014 at 3:15 PM, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:

Maybe first try;

Proto = require(“proto”)

 

Thijs

 

From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On Behalf Of immanuel.beno@gmail.com
Sent: donderdag 11 september 2014 10:49
To: lua-l@lists.lua.org
Subject: Proto api is not working in Lua5.2.3

 

> local proto_foo = Proto("test", "Test Protocol")

stdin:1: attempt to call global 'Proto' (a nil value)

stack traceback:

        stdin:1: in main chunk

        [C]: in ?

> 

 

pls help to fix this issue 

Regards,
Beno K Immanuel
Chennai, India
Mob: +91 9940791964
Email:immanuel.beno@gmail.com