473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

docx.opc.exceptions.PackageNotFoundError

Hi ,


I am getting the error (docx.opc.exceptions.PackageNotFoundError: Package not found at ...\dist\docx1.exe\docx\templates\default.docx')

while executing exe for python.I have generated a exe using python code for docx . I have used the following import(from docx import Document)

I am using Py2Nsis in generating exe.

Pls anybody can help

Thanks,
Arun
Mar 7 '15 #1
3 10192
bvdet
2,851 Expert Mod 2GB
You should consult documentation for py2Nsis. It appears your imports are not being packaged. Perhaps you should attempt to make your exe with py2exe or pyinstaller. I have used pyinstaller, and there is an active community supporting it.
Mar 7 '15 #2
I am getting the same error while using pyinstaller/py2exe

below is the error :

Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Python27\PyInstaller\build\Folder_name\out 00-PYZ.pyz\docx.ap
i", line 25, in Document
File "C:\Python27\PyInstaller\build\Folder_name\out 00-PYZ.pyz\docx.op
c.package", line 116, in open
File "C:\Python27\PyInstaller\build\Folder_name\out 00-PYZ.pyz\docx.op
c.pkgreader", line 32, in from_file
File "C:\Python27\PyInstaller\build\Folder_name\out 00-PYZ.pyz\docx.op
c.phys_pkg", line 31, in __new__
docx.opc.exceptions.PackageNotFoundError: Package not found at 'C:\Python27\PYIN
ST~1\dist\ADA_TE~1\docx\templates\default.docx'
Mar 8 '15 #3
bvdet
2,851 Expert Mod 2GB
I suggest posting to the "PyInstaller" group. The group can be found here.
Mar 9 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Roel | last post by:
Hi all, I'm using the FileUpload control for uploading MS Word and MS PowerPoint documents. To check if a user uploads a correct document, I check the contenttype...
2
by: lsg | last post by:
Hi, Anybody know how to open docx (MS Word) file, retrive all formfields, insert text and print in c# ? Best Regards Leszek
2
by: asp.net | last post by:
hello gents, i have a similar thing to do. i am not much into .net yet. i am currently working on asp website which generates doc file on a fly. i now want to convert these doc to docx files. i am...
2
by: gwen.demby | last post by:
Hello, I hope all is well.. I was wondered if someone had a fix for opening docx file... I am currently using the response.redirect("path of word document") however it does not work while trying to...
2
by: =?Utf-8?B?TWFkaXNvbg==?= | last post by:
Hi there, I'm working with VS 2008(framework3.5), IIS6, SQL Server 2005. I have website that allow users to upload doc, docx, xls, xlsx ... and so on. I save file to SQL Server 2005 with...
4
by: =?Utf-8?B?U1VOTlk=?= | last post by:
Hi, i am uploading a .docx file into sql2005 and later when i retrieve the file from the database and i open it, i get a error message "The file is corrupted and cannot be open". I am not facing...
1
by: mamul | last post by:
Hi All, I am able to read and write to .txt, .bin files. but the same program is not support for .docx file . can someone help me the procedure to perform read write operation on .docx file. ...
0
by: Zabivb | last post by:
Hi I'm facing problem while opening .docx file, apart from .docx file other files such as .doc,.jpg,.gif etc is opening fine! The only file which i cant able to open is .docx file. Can some one...
0
by: BSBabu | last post by:
Hi .... I'm a newbie to Asp.Net and MySql. I'm Trying to upload & Download .pptx,.docx,.pdf,.txt files into MySql Database. They are uploading successfully but when I'm trying to download...
1
by: Arun Sohanlal | last post by:
Hi , How do i split cell into 2 rows and 1 columns using python-docx. can anyone help me with example .... Thanks and regards, Arun
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.