[Rock-dev] Error in System management tutorial: moving to bundles

Martin.Azkarate at esa.int Martin.Azkarate at esa.int
Thu Dec 5 18:33:02 CET 2013


Good evening,

Did a new bootstrap and now rock is using the right ruby version (1.9.1). 
Still roby init or syskit init does not work apparently because rock fails 
to find the bundle "rock" . 
I thought this bundle would be installed by default with the bootstrap. 
Isn't that the case? see below for details on the command output. 
Thanks, 


lrm at ubuntu:~/rock/bundles/tutorial$ roby init
16:59:54.161 (Roby) cannot load plugin 
/home/lrm/rock/base/scripts/lib/rock/roby_plugin.rb: 
/home/lrm/rock/base/scripts/lib/rock/bundle.rb:243:in `block in 
discover_dependencies': could not find bundle rock, listed as dependency 
in tutorial (/home/lrm/rock/bundles/tutorial) 
(Rock::Bundles::BundleNotFound)
from /home/lrm/rock/base/scripts/lib/rock/bundle.rb:77:in `each'
from /home/lrm/rock/base/scripts/lib/rock/bundle.rb:77:in 
`each_dependency'
from /home/lrm/rock/base/scripts/lib/rock/bundle.rb:240:in 
`discover_dependencies'
from /home/lrm/rock/base/scripts/lib/rock/bundle.rb:263:in 
`setup_search_paths'
from /home/lrm/rock/base/scripts/lib/rock/roby_plugin.rb:2:in `<top 
(required)>'
from /home/lrm/rock/tools/roby/lib/roby/app.rb:798:in `require'
from /home/lrm/rock/tools/roby/lib/roby/app.rb:798:in `block in require'
from /home/lrm/rock/tools/roby/lib/roby/app.rb:776:in 
`isolate_load_errors'
from /home/lrm/rock/tools/roby/lib/roby/app.rb:794:in `require'
from /home/lrm/rock/tools/roby/lib/roby/app.rb:435:in `load_plugin_file'
from /home/lrm/rock/tools/roby/lib/roby/app.rb:523:in `block in 
register_plugins'
from /home/lrm/rock/tools/roby/lib/roby/app.rb:519:in `each'
from /home/lrm/rock/tools/roby/lib/roby/app.rb:519:in `register_plugins'
from /home/lrm/rock/tools/roby/lib/roby/app.rb:531:in `using'
from /home/lrm/rock/bundles/tutorial/config/init.rb:16:in `<top 
(required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/lrm/rock/tools/roby/lib/roby/app/installer.rb:11:in 
`initialize'
from /home/lrm/rock/tools/roby/lib/roby/app/scripts/init.rb:4:in `new'
from /home/lrm/rock/tools/roby/lib/roby/app/scripts/init.rb:4:in `<top 
(required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/lrm/rock/tools/roby/bin/roby:7:in `<main>'


Martin Azkarate
ESA - European Space Agency
Spanish Trainee, TEC-MMA - Automation and Robotics Section 
ESTEC - European Space research and TEchnology Centre
Keplerlaan 1, PO Box 299 
NL-2200 AG Noordwijk, The Netherlands 
Martin.Azkarate at esa.int | www.esa.int 
Tel +31 71 565 3480 | Mob +31 650 625 564 



From:   Matthias Goldhoorn <matthias.goldhoorn at dfki.de>
To:     rock-dev at dfki.de, Martin.Azkarate at esa.int
Date:   21/11/2013 21:15
Subject:        Re: [Rock-dev] Error in System management tutorial: moving 
to      bundles
Sent by:        rock-dev-bounces at dfki.de



Goot evening,
The ruby version is chosen (and cached) during the bootstrapping of you 
installation.
Unfortunalty so if you change the ruby version you have to re-bootstrap 
rock.
There is no way to change ruby on a installed version (without causing 
inconsistency), so re-bootstrapping is the easiest way.

But since you not sure that ruby1.8 is deinstalled this would be the last 
step ;).

You're still welcome,
Matthias

On 21.11.2013 20:14, Martin.Azkarate at esa.int wrote:
Hi, sorry for the delay, 

I have the latest version of ruby installed. However when I run the 
command for roby init I get the error that I already showed the last time. 
So rock is still using ruby 1.8 even though I had 1.9 installed. 

So I decided to simply removed ruby1.8 by: 

sudo apt-get remove ruby1.8 

which also removed rubygems1.8 and other related packages. I then run 
again update-alternatives just in case but there was nothing to upgrade. 
So far so good, 

however rock still tries to run the 1.8 version of ruby when it needs to, 
see command sequence below: 

lrm at ubuntu:~$ ruby --version 
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] 
lrm at ubuntu:~$ cd rock/ 
lrm at ubuntu:~/rock$ . env.sh 
lrm at ubuntu:~/rock$ ruby --version 
/home/lrm/rock/install/bin/ruby: 2: exec: /usr/bin/ruby1.8: not found 
lrm at ubuntu:~/rock$ autoproj update 
bash: /home/lrm/rock/.gems/bin/autoproj: /usr/bin/ruby1.8: bad 
interpreter: No such file or directory 

Attached the env.sh file where you can see that some env variables point 
to version 1.8 of ruby. I tried to change it manually but result is the 
same. I'm guessing this must have an easy fix... 



Thanks again, 

Cheers,
Martin Azkarate 
ESA - European Space Agency
Spanish Trainee, TEC-MMA - Automation and Robotics Section 
ESTEC - European Space research and TEchnology Centre
Keplerlaan 1, PO Box 299 
NL-2200 AG Noordwijk, The Netherlands 
Martin.Azkarate at esa.int | www.esa.int 
Tel +31 71 565 3480 | Mob +31 650 625 564 



From:        Steffen Planthaber <Steffen.Planthaber at dfki.de> 
To:        rock-dev at dfki.de 
Date:        20/11/2013 15:35 
Subject:        Re: [Rock-dev] Error in System management tutorial: moving 
to        bundles 
Sent by:        rock-dev-bounces at dfki.de 



Hi,

Am 20.11.2013 15:20, schrieb Martin Zenzes:
> so based on the current bootstrap-script, the following will work for
> transterra (i will commit it to the SVN, as soon as compiling finished)

The svn location is project-specific, the default location should be 
(correct me if i'm wrong) the buildconf git repository (where externals 
would search for it).

The "buildconf" repository is the autoproj/ folder after bootstrapping 
(successfully) it is renamed, so the correct location in your folders 
is: autoproj/bootstrap.sh

Best, Steffen




-- 
 Steffen Planthaber
 Weltraumrobotik

 ###############################################
 #### Neue Anschrift und neue Kontaktdaten! ####
 ###############################################

 DFKI Bremen
 Robotics Innovation Center
 Robert-Hooke-Str.5
 28359 Bremen, Germany

 Phone: +49 (0)421 178 45 - 4125
 Fax:   +49 (0)421 218 - 64150
 E-Mail: steffen.planthaber at dfki.de

 Weitere Informationen: http://www.dfki.de/robotik
 -----------------------------------------------------------------------
 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
 Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
 Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
 (Vorsitzender) Dr. Walter Olthoff
 Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
 Amtsgericht Kaiserslautern, HRB 2313
 Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
 USt-Id.Nr.:    DE 148646973
 Steuernummer:  19/673/0060/3
 -----------------------------------------------------------------------

_______________________________________________
Rock-dev mailing list
Rock-dev at dfki.de
http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev

This message and any attachments are intended for the use of the addressee 
or addressees only. The unauthorised disclosure, use, dissemination or 
copying (either in whole or in part) of its content is not permitted. If 
you received this message in error, please notify the sender and delete it 
from your system. Emails can be altered and their integrity cannot be 
guaranteed by the sender.

Please consider the environment before printing this email.



_______________________________________________
Rock-dev mailing list
Rock-dev at dfki.de
http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev



-- 
 -- 
 Matthias Goldhoorn
 Unterwasserrobotik
 
 Standort Bremen:
 DFKI GmbH
 Robotics Innovation Center
 Robert-Hooke-Straße 5
 28359 Bremen, Germany
 
 Phone: +49 (0)421 218-64100
 Fax:   +49 (0)421 218-64150
 E-Mail: robotik at dfki.de
 
 Weitere Informationen: http://www.dfki.de/robotik
 -----------------------------------------------------------------------
 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
 Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
 Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster 
 (Vorsitzender) Dr. Walter Olthoff
 Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
 Amtsgericht Kaiserslautern, HRB 2313
 Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
 USt-Id.Nr.:    DE 148646973
 Steuernummer:  19/673/0060/3 
 -----------------------------------------------------------------------


_______________________________________________
Rock-dev mailing list
Rock-dev at dfki.de
http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev


This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender.

Please consider the environment before printing this email.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20131205/61ecf177/attachment-0001.htm 


More information about the Rock-dev mailing list