Comments (5)
Hello, I change my account to dangerbtd and deleted my blakesmusic account. This is still an issue.
from datashift_spree.
I used a slightly different command and it works. "bundle exec thor datashift_spree:load:products -i products_finished.csv"
from datashift_spree.
Here is how I resolved the command not found error but there still are some warnings noted below.
in import.thor
or <any_name>.thor
#!/usr/bin/env ruby
require 'datashift'
require 'datashift_spree'
DataShift::load_commands #optional
DataShift::SpreeHelper::load_commands
#I put this in the root of my rails project folder. It seems that requiring 'datashift'
#makes the command work.
Specs:
[<user>:~/<project>] $ rake about
About your application's environment
Ruby version 1.9.3 (x86_64-darwin12.3.0)
RubyGems version 1.8.25
Rack version 1.4
Spree versions:
[<user>:~/<project>] $ bundle list | grep spree
* spree (2.0.1 )
* spree_api (2.0.1)
* spree_auth_devise (2.0.0)
* spree_backend (2.0.1)
* spree_cmd (2.0.1)
* spree_core (2.0.1)
* spree_dash (2.0.1)
* spree_frontend (2.0.1)
* spree_sample (2.0.1)
See a list of commands.
bundle exec thor list datashift
bundle exec thor list datashift_spree
Warnings
[<user>:~/<project>] $ bundle exec thor datashift_spree:load:products -i tmp/Spree-Product.csv
WARNING: unable to load thorfile "/Users/<user>/.rvm/gems/ruby-1.9.3-p429@<namespace>/gems/datashift_spree-0.5.0/lib/thor/spree/products_images.thor": uninitialized constant DataShift::Logging
/Users/<user>/.rvm/gems/ruby-1.9.3-p429@<namespace>/gems/datashift_spree-0.5.0/lib/thor/spree/products_images.thor:23:in `<class:Load>'
WARNING: unable to load thorfile "/Users/<user>/.rvm/gems/ruby-1.9.3-p429@<namespace>/gems/datashift_spree-0.5.0/lib/thor/spree/reports.thor": cannot load such file -- excel_exporter
/Users/<user>/.rvm/gems/ruby-1.9.3-p429@<namespace>/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
WARNING: unable to load thorfile "/Users/<user>/.rvm/gems/ruby-1.9.3-p429@<namespace>/gems/datashift_spree-0.5.0/lib/thor/spree/utils.thor": uninitialized constant DataShift::Logging
/Users/<user>/.rvm/gems/ruby-1.9.3-p429@<namespace>/gems/datashift_spree-0.5.0/lib/thor/spree/utils.thor:16:in `<class:Utils>'`
from datashift_spree.
I also found that datashift_spree:load:products works just fine. I'd recommend changing the documentation. Perhaps this is because datashift changed how it works?
from datashift_spree.
This is my environment and thor file that is working:
jruby -v
jruby 1.7.19 (1.9.3p551) 2015-01-29 20786bd on OpenJDK 64-Bit Server VM 1.6.0_36-b36 +jit [linux-amd64]
Gemfile:
gem 'datashift', '~> 0.13.0'
gem 'datashift_spree'
bundle exec rake about
Ruby version 1.9.3-p551 (java)
RubyGems version 2.4.5
Rack version 1.5.5
Rails version 4.1.11
JavaScript Runtime Node.js (V8)
Active Record version 4.1.11
Action Pack version 4.1.11
Action View version 4.1.11
Action Mailer version 4.1.11
Active Support version 4.1.11
Middleware Rack::Sendfile, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x7d1cb13>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::Head, Rack::ConditionalGet, Rack::ETag, Warden::Manager
Application root /asdf/my_store20151008
Environment development
Database adapter sqlite3
Database schema version 20160226035218
from datashift_spree.
Related Issues (20)
- Spree verison 3.0.4 HOT 7
- Feature: spree_related_products support HOT 2
- No Thor commands available HOT 5
- #<NoMethodError: undefined method `stock_location_name=' for #<Spree::Product:0x00000007ecd9a0>> HOT 2
- change count_on_hand in templates to stock_items
- master price is reset if using variants
- Product assigned to every parent taxonomy
- thor datashift_spree:load:products fails to render values from xls formulas HOT 1
- Paperclip not working for spree 3? HOT 6
- Error to upload images using datashift_spree:load:images HOT 3
- how to upload order and users HOT 1
- Products price get a trailing zero in import
- Failed to import supplier_id (spree_drop_ship) HOT 6
- uninitialized constant DataShift::CsvLoading (NameError) HOT 3
- can't attach images on product update HOT 5
- ERROR: "thor csv" was called with arguments ["-i,", "-m,"] Usage: "thor datashift:import:csv -i, --input=INPUT -m, --model=MODEL" HOT 9
- uninitialized constant DataShift::Spree HOT 1
- Failed to import Products. Error: undefined method `type_cast_from_database' HOT 10
- Variants are not updated with variant SKU
- how do i generate compatible csv files HOT 8
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 datashift_spree.