Comments (4)
Hi Tom,
Thanks for update, all most working at this point!
I am cloning from github:
Using datashift (0.10.2) from git://github.com/autotelik/datashift.git (at master)
Using datashift_spree (0.2.1) from git://github.com/autotelik/datashift_spree.git (at master)
I am now using ruby 1.9.3-p194 and Spree 1.1.2
"get_spree_class" error is fixed.
I am getting the following output from:
jet@chinook:~/RailsApps/spree/aceleathergoods$ bundle exec thor datashift:spree:images -i /home/jet/AceLeatherGoods/Ace_Primary_Web_Photos/ -s
Below is output:
Using sku for lookup
Found 161 files - splitting names on delimiter [ ]
try to find record where sku == AC102_soft-acc-2zip-coinpurse-keychain-main
Nothing is imported, all files copied to MissingAttachmentRecords
is delimiter [ ] actually supposed to show current delimiter used?
If so, looks like it is not set to '_" which I was hoping for.
Tried passing in
-s '_' but that did not work.
Seems this used to run perfect in version I was using in July.
Am I doing something wrong in the invocation?
Thanks!
Jet
from datashift_spree.
Hi
yeah sorry it's all a bit broken .. think it's nearly back together
basically what I've done is from the spree image loader,
created a generic paperclip loader that can be used to create any attachment and attach to any class
There have also been issues caused by Spree core moving stuff around.
in versions > 1.1 images are now on Variantrather than Product
it means that the spree image stuff has been rewritten to use this new paperclip loader
there are many more options now, to set the delimiter it's --split_file_name_on _
-s is to lookup based on sku
Cheers
tom
p.s should work with Excel now in all Rubies, no reliance on jruby any more
From: Jerrold Thompson [email protected]
To: autotelik/datashift_spree [email protected]
Sent: Tuesday, 23 October 2012, 2:40
Subject: Re: [datashift_spree] undefined method `get_spree_class' (#4)
Hi Tom,
Thanks for update, all most working at this point!
I am cloning from github:
Using datashift (0.10.2) from git://github.com/autotelik/datashift.git (at master)
Using datashift_spree (0.2.1) from git://github.com/autotelik/datashift_spree.git (at master)
I am now using ruby 1.9.3-p194 and Spree 1.1.2
"get_spree_class" error is fixed.
I am getting the following output from:
jet@chinook:~/RailsApps/spree/aceleathergoods$ bundle exec thor datashift:spree:images -i /home/jet/AceLeatherGoods/Ace_Primary_Web_Photos/ -s
Below is output:
Using sku for lookup
Found 161 files - splitting names on delimiter [ ]
try to find record where sku == AC102_soft-acc-2zip-coinpurse-keychain-main
Nothing is imported, all files copied to MissingAttachmentRecords
is delimiter [ ] actually supposed to show current delimiter used?
If so, looks like it is not set to '" which I was hoping for.
Tried passing in
-s '' but that did not work.
Seems this used to run perfect in version I was using in July.
Am I doing something wrong in the invocation?
Thanks!
Jet
—
Reply to this email directly or view it on GitHub.
from datashift_spree.
Hi Tom,
wow, that's really cool about not having to use jruby to use excel stuff!
Rather big problem to get that to work, believe a hack had to be made
in regard to 'expect'.
Pulled in from github after receiving this email/posting and
am still getting this error using '-s' for sku lookup:
try to find record where sku == LH62_organizer-whidbey-main
...and this error for '--split_file_name_on _' :
: SELECT "spree_variants".* FROM "spree_variants" WHERE
(lower(name) = 'soft-acc-2zip-coinpurse-keychain-main') LIMIT 1>
#<ActiveRecord::StatementInvalid: PG::Error: ERROR: column "name" does
not exist
LINE 1: ...e_variants".* FROM "spree_variants" WHERE (lower(name) = '_...
^
: SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(name) =
'_ac102') LIMIT 1>
#<ActiveRecord::StatementInvalid: PG::Error: ERROR: column "name" does
not exist
LINE 1: ...e_variants".* FROM "spree_variants" WHERE (lower(name) = 'a...
Seems to be inconsistency in the 2 error examples above, which is curious.
Could you let me know when you have pushed up the revision?
Thanks!
Looking forward to using the new version.
Cheers,
Jet
On 10/23/2012 03:06 AM, tom statter wrote:
Hi
yeah sorry it's all a bit broken .. think it's nearly back together
basically what I've done is from the spree image loader,
created a generic paperclip loader that can be used to create any
attachment and attach to any classThere have also been issues caused by Spree core moving stuff around.
in versions > 1.1 images are now on Variantrather than Product
it means that the spree image stuff has been rewritten to use this new
paperclip loaderthere are many more options now, to set the delimiter it's
--split_file_name_on _-s is to lookup based on sku
Cheers
tomp.s should work with Excel now in all Rubies, no reliance on jruby
any more
From: Jerrold Thompson [email protected]
To: autotelik/datashift_spree [email protected]
Sent: Tuesday, 23 October 2012, 2:40
Subject: Re: [datashift_spree] undefined method `get_spree_class' (#4)Hi Tom,
Thanks for update, all most working at this point!
I am cloning from github:
Using datashift (0.10.2) from git://github.com/autotelik/datashift.git
(at master)
Using datashift_spree (0.2.1) from
git://github.com/autotelik/datashift_spree.git (at master)
I am now using ruby 1.9.3-p194 and Spree 1.1.2
"get_spree_class" error is fixed.
I am getting the following output from:
jet@chinook:~/RailsApps/spree/aceleathergoods$ bundle exec thor
datashift:spree:images -i
/home/jet/AceLeatherGoods/Ace_Primary_Web_Photos/ -s
Below is output:
Using sku for lookup
Found 161 files - splitting names on delimiter [ ]
try to find record where sku ==
AC102_soft-acc-2zip-coinpurse-keychain-main
Nothing is imported, all files copied to MissingAttachmentRecords
is delimiter [ ] actually supposed to show current delimiter used?
If so, looks like it is not set to '" which I was hoping for.
Tried passing in
-s '' but that did not work.
Seems this used to run perfect in version I was using in July.
Am I doing something wrong in the invocation?
Thanks!
Jet
—
Reply to this email directly or view it on GitHub.—
Reply to this email directly or view it on GitHub
#4 (comment).
from datashift_spree.
hey, man .. sorry about the timing, just as you need it I break everything !
I wrote a wrapper over Apache POI and the standard Ruby spreadsheet gem
so depending on context uses either one
ok, so this time I'm hopeful it's all good
new specs and everything passing and just tested the thor product and images clis and
worked ok for me
there is a constraint now that image lookup is only available via sku not name yet
since they have moved Images to Variant thats the class I'm doing the lookup for,
so need to add a scope to allow lookup of a variant via the product name
thats next on the list, imprivign the querying interface
really hope the latest gems work ok for you
Cheers
tom
From: Jerrold Thompson [email protected]
To: autotelik/datashift_spree [email protected]
Cc: tom statter [email protected]
Sent: Tuesday, 23 October 2012, 16:58
Subject: Re: [datashift_spree] undefined method `get_spree_class' (#4)
Hi Tom,
wow, that's really cool about not having to use jruby to use excel stuff!
Rather big problem to get that to work, believe a hack had to be made
in regard to 'expect'.
Pulled in from github after receiving this email/posting and
am still getting this error using '-s' for sku lookup:
try to find record where sku == LH62_organizer-whidbey-main
...and this error for '--split_file_name_on _' :
: SELECT "spree_variants".* FROM "spree_variants" WHERE
(lower(name) = 'soft-acc-2zip-coinpurse-keychain-main') LIMIT 1>
#<ActiveRecord::StatementInvalid: PG::Error: ERROR: column "name" does
not exist
LINE 1: ...e_variants".* FROM "spree_variants" WHERE (lower(name) = '_...
^
: SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(name) =
'_ac102') LIMIT 1>
#<ActiveRecord::StatementInvalid: PG::Error: ERROR: column "name" does
not exist
LINE 1: ...e_variants".* FROM "spree_variants" WHERE (lower(name) = 'a...
Seems to be inconsistency in the 2 error examples above, which is curious.
Could you let me know when you have pushed up the revision?
Thanks!
Looking forward to using the new version.
Cheers,
Jet
On 10/23/2012 03:06 AM, tom statter wrote:
Hi
yeah sorry it's all a bit broken .. think it's nearly back together
basically what I've done is from the spree image loader,
created a generic paperclip loader that can be used to create any
attachment and attach to any classThere have also been issues caused by Spree core moving stuff around.
in versions > 1.1 images are now on Variantrather than Product
it means that the spree image stuff has been rewritten to use this new
paperclip loaderthere are many more options now, to set the delimiter it's
--split_file_name_on _-s is to lookup based on sku
Cheers
tomp.s should work with Excel now in all Rubies, no reliance on jruby
any more
From: Jerrold Thompson [email protected]
To: autotelik/datashift_spree [email protected]
Sent: Tuesday, 23 October 2012, 2:40
Subject: Re: [datashift_spree] undefined method `get_spree_class' (#4)Hi Tom,
Thanks for update, all most working at this point!
I am cloning from github:
Using datashift (0.10.2) from git://github.com/autotelik/datashift.git
(at master)
Using datashift_spree (0.2.1) from
git://github.com/autotelik/datashift_spree.git (at master)
I am now using ruby 1.9.3-p194 and Spree 1.1.2
"get_spree_class" error is fixed.
I am getting the following output from:
jet@chinook:~/RailsApps/spree/aceleathergoods$ bundle exec thor
datashift:spree:images -i
/home/jet/AceLeatherGoods/Ace_Primary_Web_Photos/ -s
Below is output:
Using sku for lookup
Found 161 files - splitting names on delimiter [ ]
try to find record where sku ==
AC102_soft-acc-2zip-coinpurse-keychain-main
Nothing is imported, all files copied to MissingAttachmentRecords
is delimiter [ ] actually supposed to show current delimiter used?
If so, looks like it is not set to '" which I was hoping for.
Tried passing in
-s '' but that did not work.
Seems this used to run perfect in version I was using in July.
Am I doing something wrong in the invocation?
Thanks!
Jet
—
Reply to this email directly or view it on GitHub.—
Reply to this email directly or view it on GitHub
#4 (comment).—
Reply to this email directly or view it on GitHub.
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.