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

NameError: uninitialized constant Class::Date from irb #852

Closed
tymat opened this issue Jun 28, 2015 · 4 comments
Closed

NameError: uninitialized constant Class::Date from irb #852

tymat opened this issue Jun 28, 2015 · 4 comments

Comments

@tymat
Copy link

tymat commented Jun 28, 2015


2.2.1 :001 > require 'neo4j'
NameError: uninitialized constant Class::Date
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j/shared/type_converters.rb:7:in `convert_type'
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j/shared/type_converters.rb:171:in `register_converter'
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j/shared/type_converters.rb:153:in `block in included'
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j/shared/type_converters.rb:151:in `each'
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j/shared/type_converters.rb:151:in `included'
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j/type_converters.rb:5:in `include'
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j/type_converters.rb:5:in `<module:TypeConverters>'
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j/type_converters.rb:2:in `<module:Neo4j>'
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j/type_converters.rb:1:in `<top (required)>'
    from /Users/aeufemio/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/aeufemio/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/aeufemio/.rvm/gems/ruby-2.2.1@smartwheels/gems/neo4j-5.0.1/lib/neo4j.rb:26:in `<top (required)>'
    from /Users/aeufemio/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
    from /Users/aeufemio/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
    from /Users/aeufemio/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require'
    from (irb):1
    from /Users/aeufemio/.rvm/rubies/ruby-2.2.1/bin/irb:11:in `<main>'2.2.1 :002 >
@subvertallchris
Copy link
Contributor

Do require 'date' sometime before calling Neo4j.

@cheerfulstoic
Copy link
Contributor

Probably we need to require 'date' in the gem, but definitely do it in your project @tymat to see if that fixes things first

@gareth
Copy link

gareth commented Jul 29, 2015

Having had the same issue, I can confirm that requiring 'date' before 'neo4j' resolves the problem

@cheerfulstoic
Copy link
Contributor

Awesome, thanks! I just released 5.0.9. Please reopen if that doesn't fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants