rpc module not loaded in luarpc

classic Classic list List threaded Threaded
5 messages Options
Richard Möhn Richard Möhn
Reply | Threaded
Open this post in threaded view
|

rpc module not loaded in luarpc

Hi!

I'm trying to use the LuaRPC facility and therefore built the executable
for the desktop client/server with:

    $ lua rpc-lua.lua

After getting errors with the RPC example at
http://wiki.eluaproject.net/LuaRPC%20in%20eLua, I wrote this script:

    for k, v in pairs(_G) do
        print(k, v)
    end

    print(luarpc)
   
Executing with

    $ ./luarpc bla.lua

gives:

    print function: 0x85b860
    xpcall function: 0x85c4d0
    rawset function: 0x85c790
    load function: 0x85c050
    _G table: 0x85b6d0
    gcinfo function: 0x85bee0
    newproxy function: 0x85cfb0
    pairs function: 0x85ce90
    getmetatable function: 0x85c1d0
    ipairs function: 0x85cdf0
    unpack function: 0x85c470
    _VERSION Lua 5.1
    __index function: 0x85cd30
    pcall function: 0x85c170
    getfenv function: 0x85bf40
    tostring function: 0x85c3b0
    type function: 0x85c410
    setmetatable function: 0x85c2f0
    next function: 0x85c110
    select function: 0x85b720
    assert function: 0x85be20
    tonumber function: 0x85c350
    rawget function: 0x85c730
    loadstring function: 0x85c0b0
    setfenv function: 0x85c290
    rawequal function: 0x85b8c0
    dofile function: 0x85bf90
    collectgarbage function: 0x85be80
    arg table: 0x85d020
    error function: 0x85bff0
    loadfile function: 0x85c230
    nil

The less interesting thing is that there is no "require" function, which
might be intended. The more interesting thing is that the "rpc" module,
which was advertised to be loaded, isn't there.

I also tried the old scons build script. In vain.

Best,

Richard
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
jbsnyder jbsnyder
Reply | Threaded
Open this post in threaded view
|

Re: rpc module not loaded in luarpc

Thanks for the report.  I'm seeing the same thing here.

I believe that happened when we merged the newer build system which changed how modules were configured.  I've not yet had enough time to familiarize myself with it to put in a correct fix quickly.

Bogdan, if you're around, what would be the simplest way to incorporate the defines from inc/desktop/platform_conf.h?

If Bogdan isn't around I'll try looking into this.


On Sun, Aug 11, 2013 at 7:26 AM, Richard Möhn <[hidden email]> wrote:
Hi!

I'm trying to use the LuaRPC facility and therefore built the executable
for the desktop client/server with:

    $ lua rpc-lua.lua

After getting errors with the RPC example at
http://wiki.eluaproject.net/LuaRPC%20in%20eLua, I wrote this script:

    for k, v in pairs(_G) do
        print(k, v)
    end

    print(luarpc)

Executing with

    $ ./luarpc bla.lua

gives:

    print       function: 0x85b860
    xpcall      function: 0x85c4d0
    rawset      function: 0x85c790
    load        function: 0x85c050
    _G  table: 0x85b6d0
    gcinfo      function: 0x85bee0
    newproxy    function: 0x85cfb0
    pairs       function: 0x85ce90
    getmetatable        function: 0x85c1d0
    ipairs      function: 0x85cdf0
    unpack      function: 0x85c470
    _VERSION    Lua 5.1
    __index     function: 0x85cd30
    pcall       function: 0x85c170
    getfenv     function: 0x85bf40
    tostring    function: 0x85c3b0
    type        function: 0x85c410
    setmetatable        function: 0x85c2f0
    next        function: 0x85c110
    select      function: 0x85b720
    assert      function: 0x85be20
    tonumber    function: 0x85c350
    rawget      function: 0x85c730
    loadstring  function: 0x85c0b0
    setfenv     function: 0x85c290
    rawequal    function: 0x85b8c0
    dofile      function: 0x85bf90
    collectgarbage      function: 0x85be80
    arg table: 0x85d020
    error       function: 0x85bff0
    loadfile    function: 0x85c230
    nil

The less interesting thing is that there is no "require" function, which
might be intended. The more interesting thing is that the "rpc" module,
which was advertised to be loaded, isn't there.

I also tried the old scons build script. In vain.

Best,

Richard
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



