readline module for rttlua completion

hi,

I've following error, although libreadline is installed,
where should it find this module?
it works with my orocos 2.5 installation, with orocos toolchain from debian pkgs (2.6) it fails?!
my system: kubuntu precise, ros fuerte, toolchain freshly from deb pkgs, rttlua completion fresh master

1.195 [ ERROR ][/opt/ros/fuerte/stacks/orocos_toolchain/ocl/bin/rttlua-gnulinux::main()] LuaComponent 'lua': ...es/itasc_devel_oro2_6/rttlua_completion/complete.lua:5:
module 'readline' not found:
no field package.preload['readline']
no file './readline.lua'
no file '/usr/local/share/lua/5.1/readline.lua'
no file '/usr/local/share/lua/5.1/readline/init.lua'
no file '/usr/local/lib/lua/5.1/readline.lua'
no file '/usr/local/lib/lua/5.1/readline/init.lua'
no file '/usr/share/lua/5.1/readline.lua'
no file '/usr/share/lua/5.1/readline/init.lua'
no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rFSM/readline.lua'
no file '/opt/ros/fuerte/stacks/orocos_toolchain/ocl/lua/modules/readline.lua'
no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.lua'
no file '/opt/ros/fuerte/stacks/orocos_kinematics_dynamics/kdl/readline.lua'
no file '/opt/ros/fuerte/stacks/rtt_geometry/kdl_lua/lua/readline.lua'
no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/youbot_hardware/youbot_driver_rtt/lua/readline.lua'
no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/uMF/readline.lua'
no file '/home/u0065688/lua_modules/readline.lua'
no file './readline.so'
no file '/usr/local/lib/lua/5.1/readline.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/readline.so'
no file '/usr/lib/lua/5.1/readline.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.so'

thx!

nick

readline module for rttlua completion

On Tue, Feb 19, 2013 at 06:33:48PM +0100, Dominick Vanthienen wrote:
> hi,
>
> I've following error, although libreadline is installed,
> where should it find this module?
> it works with my orocos 2.5 installation, with orocos toolchain from debian pkgs (2.6) it fails?!
> my system: kubuntu precise, ros fuerte, toolchain freshly from deb pkgs, rttlua completion fresh master
>
>
> 1.195 [ ERROR ][/opt/ros/fuerte/stacks/orocos_toolchain/ocl/bin/rttlua-gnulinux::main()] LuaComponent 'lua': ...es/itasc_devel_oro2_6/rttlua_completion/complete.lua:5:
> module 'readline' not found:
> no field package.preload['readline']
> no file './readline.lua'
> no file '/usr/local/share/lua/5.1/readline.lua'
> no file '/usr/local/share/lua/5.1/readline/init.lua'
> no file '/usr/local/lib/lua/5.1/readline.lua'
> no file '/usr/local/lib/lua/5.1/readline/init.lua'
> no file '/usr/share/lua/5.1/readline.lua'
> no file '/usr/share/lua/5.1/readline/init.lua'
> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rFSM/readline.lua'
> no file '/opt/ros/fuerte/stacks/orocos_toolchain/ocl/lua/modules/readline.lua'
> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.lua'
> no file '/opt/ros/fuerte/stacks/orocos_kinematics_dynamics/kdl/readline.lua'
> no file '/opt/ros/fuerte/stacks/rtt_geometry/kdl_lua/lua/readline.lua'
> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/youbot_hardware/youbot_driver_rtt/lua/readline.lua'
> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/uMF/readline.lua'
> no file '/home/u0065688/lua_modules/readline.lua'
> no file './readline.so'
> no file '/usr/local/lib/lua/5.1/readline.so'
> no file '/usr/lib/x86_64-linux-gnu/lua/5.1/readline.so'
> no file '/usr/lib/lua/5.1/readline.so'
> no file '/usr/local/lib/lua/5.1/loadall.so'
> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.so'

My guess is you forgot to properly setup your LUA_CPATH.

Markus

readline module for rttlua completion

