Bug 1836201
Summary: | rubygem-psych: `<class:Parser>': superclass mismatch for class Mark (TypeError) | |||
---|---|---|---|---|
Product: | Red Hat Software Collections | Reporter: | David Jež <djez> | |
Component: | rh-ruby27 | Assignee: | ruby maint <ruby-maint> | |
Status: | CLOSED WONTFIX | QA Contact: | RHEL CS Apps Subsystem QE <rhel-cs-apps-subsystem-qe> | |
Severity: | unspecified | Docs Contact: | Lenka Špačková <lkuprova> | |
Priority: | unspecified | |||
Version: | rh-ruby27 | CC: | jaruga, pvalena, vondruch | |
Target Milestone: | --- | |||
Target Release: | 3.7 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Known Issue | ||
Doc Text: |
rh-ruby27 component
When a custom script requires the Psych YAML parser and afterwards uses the Gem.load_yaml method, running the script fails with the following error message:
superclass mismatch for class Mark (TypeError)
To work around this problem, add the gem 'psych' line to the script somewhere above the require 'psych' line:
...
gem 'psych'
...
require 'psych'
Gem.load_yaml
|
Story Points: | --- | |
Clone Of: | 1835836 | |||
: | 1842989 (view as bug list) | Environment: | ||
Last Closed: | 2021-11-15 07:27:04 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1835836 | |||
Bug Blocks: | 1842989 |
Description
David Jež
2020-05-15 12:10:53 UTC
(In reply to Jun Aruga from comment #3) > The following script works, > > ``` > gem 'psych' > require 'psych' > gem 'psych' > require 'psych' > ``` > > while the following script does not work. > > ``` > require 'psych' > gem 'psych' > require 'psych' > ``` The issue is more complex, but `gem 'psych'` is approximately equivalent to `RUBYOPT=-I/usr/share/gems/gems/psych-3.1.0/lib/:/usr/lib64/gems/ruby/psych-3.1.0/`, so it changes where the Psych is loaded from. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |