GithubHelp home page GithubHelp logo

Comments (5)

dangerbtd avatar dangerbtd commented on August 10, 2024

Hello, I change my account to dangerbtd and deleted my blakesmusic account. This is still an issue.

from datashift_spree.

dangerbtd avatar dangerbtd commented on August 10, 2024

I used a slightly different command and it works. "bundle exec thor datashift_spree:load:products -i products_finished.csv"

from datashift_spree.

davidtingsu avatar davidtingsu commented on August 10, 2024

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.

rocanion avatar rocanion commented on August 10, 2024

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.

ping0xFF avatar ping0xFF commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.