rails console: irb(main):006:0> Docsplit.extract_images(path) bin/rails: No such file or directory - file Traceback (most recent call last): 16: from bin/rails:4:in'
15: from bin/rails:4:in require' 14: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands.rb:17:in<top (required)>'
13: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands/commands_tasks.rb:39:in run_command!' 12: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands/commands_tasks.rb:68:inconsole'
11: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands/console.rb:9:in start' 10: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands/console.rb:110:instart'
9: from (irb):6
8: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit.rb:57:in extract_images' 7: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/transparent_pdfs.rb:10:inensure_pdfs'
6: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/transparent_pdfs.rb:10:in map' 5: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/transparent_pdfs.rb:15:inblock in ensure_pdfs'
4: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit.rb:65:in extract_pdf' 3: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/pdf_extractor.rb:120:inextract'
2: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/pdf_extractor.rb:120:in each' 1: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/pdf_extractor.rb:125:inblock in extract'
NoMethodError (undefined method strip' for nil:NilClass)
Hi there! I put my project in docker and docsplit stopped working correctly.
version:
ruby:2.5.5-alpine3.8
libs in docker:
graphicsmagick poppler-utils ghostscript tesseract-ocr libreoffice pdftk file libreoffice-writer
rails console:'
15: from bin/rails:4:in
irb(main):006:0> Docsplit.extract_images(path) bin/rails: No such file or directory - file Traceback (most recent call last): 16: from bin/rails:4:in
require' 14: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands.rb:17:in
<top (required)>' 13: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands/commands_tasks.rb:39:inrun_command!' 12: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands/commands_tasks.rb:68:in
console' 11: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands/console.rb:9:instart' 10: from /usr/local/bundle/gems/railties-4.2.11.1/lib/rails/commands/console.rb:110:in
start' 9: from (irb):6 8: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit.rb:57:inextract_images' 7: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/transparent_pdfs.rb:10:in
ensure_pdfs' 6: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/transparent_pdfs.rb:10:inmap' 5: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/transparent_pdfs.rb:15:in
block in ensure_pdfs' 4: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit.rb:65:inextract_pdf' 3: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/pdf_extractor.rb:120:in
extract' 2: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/pdf_extractor.rb:120:ineach' 1: from /usr/local/bundle/gems/docsplit-0.7.6/lib/docsplit/pdf_extractor.rb:125:in
block in extract' NoMethodError (undefined methodstrip' for nil:NilClass)
Please, help