Skip to content

Missing base64 dependencyย #225

@andyw8

Description

@andyw8

When running on Ruby 3.4.7, I'm seeing the error below. I suspect base64 needs to be explicitly listed in the gemspec. (I'm unsure why it's a 'warning' but still causes an error).

4: warning: base64 was loaded from the standard library, but is not part of the default gems starting from Ruby 3.4.0.
You can add base64 to your Gemfile or gemspec to silence this warning.

...

LoadError: cannot load such file -- base64
    /Users/andy/.local/share/mise/installs/ruby/3.4.7/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
    /Users/andy/.local/share/mise/installs/ruby/3.4.7/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
    /Users/andy/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/zeitwerk-2.7.3/lib/zeitwerk/core_ext/kernel.rb:34:in 'Kernel#require'
    /Users/andy/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/openai-0.35.2/lib/openai/resources/webhooks.rb:4:in '<top (required)>'
    /Users/andy/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/openai-0.35.2/lib/openai.rb:760:in 'Kernel#require_relative'
    /Users/andy/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/openai-0.35.2/lib/openai.rb:760:in '<top (required)>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions