librelist archives

« back to archive

can't run samples in shoes4

can't run samples in shoes4

From:
Sebastjan Hribar
Date:
2014-02-11 @ 15:09
Hi,

I'm slowly moving to shoes4 and I managed to resolve the jruby issue (I 
think I've written about it before). FWIW I needed to update the rvm and 
rubygems.

However, when running samples I get the error below:

------------------------
sebah@seba-HP-EliteBook-8770w:~/Dokumenti/projekti/shoes4/shoes4$ 
bin/shoes samples/simple-sound.rb
LoadError: Couldn't load backend Shoes::Swt'. Error: no such file to 
load -- swt
org/jruby/RubyKernel.java:1083:in `require'

/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in

`require'

/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in

`require'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/swt.rb:2:in `(root)'
org/jruby/RubyKernel.java:1083:in `require'

/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in

`require'

/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in

`require'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes.rb:1:in `(root)'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes.rb:49:in 
`load_backend'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/configuration.rb:10:in 
`backend'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:99:in 
`setup_gui'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:31:in 
`initialize'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:15:in `app'
org/jruby/RubyKernel.java:1099:in `load'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/samples/simple-sound.rb:1:in `(root)'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/cli.rb:1:in `(root)'
/home/sebah/Dokumenti/projekti/shoes4/shoes4/bin/ruby-shoes:6:in `(root)'
   load_backend at 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes.rb:52
        backend at 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/configuration.rb:10
      setup_gui at 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:99
     initialize at 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:31
            app at 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:15
         (root) at 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/samples/simple-sound.rb:1
           load at org/jruby/RubyKernel.java:1099
         (root) at 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/cli.rb:1
    execute_app at 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/cli.rb:73
         (root) at 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/bin/ruby-shoes:6
-----------------------------
I've installed the swt libraries in my ubuntu distro.
Any thoughts?

thank you.
regards seba

Re: [shoes] can't run samples in shoes4

From:
Tobias Pfeiffer
Date:
2014-02-12 @ 12:05
Hi Seba,

thanks for trying this out!

Weirldy this error seems to pop up some times but we've no idea under 
what circumstances... you do not need to install SWT libraries with 
Ubuntu, the 'swt' ships with all the SWT libraries we actually need.

It seems like it fails to load the SWT gem, maybe try reinstalling that 
gem is my guess for now...

Cheers,
Tobi

On Tue 11 Feb 2014 04:09:03 PM CET, Sebastjan Hribar wrote:
> Hi,
>
> I'm slowly moving to shoes4 and I managed to resolve the jruby issue (I
> think I've written about it before). FWIW I needed to update the rvm and
> rubygems.
>
> However, when running samples I get the error below:
>
> ------------------------
> sebah@seba-HP-EliteBook-8770w:~/Dokumenti/projekti/shoes4/shoes4$
> bin/shoes samples/simple-sound.rb
> LoadError: Couldn't load backend Shoes::Swt'. Error: no such file to
> load -- swt
> org/jruby/RubyKernel.java:1083:in `require'
> 
/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in
> `require'
> 
/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in
> `require'
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/swt.rb:2:in `(root)'
> org/jruby/RubyKernel.java:1083:in `require'
> 
/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in
> `require'
> 
/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in
> `require'
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes.rb:1:in `(root)'
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes.rb:49:in
> `load_backend'
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/configuration.rb:10:in
> `backend'
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:99:in
> `setup_gui'
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:31:in
> `initialize'
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:15:in `app'
> org/jruby/RubyKernel.java:1099:in `load'
> 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/samples/simple-sound.rb:1:in 
`(root)'
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/cli.rb:1:in `(root)'
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/bin/ruby-shoes:6:in `(root)'
>    load_backend at
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes.rb:52
>         backend at
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/configuration.rb:10
>       setup_gui at
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:99
>      initialize at
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:31
>             app at
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:15
>          (root) at
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/samples/simple-sound.rb:1
>            load at org/jruby/RubyKernel.java:1099
>          (root) at
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/cli.rb:1
>     execute_app at
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/cli.rb:73
>          (root) at
> /home/sebah/Dokumenti/projekti/shoes4/shoes4/bin/ruby-shoes:6
> -----------------------------
> I've installed the swt libraries in my ubuntu distro.
> Any thoughts?
>
> thank you.
> regards seba
>

Re: [shoes] can't run samples in shoes4

From:
Sebastjan Hribar
Date:
2014-02-15 @ 17:57
Hi Tobi,

after installing the swt and after_do gems shoes4 is up and running:)
Some samples still fail, but as I can gather from the error messages 
it's about the samples' code rather that the shoes environment.

regards,
seba

Dne 12. 02. 2014 13:05, piše Tobias Pfeiffer:
> Hi Seba,
>
> thanks for trying this out!
>
> Weirldy this error seems to pop up some times but we've no idea under
> what circumstances... you do not need to install SWT libraries with
> Ubuntu, the 'swt' ships with all the SWT libraries we actually need.
>
> It seems like it fails to load the SWT gem, maybe try reinstalling that
> gem is my guess for now...
>
> Cheers,
> Tobi
>
> On Tue 11 Feb 2014 04:09:03 PM CET, Sebastjan Hribar wrote:
>> Hi,
>>
>> I'm slowly moving to shoes4 and I managed to resolve the jruby issue (I
>> think I've written about it before). FWIW I needed to update the rvm and
>> rubygems.
>>
>> However, when running samples I get the error below:
>>
>> ------------------------
>> sebah@seba-HP-EliteBook-8770w:~/Dokumenti/projekti/shoes4/shoes4$
>> bin/shoes samples/simple-sound.rb
>> LoadError: Couldn't load backend Shoes::Swt'. Error: no such file to
>> load -- swt
>> org/jruby/RubyKernel.java:1083:in `require'
>> 
/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in
>> `require'
>> 
/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in
>> `require'
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/swt.rb:2:in `(root)'
>> org/jruby/RubyKernel.java:1083:in `require'
>> 
/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in
>> `require'
>> 
/home/sebah/.rvm/rubies/jruby-1.7.10/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in
>> `require'
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes.rb:1:in `(root)'
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes.rb:49:in
>> `load_backend'
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/configuration.rb:10:in
>> `backend'
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:99:in
>> `setup_gui'
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:31:in
>> `initialize'
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:15:in `app'
>> org/jruby/RubyKernel.java:1099:in `load'
>> 
/home/sebah/Dokumenti/projekti/shoes4/shoes4/samples/simple-sound.rb:1:in 
`(root)'
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/cli.rb:1:in `(root)'
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/bin/ruby-shoes:6:in `(root)'
>>     load_backend at
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes.rb:52
>>          backend at
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/configuration.rb:10
>>        setup_gui at
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:99
>>       initialize at
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:31
>>              app at
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/app.rb:15
>>           (root) at
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/samples/simple-sound.rb:1
>>             load at org/jruby/RubyKernel.java:1099
>>           (root) at
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/cli.rb:1
>>      execute_app at
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/lib/shoes/cli.rb:73
>>           (root) at
>> /home/sebah/Dokumenti/projekti/shoes4/shoes4/bin/ruby-shoes:6
>> -----------------------------
>> I've installed the swt libraries in my ubuntu distro.
>> Any thoughts?
>>
>> thank you.
>> regards seba
>>