Thanks for the response. No, I don't do anything special with wind.server. It is a package I created with paster, and it is installed in site-packages.
Craig On Feb 22, 2010, at 9:20 PM, Anthony Tuininga wrote: > Hi, > > Do you do anything special to locate wind.server? Do you modify > sys.path in your application so that it can find wind.server? If that > is the case you'll need to tell cx_Freeze where to find those modules > as it normally only searches an unmodified sys.path. > > Anthony > > On Mon, Feb 22, 2010 at 3:05 PM, Craig Swank <[email protected]> > wrote: >> Hello, >> I am working on freezing a python project, and am having trouble with >> one of my custom packages. The package is named 'wind.server' and I >> am able to import it when I'm in the python prompt, but when I try to >> run setup.py on the cx_freeze setup file I've created, cx_freeze says >> it can't find wind.server. Here is my setup file so far: >> >> from cx_Freeze import setup, Executable >> >> version = '1.0' >> #includes=['wind', 'lxml', 'lxml._elementpath', 'lxml.etree', >> 'wind.server', 'wind.model', 'PIL', 'ReportLab'], >> includes=['lxml', 'lxml._elementpath', 'lxml.etree', 'gzip', >> 'wind.server'] >> >> setup(name='gearfacts', >> version=version, >> options = { >> "build_exe" : { >> "includes": includes, >> }, >> }, >> executables=[Executable('run.py')], >> ) >> >> >> >> and the dos error output ends with: >> >> File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command >> self.distribution.run_command(command) >> File "C:\Python26\lib\distutils\dist.py", line 995, in run_command >> cmd_obj.run() >> File "C:\Python26\lib\site-packages\cx_Freeze\dist.py", line 220, in >> run >> freezer.Freeze() >> File "C:\Python26\lib\site-packages\cx_Freeze\freezer.py", line 433, >> in Freeze >> >> self.finder = self._GetModuleFinder() >> File "C:\Python26\lib\site-packages\cx_Freeze\freezer.py", line 260, >> in _GetMo >> duleFinder >> finder.IncludeModule(name) >> File "C:\Python26\lib\site-packages\cx_Freeze\finder.py", line 471, >> in Include >> Module >> module = self._ImportModule(name, deferredImports) >> File "C:\Python26\lib\site-packages\cx_Freeze\finder.py", line 244, >> in _Import >> Module >> raise ImportError("No module named %r" % name) >> ImportError: No module named 'wind.server >> >> >> >> >> >> Does anyone know what I'm doing wrong? Does this have something to >> do >> with the fact that the package is a namespace package? >> >> Craig >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> cx-freeze-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > cx-freeze-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
