|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Building Windows Binaries
I am gradually getting further on building the windows binaries, but I am now getting stuck on the following error
Code:
Adding third party dependencies
Adding devcon
Adding unrar
Adding pdftohtml
Adding ImageMagick
Copying fontconfig
Traceback (most recent call last):
File "installer\windows\freeze.py", line 196, in <module>
sys.exit(main())
File "installer\windows\freeze.py", line 188, in main
'dll_excludes' : ['mswsock.dll'],
File "C:\Python26\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
self.run_command(cmd)
File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "installer\windows\freeze.py", line 119, in run
shutil.copytree(f, tgt)
File "C:\Python26\lib\shutil.py", line 177, in copytree
raise Error, errors
shutil.Error: [('C:\\Windows\\system32\\config\\default', 'build\\py2exe\\system
32\\config\\default', "[Errno 13] Permission denied: 'C:\\\\Windows\\\\system32\
\\\config\\\\default'"), ('C:\\Windows\\system32\\config\\default.LOG', 'build\\
py2exe\\system32\\config\\default.LOG', "[Errno 13] Permission denied: 'C:\\\\Wi
ndows\\\\system32\\\\config\\\\default.LOG'"), ('C:\\Windows\\system32\\config\\
SAM', 'build\\py2exe\\system32\\config\\SAM', "[Errno 13] Permission denied: 'C:
\\\\Windows\\\\system32\\\\config\\\\SAM'"), ('C:\\Windows\\system32\\config\\SA
M.LOG', 'build\\py2exe\\system32\\config\\SAM.LOG', "[Errno 13] Permission denie
d: 'C:\\\\Windows\\\\system32\\\\config\\\\SAM.LOG'"), ('C:\\Windows\\system32\\
config\\SECURITY', 'build\\py2exe\\system32\\config\\SECURITY', "[Errno 13] Perm
ission denied: 'C:\\\\Windows\\\\system32\\\\config\\\\SECURITY'"), ('C:\\Window
s\\system32\\config\\SECURITY.LOG', 'build\\py2exe\\system32\\config\\SECURITY.L
OG', "[Errno 13] Permission denied: 'C:\\\\Windows\\\\system32\\\\config\\\\SECU
RITY.LOG'"), ('C:\\Windows\\system32\\config\\software', 'build\\py2exe\\system3
2\\config\\software', "[Errno 13] Permission denied: 'C:\\\\Windows\\\\system32\
\\\config\\\\software'"), ('C:\\Windows\\system32\\config\\software.LOG', 'build
\\py2exe\\system32\\config\\software.LOG', "[Errno 13] Permission denied: 'C:\\\
\Windows\\\\system32\\\\config\\\\software.LOG'"), ('C:\\Windows\\system32\\conf
ig\\system', 'build\\py2exe\\system32\\config\\system', "[Errno 13] Permission d
enied: 'C:\\\\Windows\\\\system32\\\\config\\\\system'"), ('C:\\Windows\\system3
2\\config\\system.LOG', 'build\\py2exe\\system32\\config\\system.LOG', "[Errno 1
3] Permission denied: 'C:\\\\Windows\\\\system32\\\\config\\\\system.LOG'"), ('C
:\\Windows\\system32\\drivers\\sptd.sys', 'build\\py2exe\\system32\\drivers\\spt
d.sys', "[Errno 13] Permission denied: 'C:\\\\Windows\\\\system32\\\\drivers\\\\
sptd.sys'")]
AS a small aside, the installer\windows\freeze.py file has the following hard-coded: Code:
QT_DIR = 'C:\\Qt\\4.4.3' |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It shouldn't be copying files from windows\system32 only from the fontconfig dir (which on my system is c:\fontconfig)
|
|
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
OK - That explains things!
To avoid having to set up another folder on the search path I had put the fontconfig dll in C:\WINDOWS. Easy enough to fix now I know what has caused it. It had seemed to be copying rather a lot of files
|
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I have now successfully run the freeze.py option to the end.
Am I correct in assuming that the build\py2exe folder is in effect the correct contents for the C:\Program Files\calibre folder under Windows? In other words I may play with trying to build the installer but I could instead simply copy that folder into place on the target machine? |
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah you dont need to build the installer. You should just be able to add the py2exe dir to your path and run from there
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DR1000 Building Hello World 4.0 | otromanolo | iRex Developer's Corner | 54 | 04-17-2011 07:38 AM |
| DR800 Building ctb | dima_tr | iRex Developer's Corner | 6 | 06-30-2010 05:47 AM |
| Building a case/cover | ali | iRex | 82 | 09-03-2007 02:50 PM |
| iLiad Using scratchbox with iliad binaries | Antartica | iRex Developer's Corner | 9 | 07-24-2006 08:40 AM |