--
James Snyder
Biomedical Engineering
Northwestern University
http://fanplastic.org/key.txt
ph: (847) 448-0386

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
jbsnyder jbsnyder
Reply | Threaded
Open this post in threaded view
|

Re: rpc module not loaded in luarpc

Sorry for the delay on this one.  I've put in a modification that should have the modules included in the master repository.

-jsnyder


On Mon, Aug 12, 2013 at 12:23 PM, James Snyder <[hidden email]> wrote:
Thanks for the report.  I'm seeing the same thing here.

I believe that happened when we merged the newer build system which changed how modules were configured.  I've not yet had enough time to familiarize myself with it to put in a correct fix quickly.

Bogdan, if you're around, what would be the simplest way to incorporate the defines from inc/desktop/platform_conf.h?

If Bogdan isn't around I'll try looking into this.


On Sun, Aug 11, 2013 at 7:26 AM, Richard Möhn <[hidden email]> wrote:
Hi!

I'm trying to use the LuaRPC facility and therefore built the executable
for the desktop client/server with:

    $ lua rpc-lua.lua

After getting errors with the RPC example at
http://wiki.eluaproject.net/LuaRPC%20in%20eLua, I wrote this script:

    for k, v in pairs(_G) do
        print(k, v)
    end

    print(luarpc)

Executing with

    $ ./luarpc bla.lua

gives:

    print       function: 0x85b860
    xpcall      function: 0x85c4d0
    rawset      function: 0x85c790
    load        function: 0x85c050
    _G  table: 0x85b6d0
    gcinfo      function: 0x85bee0
    newproxy    function: 0x85cfb0
    pairs       function: 0x85ce90
    getmetatable        function: 0x85c1d0
    ipairs      function: 0x85cdf0
    unpack      function: 0x85c470
    _VERSION    Lua 5.1
    __index     function: 0x85cd30
    pcall       function: 0x85c170
    getfenv     function: 0x85bf40
    tostring    function: 0x85c3b0
    type        function: 0x85c410
    setmetatable        function: 0x85c2f0
    next        function: 0x85c110
    select      function: 0x85b720
    assert      function: 0x85be20
    tonumber    function: 0x85c350
    rawget      function: 0x85c730
    loadstring  function: 0x85c0b0
    setfenv     function: 0x85c290
    rawequal    function: 0x85b8c0
    dofile      function: 0x85bf90
    collectgarbage      function: 0x85be80
    arg table: 0x85d020
    error       function: 0x85bff0
    loadfile    function: 0x85c230
    nil

The less interesting thing is that there is no "require" function, which
might be intended. The more interesting thing is that the "rpc" module,
which was advertised to be loaded, isn't there.

I also tried the old scons build script. In vain.

Best,

Richard
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



--
James Snyder
Biomedical Engineering
Northwestern University
http://fanplastic.org/key.txt
ph: <a href="tel:%28847%29%20448-0386" value="+18474480386" target="_blank">(847) 448-0386



--
James Snyder
Biomedical Engineering
Northwestern University
http://fanplastic.org/key.txt
ph: (847) 448-0386

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Richard Möhn Richard Möhn
Reply | Threaded
Open this post in threaded view
|

Re: rpc module not loaded in luarpc

On Wed, Aug 14, 2013 at 05:17:01PM -0500, James Snyder wrote:
> Sorry for the delay on this one.  I've put in a modification that should
> have the modules included in the master repository.


Thanks a lot for that. It didn't work at first as rpc.connect() hang
forever. Now I've looked into it, again, and found that in
stm32f4discovery.lua sercon.uart was set to 0. As I'm operating the
board through USB, I set it to "cdc" and it works.

Best,

Richard
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Richard Möhn Richard Möhn
Reply | Threaded
Open this post in threaded view
|

Re: rpc module not loaded in luarpc

On Tue, Oct 01, 2013 at 08:21:43AM +0200, Richard Möhn wrote:
> On Wed, Aug 14, 2013 at 05:17:01PM -0500, James Snyder wrote:
> > Sorry for the delay on this one.  I've put in a modification that should
> > have the modules included in the master repository.
>
>
> Thanks a lot for that. It didn't work at first as rpc.connect() hang
> forever. Now I've looked into it, again, and found that in
> stm32f4discovery.lua sercon.uart was set to 0. As I'm operating the
> board through USB, I set it to "cdc" and it works.

rpc.uart I mean, of course. Sorry.
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev