Giter Site home page Giter Site logo

Psych.load doesn't work on Heroku about psych HOT 12 CLOSED

ruby avatar ruby commented on July 28, 2024
Psych.load doesn't work on Heroku

from psych.

Comments (12)

tenderlove avatar tenderlove commented on July 28, 2024

What version of Ruby are you running on your local machine?

from psych.

ncri avatar ncri commented on July 28, 2024

ruby-1.9.2-p290-railsexpress [ x86_64 ], a patched ruby installed via rvm

from psych.

ncri avatar ncri commented on July 28, 2024

Oh, and I don't have the psych gem installed. Ruby 1.9.2 comes with Psych, right? Or where is it coming from otherwise?

from psych.

ncri avatar ncri commented on July 28, 2024

With ruby-1.9.3-p0 it works too (without the gem installed).

from psych.

tenderlove avatar tenderlove commented on July 28, 2024

Ya, it's in 1.9.2. It seems like somehow you're doing a require on psych in development but not in production. I'm not sure where that might be happening though.

from psych.

ncri avatar ncri commented on July 28, 2024

Okay, I was suspecting the localeapp gem as I found the error through that, but it doesn't have require 'psych' anywhere, neither does my rails app...

from psych.

tenderlove avatar tenderlove commented on July 28, 2024

I'm guessing that some library code (possibly rails?) is doing it in development but not production. Can you try adding a require 'psych' to your application.rb?

from psych.

ncri avatar ncri commented on July 28, 2024

See this issue: Locale/localeapp#27

from psych.

ncri avatar ncri commented on July 28, 2024

Hm, require 'psych' doesn't work on Heroku, it gives me "LoadError: no such file to load -- psych" locally it works though...

from psych.

tenderlove avatar tenderlove commented on July 28, 2024

Seems like they don't have it installed for Ruby 1.9.2. I think this should be fixed in localeapp. Checking for the Psych constant isn't the best way to detect if Psych has been loaded or not. I'll comment on that issue with how to fix.

from psych.

ncri avatar ncri commented on July 28, 2024

Thanks, I guess we can close this then?

from psych.

 avatar commented on July 28, 2024

I am also getting same error of "LoadError: no such file to load -- psych" on heroku with ruby 1.9.2. Is there any way i can fix it?

from psych.

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.