On 02/19/2013 07:51 PM, Markus Klotzbuecher wrote:
> On Tue, Feb 19, 2013 at 06:33:48PM +0100, Dominick Vanthienen wrote:
>> hi,
>>
>> I've following error, although libreadline is installed,
>> where should it find this module?
>> it works with my orocos 2.5 installation, with orocos toolchain from debian pkgs (2.6) it fails?!
>> my system: kubuntu precise, ros fuerte, toolchain freshly from deb pkgs, rttlua completion fresh master
>>
>>
>> 1.195 [ ERROR ][/opt/ros/fuerte/stacks/orocos_toolchain/ocl/bin/rttlua-gnulinux::main()] LuaComponent 'lua': ...es/itasc_devel_oro2_6/rttlua_completion/complete.lua:5:
>> module 'readline' not found:
>> no field package.preload['readline']
>> no file './readline.lua'
>> no file '/usr/local/share/lua/5.1/readline.lua'
>> no file '/usr/local/share/lua/5.1/readline/init.lua'
>> no file '/usr/local/lib/lua/5.1/readline.lua'
>> no file '/usr/local/lib/lua/5.1/readline/init.lua'
>> no file '/usr/share/lua/5.1/readline.lua'
>> no file '/usr/share/lua/5.1/readline/init.lua'
>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rFSM/readline.lua'
>> no file '/opt/ros/fuerte/stacks/orocos_toolchain/ocl/lua/modules/readline.lua'
>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.lua'
>> no file '/opt/ros/fuerte/stacks/orocos_kinematics_dynamics/kdl/readline.lua'
>> no file '/opt/ros/fuerte/stacks/rtt_geometry/kdl_lua/lua/readline.lua'
>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/youbot_hardware/youbot_driver_rtt/lua/readline.lua'
>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/uMF/readline.lua'
>> no file '/home/u0065688/lua_modules/readline.lua'
>> no file './readline.so'
>> no file '/usr/local/lib/lua/5.1/readline.so'
>> no file '/usr/lib/x86_64-linux-gnu/lua/5.1/readline.so'
>> no file '/usr/lib/lua/5.1/readline.so'
>> no file '/usr/local/lib/lua/5.1/loadall.so'
>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.so'
>
> My guess is you forgot to properly setup your LUA_CPATH.
>
> Markus
>
I've put:

RTTLUA_MODULES=`rospack find ocl`/lua/modules/?.lua
if [ "x$LUA_PATH" == "x" ]; then
LUA_PATH=";;"
fi
if [ "x$LUA_CPATH" == "x" ]; then LUA_CPATH=";;"; fi
# configure LUA_PATH and LUA_CPATH so that the required Lua modules are found:
export LUA_PATH="$LUA_PATH;`rospack find rFSM`/?.lua;$RTTLUA_MODULES"
export LUA_PATH="$LUA_PATH;`rospack find rttlua_completion`/?.lua"
export LUA_PATH="$LUA_PATH;`rospack find kdl`/?.lua"
export LUA_PATH="$LUA_PATH;`rospack find kdl_lua`/lua/?.lua"
#export LUA_PATH="$LUA_PATH;`rospack find tff-dsl`/?.lua"
export LUA_PATH="$LUA_PATH;`rospack find youbot_driver_rtt`/lua/?.lua"
#export LUA_PATH="$LUA_PATH;`rospack find brick_stacking`/lua/?.lua"
export LUA_PATH="$LUA_PATH;`rospack find uMF`/?.lua"
export LUA_PATH="$LUA_PATH;/home/u0065688/lua_modules/?.lua"
#export LUA_PATH="$LUA_PATH;/home/u0065688/Documents/iTaSC/iTaSC_DSL/itasc_dsl/?.lua"

export LUA_CPATH="$LUA_CPATH;`rospack find rttlua_completion`/?.so"

export PATH="$PATH:`rosstack find orocos_toolchain`/install/bin:`rospack find uMF`"

this looks right no?

nick

readline module for rttlua completion

