ArgumentError: Anonymous modules have no name to be referenced by

205 views
Skip to first unread message

manalang

unread,
Nov 10, 2008, 7:43:42 PM11/10/08
to Ruby Faker
Just wondering if anyone has gotten this error before:

>> require 'faker'
ArgumentError: Anonymous modules have no name to be referenced by
from /Users/richmanalang/dev/connect.git/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:414:in
`to_constant_name'
from /Users/richmanalang/dev/connect.git/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:226:in
`qualified_name_for'
from /Users/richmanalang/dev/connect.git/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:491:in
`const_missing'
from /Users/richmanalang/dev/connect.git/vendor/gems/faker-0.3.1/lib/
faker/company.rb:5:in `name'
from /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/
osx/objc/oc_import.rb:667:in `_real_class_and_mod'
from /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/
osx/objc/oc_import.rb:698:in `_register_method'
from /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/
osx/objc/oc_import.rb:736:in `singleton_method_added'
from /Users/richmanalang/dev/connect.git/vendor/gems/faker-0.3.1/lib/
faker/company.rb:4
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
from /Users/richmanalang/dev/connect.git/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:509:in
`require'
from /Users/richmanalang/dev/connect.git/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:354:in
`new_constants_in'
from /Users/richmanalang/dev/connect.git/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:509:in
`require'
from /Users/richmanalang/dev/connect.git/vendor/gems/faker-0.3.1/lib/
faker.rb:4
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
from /Users/richmanalang/dev/connect.git/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:509:in
`require'
from /Users/richmanalang/dev/connect.git/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:354:in
`new_constants_in'
from /Users/richmanalang/dev/connect.git/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:509:in
`require'


Faker was working fine for me until I decided to install the native C
based mysql adapter. After that, I started getting this issue. I
confirmed it by removing the mysql gem... works without the mysql
gem. This is on OS X (Leopard).

Anyway, anyone else have this issue?

Rich
Reply all
Reply to author
Forward
0 new messages