GithubHelp home page GithubHelp logo

cannot load such file -- ox/ox about ox HOT 6 CLOSED

sobrinho avatar sobrinho commented on September 28, 2024
cannot load such file -- ox/ox

from ox.

Comments (6)

hsbt avatar hsbt commented on September 28, 2024 1

@sobrinho Can you try with ox-2.14.12? It seems same issue of #300. You may use the latest version of RubyGems in Ruby docker image.

from ox.

sobrinho avatar sobrinho commented on September 28, 2024
# ruby -v
ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]

# gem install ox
Fetching ox-2.14.11.gem
Building native extensions. This could take a while...
Successfully installed ox-2.14.11
1 gem installed

# irb
irb(main):001:0> gem 'ox', '2.14.11'
=> true
irb(main):002:0> require 'ox'
Traceback (most recent call last):
        9: from /usr/local/bin/irb:23:in `<main>'
        8: from /usr/local/bin/irb:23:in `load'
        7: from /usr/local/lib/ruby/gems/2.7.0/gems/irb-1.2.6/exe/irb:11:in `<top (required)>'
        6: from (irb):2
        5: from /usr/local/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
        4: from /usr/local/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
        3: from /usr/local/bundle/gems/ox-2.14.11/lib/ox.rb:79:in `<top (required)>'
        2: from /usr/local/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
        1: from /usr/local/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
LoadError (cannot load such file -- ox/ox)

from ox.

sobrinho avatar sobrinho commented on September 28, 2024

Works fine on docker, so, something might be messed up on CircleCI, but still not sure how to debug:

$ docker run --rm -it --platform=linux/amd64 ruby:2.7.6-buster bash
Unable to find image 'ruby:2.7.6-buster' locally
2.7.6-buster: Pulling from library/ruby
2730d739afad: Pull complete
a122751b3533: Pull complete
0a277c3efe7c: Pull complete
25c35b81c503: Pull complete
cb8cde86ddb2: Pull complete
1b4693b2324f: Pull complete
558286cb3a23: Pull complete
ca7d15697c52: Pull complete
Digest: sha256:f2ba73c31b11be325121bc5018231e21e13348c3b3bc75be44e7a6568893f5c1
Status: Downloaded newer image for ruby:2.7.6-buster
root@de375efbf8e4:/# ruby -v
ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]
root@de375efbf8e4:/# gem install ox
Fetching ox-2.14.11.gem
Building native extensions. This could take a while...
Successfully installed ox-2.14.11
1 gem installed
root@de375efbf8e4:/# irb
irb(main):001:0> gem 'ox', '2.14.11'
=> true
irb(main):002:0> require 'ox'
=> true
irb(main):003:0>

from ox.

ohler55 avatar ohler55 commented on September 28, 2024

What platform does Circle CI run on? Windows? Linux? MacOS?

from ox.

sobrinho avatar sobrinho commented on September 28, 2024

It worked, nice, thanks! ❤️

from ox.

mihika52 avatar mihika52 commented on September 28, 2024

I'm having the same kind of error.I'm using a mac m1 pro.How to fix it?I have already installed ox gem and its showing true.However the rails s command is still not working.

mhingar@IN-MHINGAR-MBP enlighten % rails s
/Users/mhingar/rails/enlighten/vendor/gems/rails_sql_views-0.8.0/rails_sql_views.gemspec:72: warning: constant Gem::RubyGemsVersion is deprecated
/Users/mhingar/rails/enlighten/vendor/gems/rails_sql_views-0.8.0/rails_sql_views.gemspec:72: warning: constant Gem::RubyGemsVersion is deprecated
DEPRECATED: Please use restforce (https://github.com/ejholmes/restforce) instead.
Traceback (most recent call last):
24: from bin/rails:4:in <main>' 23: from bin/rails:4:in require'
22: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/railties-5.2.3/lib/rails/commands.rb:18:in <top (required)>' 21: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/railties-5.2.3/lib/rails/command.rb:46:in invoke'
20: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/railties-5.2.3/lib/rails/command/base.rb:65:in perform' 19: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/thor-1.0.1/lib/thor.rb:392:in dispatch'
18: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command' 17: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/thor-1.0.1/lib/thor/command.rb:27:in run'
16: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in perform' 15: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in tap'
14: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:145:in block in perform' 13: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:145:in require'
12: from /Users/mhingar/rails/enlighten/config/application.rb:15:in <top (required)>' 11: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/bundler-1.17.3/lib/bundler.rb:114:in require'
10: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in require' 9: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in each'
8: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in block in require' 7: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in each'
6: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in block (2 levels) in require' 5: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in require'
4: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/ox-2.13.2/lib/ox.rb:79:in <top (required)>' 3: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require'
2: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 1: from /Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in block in require'
/Users/mhingar/.rvm/gems/ruby-2.6.5@enlighten_upgrade/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require': cannot load such file -- ox/ox (LoadError)

from ox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.