View Single Post
Old 01-26-2009, 02:41 PM   #17
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I am getting
Code:
C:\calibre>python installer\windows\freeze.py
C:\Python26\lib\site-packages\py2exe\build_exe.py:16: DeprecationWarning: the se
ts module is deprecated
  import sets
Setup calibre version: 0.4.130
running py2exe
creating C:\calibre\build\bdist.win32
creating C:\calibre\build\bdist.win32\winexe
creating C:\calibre\build\bdist.win32\winexe\collect-2.6
creating C:\calibre\build\bdist.win32\winexe\bundle-2.6
creating C:\calibre\build\bdist.win32\winexe\temp
creating C:\calibre\build\py2exe
*** searching for required modules ***
Traceback (most recent call last):
  File "installer\windows\freeze.py", line 194, in <module>
    sys.exit(main())
  File "installer\windows\freeze.py", line 186, 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 59, in run
    py2exe.build_exe.py2exe.run(self)
  File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 243, in run
    self._run()
  File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 296, in _run
    self.find_needed_modules(mf, required_files, required_modules)
  File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 1297, in find_n
eeded_modules
    mf.import_hook(mod)
  File "C:\Python26\Lib\site-packages\py2exe\mf.py", line 719, in import_hook
    return Base.import_hook(self,name,caller,fromlist,level)
  File "C:\Python26\Lib\site-packages\py2exe\mf.py", line 136, in import_hook
    q, tail = self.find_head_package(parent, name)
  File "C:\Python26\Lib\site-packages\py2exe\mf.py", line 204, in find_head_pack
age
    raise ImportError, "No module named " + qname
ImportError: No module named pkg_resources
trying to run the first command. Is there something I should have run first to create these?

The good side of all these questions is that I am updating the wiki with my finidngs so that hopefully the next person going down the Windows only route will not need to ask as many questions
itimpi is offline   Reply With Quote