On Thu, Feb 21, 2013 at 09:18:58AM +0100, Dominick Vanthienen wrote:
>
>
> On 02/19/2013 07:51 PM, Markus Klotzbuecher wrote:
> >On Tue, Feb 19, 2013 at 06:33:48PM +0100, Dominick Vanthienen wrote:
> >>hi,
> >>
> >>I've following error, although libreadline is installed,
> >>where should it find this module?
> >>it works with my orocos 2.5 installation, with orocos toolchain from debian pkgs (2.6) it fails?!
> >>my system: kubuntu precise, ros fuerte, toolchain freshly from deb pkgs, rttlua completion fresh master
> >>
> >>
> >>1.195 [ ERROR ][/opt/ros/fuerte/stacks/orocos_toolchain/ocl/bin/rttlua-gnulinux::main()] LuaComponent 'lua': ...es/itasc_devel_oro2_6/rttlua_completion/complete.lua:5:
> >>module 'readline' not found:
> >> no field package.preload['readline']
> >> no file './readline.lua'
> >> no file '/usr/local/share/lua/5.1/readline.lua'
> >> no file '/usr/local/share/lua/5.1/readline/init.lua'
> >> no file '/usr/local/lib/lua/5.1/readline.lua'
> >> no file '/usr/local/lib/lua/5.1/readline/init.lua'
> >> no file '/usr/share/lua/5.1/readline.lua'
> >> no file '/usr/share/lua/5.1/readline/init.lua'
> >> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rFSM/readline.lua'
> >> no file '/opt/ros/fuerte/stacks/orocos_toolchain/ocl/lua/modules/readline.lua'
> >> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.lua'
> >> no file '/opt/ros/fuerte/stacks/orocos_kinematics_dynamics/kdl/readline.lua'
> >> no file '/opt/ros/fuerte/stacks/rtt_geometry/kdl_lua/lua/readline.lua'
> >> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/youbot_hardware/youbot_driver_rtt/lua/readline.lua'
> >> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/uMF/readline.lua'
> >> no file '/home/u0065688/lua_modules/readline.lua'
> >> no file './readline.so'
> >> no file '/usr/local/lib/lua/5.1/readline.so'
> >> no file '/usr/lib/x86_64-linux-gnu/lua/5.1/readline.so'
> >> no file '/usr/lib/lua/5.1/readline.so'
> >> no file '/usr/local/lib/lua/5.1/loadall.so'
> >> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.so'
> >
> >My guess is you forgot to properly setup your LUA_CPATH.
> >
> >Markus
> >
> I've put:
>
>
> RTTLUA_MODULES=`rospack find ocl`/lua/modules/?.lua
> if [ "x$LUA_PATH" == "x" ]; then
> LUA_PATH=";;"
> fi
> if [ "x$LUA_CPATH" == "x" ]; then LUA_CPATH=";;"; fi
> # configure LUA_PATH and LUA_CPATH so that the required Lua modules are found:
> export LUA_PATH="$LUA_PATH;`rospack find rFSM`/?.lua;$RTTLUA_MODULES"
> export LUA_PATH="$LUA_PATH;`rospack find rttlua_completion`/?.lua"
> export LUA_PATH="$LUA_PATH;`rospack find kdl`/?.lua"
> export LUA_PATH="$LUA_PATH;`rospack find kdl_lua`/lua/?.lua"
> #export LUA_PATH="$LUA_PATH;`rospack find tff-dsl`/?.lua"
> export LUA_PATH="$LUA_PATH;`rospack find youbot_driver_rtt`/lua/?.lua"
> #export LUA_PATH="$LUA_PATH;`rospack find brick_stacking`/lua/?.lua"
> export LUA_PATH="$LUA_PATH;`rospack find uMF`/?.lua"
> export LUA_PATH="$LUA_PATH;/home/u0065688/lua_modules/?.lua"
> #export LUA_PATH="$LUA_PATH;/home/u0065688/Documents/iTaSC/iTaSC_DSL/itasc_dsl/?.lua"
>
> export LUA_CPATH="$LUA_CPATH;`rospack find rttlua_completion`/?.so"
>
> export PATH="$PATH:`rosstack find orocos_toolchain`/install/bin:`rospack find uMF`"
>
> this looks right no?

Yep. Next, did you compile rttlua_completion, ie. is there a
readline.so in your rttlua_completion directory?

Markus

readline module for rttlua completion

