Skip to content

raised unexpected: PackageNotFoundError("Package not found at path) #557

Description

@sskadit
 raised unexpected: PackageNotFoundError("Package not found at '/Users/sskadit/Office/nlpondec2017/newonenv/src/newproject/DATA/C++ Developer/RVAravind_4.doc'",)
Traceback (most recent call last):
  File "/Users/sskadit/Office/nlpondec2017/newenv/src/lib/python3.4/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/Users/sskadit/Office/nlpondec2017/newenv/src/lib/python3.4/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/Users/sskadit/Office/nlpondec2017/newonenv/src/newproject/new/tasks.py", line 78, in test
    doc = docx.Document(inp)
  File "/Users/sskadit/Office/nlpondec2017/newenv/src/lib/python3.4/site-packages/docx/api.py", line 25, in Document
    document_part = Package.open(docx).main_document_part
  File "/Users/sskadit/Office/nlpondec2017/newenv/src/lib/python3.4/site-packages/docx/opc/package.py", line 116, in open
    pkg_reader = PackageReader.from_file(pkg_file)
  File "/Users/sskadit/Office/nlpondec2017/newenv/src/lib/python3.4/site-packages/docx/opc/pkgreader.py", line 32, in from_file
    phys_reader = PhysPkgReader(pkg_file)
  File "/Users/sskadit/Office/nlpondec2017/newenv/src/lib/python3.4/site-packages/docx/opc/phys_pkg.py", line 31, in __new__
    "Package not found at '%s'" % pkg_file
docx.opc.exceptions.PackageNotFoundError: Package not found at '/Users/sskadit/Office/nlpondec2017/newonenv/src/newproject/DATA/C++ Developer/RVAravind_4.doc'

I found the absolute path and relative path to be the same using this in django celery cron to read the doc files

Mac OSX
Python 3.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions