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

undefined method "render_cairo" #368

Open
neoaez opened this issue Jan 30, 2022 · 0 comments
Open

undefined method "render_cairo" #368

neoaez opened this issue Jan 30, 2022 · 0 comments
Labels

Comments

@neoaez
Copy link

neoaez commented Jan 30, 2022

Fresh install of Squib and Ruby 2.7.5-1. I'm getting this error when running a previously working project.

C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rsvg2-3.5.1/lib/rsvg2/cairo.rb:24:in render_rsvg_handle': undefined method render_cairo' for #<Rsvg::Handle:00000125bbd9e338 ptr=00000125bd6ab540> (NoMethodError)

No luck trying to find a solution for this in my searching. Not sure if this is a Cairo or RSVG issue.

Full error:

`C:\Users\JCollins\Dropbox\dev\squib\sellswords>ruby enemydeck.rb
Number cards is 1
Traceback (most recent call last):
        21: from enemydeck.rb:13:in `<main>'
        20: from enemydeck.rb:13:in `new'
        19: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/deck.rb:75:in `initialize'
        18: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/deck.rb:75:in `instance_eval'
        17: from enemydeck.rb:24:in `block in <main>'
        16: from enemydeck.rb:24:in `each'
        15: from enemydeck.rb:25:in `block (2 levels) in <main>'
        14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/dsl/svg.rb:12:in `svg'
        13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/dsl/svg.rb:42:in `run'
        12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/dsl/svg.rb:42:in `chdir'
        11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/dsl/svg.rb:49:in `block in run'
        10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/progress.rb:32:in `start'
         9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/dsl/svg.rb:50:in `block (2 levels) in run'
         8: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/args/card_range.rb:16:in `each'
         7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/args/card_range.rb:16:in `each'
         6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/args/card_range.rb:16:in `block in each'
         5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/dsl/svg.rb:52:in `block (3 levels) in run'
         4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/graphics/image.rb:97:in `svg'
         3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/card.rb:51:in `use_cairo'
         2: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/squib-0.18.0/lib/squib/graphics/image.rb:111:in `block in svg'
         1: from C:/Ruby27-x64/lib/ruby/2.7.0/forwardable.rb:235:in `render_rsvg_handle'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rsvg2-3.5.1/lib/rsvg2/cairo.rb:24:in `render_rsvg_handle': undefined method `render_cairo' for #<Rsvg::Handle:00000125bbd9e338 ptr=00000125bd6ab540> (NoMethodError)`
@andymeneely andymeneely added the bug label Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants