Comments (4)
This issue is happening because you have not included the spree gem anywhere in your Gemfile.
gem 'spree', '2.0.4'
from spree_active_shipping.
After adding gem 'spree', '2.0.4' to my Gemfile, restarting and then trying to run the DB migrations again I get the following error.
$ bundle exec rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant Spree::User
/home/page1/webapps/railsforspree/gems/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:230:in block in constantize' /home/page1/webapps/railsforspree/gems/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:229:in
each'
/home/page1/webapps/railsforspree/gems/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:229:in constantize' /home/page1/webapps/railsforspree/gems/gems/activesupport-3.2.14/lib/active_support/core_ext/string/inflections.rb:54:in
constantize'
/home/page1/webapps/railsforspree/gems/gems/spree_core-2.0.4/lib/spree/core.rb:21:in user_class' /home/page1/webapps/railsforspree/gems/gems/spree_core-2.0.4/app/models/spree/order.rb:36:in
class:Order'
/home/page1/webapps/railsforspree/gems/gems/spree_core-2.0.4/app/models/spree/order.rb:5:in <module:Spree>' /home/page1/webapps/railsforspree/gems/gems/spree_core-2.0.4/app/models/spree/order.rb:4:in
<top (required)>'
/home/page1/webapps/railsforspree/gems/gems/spree_api-2.0.4/app/models/spree/order_decorator.rb:1:in <top (required)>' /home/page1/webapps/railsforspree/gems/gems/spree_api-2.0.4/lib/spree/api/engine.rb:23:in
block in activate'
/home/page1/webapps/railsforspree/gems/gems/spree_api-2.0.4/lib/spree/api/engine.rb:22:in glob' /home/page1/webapps/railsforspree/gems/gems/spree_api-2.0.4/lib/spree/api/engine.rb:22:in
activate'
/home/page1/webapps/railsforspree/gems/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:429:in _run__3175331982405381511__prepare__456047978120054621__callbacks' /home/page1/webapps/railsforspree/gems/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in
__run_callback'
/home/page1/webapps/railsforspree/gems/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in _run_prepare_callbacks' /home/page1/webapps/railsforspree/gems/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in
run_callbacks'
/home/page1/webapps/railsforspree/gems/gems/actionpack-3.2.14/lib/action_dispatch/middleware/reloader.rb:74:in prepare!' /home/page1/webapps/railsforspree/gems/gems/actionpack-3.2.14/lib/action_dispatch/middleware/reloader.rb:48:in
prepare!'
/home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/application/finisher.rb:47:in block in <module:Finisher>' /home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/initializable.rb:30:in
instance_exec'
/home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/initializable.rb:30:in run' /home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/initializable.rb:55:in
block in run_initializers'
/home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/initializable.rb:54:in each' /home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/initializable.rb:54:in
run_initializers'
/home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/application.rb:136:in initialize!' /home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in
method_missing'
/home/page1/webapps/railsforspree/brushesandtools/config/environment.rb:5:in <top (required)>' /home/page1/webapps/railsforspree/gems/gems/polyglot-0.3.3/lib/polyglot.rb:63:in
require'
/home/page1/webapps/railsforspree/gems/gems/polyglot-0.3.3/lib/polyglot.rb:63:in require' /home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/application.rb:103:in
require_environment!'
/home/page1/webapps/railsforspree/gems/gems/railties-3.2.14/lib/rails/application.rb:305:in block (2 levels) in initialize_tasks' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:236:in
call'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:236:in block in execute' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:231:in
each'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:231:in execute' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:175:in
block in invoke_with_call_chain'
/usr/local/lib/ruby20/ruby/2.0.0/monitor.rb:211:in mon_synchronize' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:168:in
invoke_with_call_chain'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:197:in block in invoke_prerequisites' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:195:in
each'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:195:in invoke_prerequisites' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:174:in
block in invoke_with_call_chain'
/usr/local/lib/ruby20/ruby/2.0.0/monitor.rb:211:in mon_synchronize' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:168:in
invoke_with_call_chain'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/task.rb:161:in invoke' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/application.rb:149:in
invoke_task'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/application.rb:106:in block (2 levels) in top_level' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/application.rb:106:in
each'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/application.rb:106:in block in top_level' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/application.rb:115:in
run_with_threads'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/application.rb:100:in top_level' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/application.rb:78:in
block in run'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/application.rb:165:in standard_exception_handling' /home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/lib/rake/application.rb:75:in
run'
/home/page1/webapps/railsforspree/gems/gems/rake-10.1.0/bin/rake:33:in <top (required)>' /home/page1/webapps/railsforspree/gems/bin/rake:23:in
load'
/home/page1/webapps/railsforspree/gems/bin/rake:23:in `
Tasks: TOP => db:migrate => environment
Do I need to add other Spree modules to my Gemfile too?
from spree_active_shipping.
If you would like to use devise for authentication as it appears you do you should also install https://github.com/spree/spree_auth_devise extension.
from spree_active_shipping.
Turned out these errors were just me getting initial setup wrong. I had updated only the gems I had in my Gemfile without updating everything with "bundle update rails". After doing that I had the correct versions of everything, started fresh with a new database and the installation went without a hitch and active shipping is now working. Hope it helps someone.
from spree_active_shipping.
Related Issues (20)
- Unable to run test suites HOT 3
- Feature Request/Proposition : Handling shipments / shipping labels HOT 2
- could not get USPS shipping rates for US territories - Guam, Puerto Rico etc.,
- Double shipping rates: Default Package is always created even when a custom product package exists.
- Spree Active Shipping Error - undefined method `iso' for nil:NilClass HOT 3
- UPS needs street address to return commercial rates
- Metric system support for dimensions
- spree 2-4 core dependency issue
- Credential encryption
- usps first class mail parcel returns 0 HOT 2
- bundling - spree_core conflict - resolving to v3.2.0 & v3.1.0 HOT 1
- Can't run `bundle exec rake spree_sample:load` HOT 6
- Does the units preference in the general settings have any effect? HOT 1
- Active Shipping Gem Dependency Looking for Maintainers
- Rails 5.2: Bump ActiveShipping HOT 1
- ActiveUtils::ConnectionError HOT 1
- Getting error during bundle
- Return Label
- ActiveUtils::ConnectionError (The SSL connection to the remote server could not be established):
- spree v4 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_active_shipping.