Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win32api (LoadError) on Ubuntu 12.10 / rvm ruby-1.9.3-p385 #76

Open
robertgzr opened this issue Mar 21, 2013 · 1 comment
Open

win32api (LoadError) on Ubuntu 12.10 / rvm ruby-1.9.3-p385 #76

robertgzr opened this issue Mar 21, 2013 · 1 comment

Comments

@robertgzr
Copy link

`require': cannot load such file -- win32api (LoadError)

constantly getting this error when I am trying to execute example58.rb from Sublime Text 2
Screenshot from 2013-03-21 13:19:21

@ashbb
Copy link
Owner

ashbb commented Mar 24, 2013

@robtg Thanks for pointing out this issue. I've read the post about the same issue in the Shoes ML recently. I paste the dialogue here. It's not a solution, though...


Hi,

Is it possible for someone to test the video player on Linux?

I'm using Ubuntu 12.10 and green shoes. I've tried running the sample
code from the green shoes manual
http://ashbb.github.com/green_shoes/Video.html

and playing anything from a youtube video to a local mp3 and I always
get this error:

/home/sebastjan/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- win32api (LoadError)

thx
seba


Hi Seba, J and folks,

It may be my fault...
Could you try out the following patch?

D:\green_shoes\lib\plugins>diff video_old.rb video.rb
105c105
< require 'win32api'

  require 'win32api' if RUBY_PLATFORM =~ /mingw/

Regards,
ashbb


After patching I get the error below when I run the sample code from
green shoes manual. The app opens but no video is displayed. When play
is pressed the app crashes and the error is shown:

/home/sebastjan/.rvm/gems/ruby-1.9.3-p194/gems/green_shoes-1.1.365/lib/plugins/video.rb:45:in play': undefined methodxwindow_id=' for nil:NilClass
from video.rb:15:in `block (2 levels) in

'

regards
seba


Hi Seba,

Thanks for taking your time.
Umm,... need to find one more solution for Linux. :-P

Thanks again,
ashbb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants