GithubHelp home page GithubHelp logo

Comments (4)

jetsgit avatar jetsgit commented on August 10, 2024

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.

autotelik avatar autotelik commented on August 10, 2024

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.

jetsgit avatar jetsgit commented on August 10, 2024

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 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.


Reply to this email directly or view it on GitHub
#4 (comment).

from datashift_spree.

autotelik avatar autotelik commented on August 10, 2024

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 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.


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)

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.