← Back to team overview

openerp-india team mailing list archive

[Bug 1026954] Re: addons.document.content_index: Could not index file XXXX.pdf

 

Hello Ravish,

I've said that I didn't have any problem receiving it, I actually see
the attachment, the problem is that an error is thrown on the OpenERP
log file and I don't know if that's a bug or it isn't...

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1026954

Title:
  addons.document.content_index: Could not index file XXXX.pdf

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Hello,

  I've configured an email account to forward emails to HR.Recruitment.
  There's no problem until I receive an email with a file attached to
  it.

  I'm using OpenERP 6.1.1 downloaded in .tar.gz from openerp.com and
  running under Debian.

  The file gets stored in OpenERP and the message gets to
  hr.recruitment, but an error is thrown.

  2012-07-20 08:04:43,291 1049 INFO ? fetchmail: start checking for new emails on imap server X@xxxx
  2012-07-20 08:04:44,750 1049 ERROR ? addons.document.content_index: Could not index file we_media_espanol.pdf (None)
  Traceback (most recent call last):
    File "/opt/server/openerp/addons/document/content_index.py", line 182, in doIndex
      res = (mime, fobj.indexContent(content,filename,fname or realfname) )
    File "/opt/server/openerp/addons/document/content_index.py", line 90, in indexContent
      res = self._doIndexFile(rfname)
    File "/opt/server/openerp/addons/document/std_index.py", line 168, in _doIndexFile
      pop = Popen(['pdftotext', '-enc', 'UTF-8', '-nopgbrk', fname, '-'], shell=False, stdout=PIPE)
    File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
      errread, errwrite)
    File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
      raise child_exception
  OSError: [Errno 2] No such file or directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1026954/+subscriptions


References