On 02/21/2013 09:25 AM, Markus Klotzbuecher wrote:
> On Thu, Feb 21, 2013 at 09:18:58AM +0100, Dominick Vanthienen wrote:
>>
>>
>> On 02/19/2013 07:51 PM, Markus Klotzbuecher wrote:
>>> On Tue, Feb 19, 2013 at 06:33:48PM +0100, Dominick Vanthienen wrote:
>>>> hi,
>>>>
>>>> I've following error, although libreadline is installed,
>>>> where should it find this module?
>>>> it works with my orocos 2.5 installation, with orocos toolchain from debian pkgs (2.6) it fails?!
>>>> my system: kubuntu precise, ros fuerte, toolchain freshly from deb pkgs, rttlua completion fresh master
>>>>
>>>>
>>>> 1.195 [ ERROR ][/opt/ros/fuerte/stacks/orocos_toolchain/ocl/bin/rttlua-gnulinux::main()] LuaComponent 'lua': ...es/itasc_devel_oro2_6/rttlua_completion/complete.lua:5:
>>>> module 'readline' not found:
>>>> no field package.preload['readline']
>>>> no file './readline.lua'
>>>> no file '/usr/local/share/lua/5.1/readline.lua'
>>>> no file '/usr/local/share/lua/5.1/readline/init.lua'
>>>> no file '/usr/local/lib/lua/5.1/readline.lua'
>>>> no file '/usr/local/lib/lua/5.1/readline/init.lua'
>>>> no file '/usr/share/lua/5.1/readline.lua'
>>>> no file '/usr/share/lua/5.1/readline/init.lua'
>>>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rFSM/readline.lua'
>>>> no file '/opt/ros/fuerte/stacks/orocos_toolchain/ocl/lua/modules/readline.lua'
>>>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.lua'
>>>> no file '/opt/ros/fuerte/stacks/orocos_kinematics_dynamics/kdl/readline.lua'
>>>> no file '/opt/ros/fuerte/stacks/rtt_geometry/kdl_lua/lua/readline.lua'
>>>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/youbot_hardware/youbot_driver_rtt/lua/readline.lua'
>>>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/uMF/readline.lua'
>>>> no file '/home/u0065688/lua_modules/readline.lua'
>>>> no file './readline.so'
>>>> no file '/usr/local/lib/lua/5.1/readline.so'
>>>> no file '/usr/lib/x86_64-linux-gnu/lua/5.1/readline.so'
>>>> no file '/usr/lib/lua/5.1/readline.so'
>>>> no file '/usr/local/lib/lua/5.1/loadall.so'
>>>> no file '/home/u0065688/src/svn/robotics-ros/packages/itasc_devel_oro2_6/rttlua_completion/readline.so'
>>>
>>> My guess is you forgot to properly setup your LUA_CPATH.
>>>
>>> Markus
>>>
>> I've put:
>>
>>
>> RTTLUA_MODULES=`rospack find ocl`/lua/modules/?.lua
>> if [ "x$LUA_PATH" == "x" ]; then
>> LUA_PATH=";;"
>> fi
>> if [ "x$LUA_CPATH" == "x" ]; then LUA_CPATH=";;"; fi
>> # configure LUA_PATH and LUA_CPATH so that the required Lua modules are found:
>> export LUA_PATH="$LUA_PATH;`rospack find rFSM`/?.lua;$RTTLUA_MODULES"
>> export LUA_PATH="$LUA_PATH;`rospack find rttlua_completion`/?.lua"
>> export LUA_PATH="$LUA_PATH;`rospack find kdl`/?.lua"
>> export LUA_PATH="$LUA_PATH;`rospack find kdl_lua`/lua/?.lua"
>> #export LUA_PATH="$LUA_PATH;`rospack find tff-dsl`/?.lua"
>> export LUA_PATH="$LUA_PATH;`rospack find youbot_driver_rtt`/lua/?.lua"
>> #export LUA_PATH="$LUA_PATH;`rospack find brick_stacking`/lua/?.lua"
>> export LUA_PATH="$LUA_PATH;`rospack find uMF`/?.lua"
>> export LUA_PATH="$LUA_PATH;/home/u0065688/lua_modules/?.lua"
>> #export LUA_PATH="$LUA_PATH;/home/u0065688/Documents/iTaSC/iTaSC_DSL/itasc_dsl/?.lua"
>>
>> export LUA_CPATH="$LUA_CPATH;`rospack find rttlua_completion`/?.so"
>>
>> export PATH="$PATH:`rosstack find orocos_toolchain`/install/bin:`rospack find uMF`"
>>
>> this looks right no?
>
> Yep. Next, did you compile rttlua_completion, ie. is there a
> readline.so in your rttlua_completion directory?
aha, it seems I had two versions on my pc, and he used the one that wasn't compiled :)
=>solved
thx!
>
> Markus
>