Yes, that is what I meant by namespace package. I probably need to figure it out, because there are about 10 dependencies that exist in the form of namespace packages.
So, for us to figure this out, what additional information can I give you? Thanks for taking the time, because this is for a work project that was sprung on me at the last second and I'd like to get it taken care of. Craig On Feb 23, 2010, at 9:01 AM, Anthony Tuininga wrote: > Ah, my brain is starting to wake up. :-) > > Are your referring to this PEP? > > http://www.python.org/dev/peps/pep-0382/ > > If so, it sounds like sys.path is indeed manipulated -- but behind the > scenes so it is not obvious. If you would prefer your original > solution and don't mind working with me on getting it working, please > send me some more details; otherwise, I'll leave it alone for now. > > Anthony > > On Tue, Feb 23, 2010 at 7:47 AM, Craig Swank <[email protected]> > wrote: >> I just repackaged it so it is not a namespace package (windserver) >> and >> cx_freeze put it in the build. I'm going to continue with the rest >> of >> my dependencies and see how it goes. >> >> Thanks >> >> Craig >> >> On Feb 23, 2010, at 7:31 AM, Anthony Tuininga wrote: >> >>> Hmm, then I'm not sure what to say. If you can run python from a >>> command line and enter >>> >>> import wind.server >>> >>> and get no errors, then all should be well. If not, you're going to >>> have to do some debugging -- or, if possible, send me the source >>> privately and I'll take a look at it. >>> >>> Anthony >>> >>> On Tue, Feb 23, 2010 at 7:23 AM, Craig Swank <[email protected]> >>> wrote: >>>> 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 >>>> >>> >>> ------------------------------------------------------------------------------ >>> 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 ------------------------------------------------------------------------------ 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
