On Tue, Feb 23, 2010 at 9:39 AM, Craig Swank <[email protected]> wrote:
> I mentioned some of the third party package aren't found.  Two examples are
> zope.component and PasteDeploy.
> zope.component-3.9.2.tar.gz
> PasteDeploy-1.3.3.tar.gz
> I can't give you the code I'm working on, but the package was produced with
> a paster template.  Here is a link to a package that has nothing in it.  It
> is what you get if you do (you must first easy_install zopeskel):
> paster create -t basic_namespace rubbish.example
> You can download the one I just created from:
> http://sabeto.homeunix.com/rubbish.example.tar.bz2

I did that and everything worked fine!

Specifically, I downloaded that package and run "python setup.py install".

I then ran Python and noted that the following was in sys.path

c:\Python26\lib\site-packages\setuptools-0.6c9-py2.6.egg
c:\Python26\lib\site-packages\simplejson-2.0.9-py2.6-win32.egg
c:\Python26\lib\site-packages\rubbish.example-1.0-py2.6.egg
C:\WINDOWS\system32\python26.zip
c:\Python26\DLLs
c:\Python26\lib
c:\Python26\lib\plat-win
c:\Python26\lib\lib-tk
c:\Python26
c:\Python26\lib\site-packages
c:\Python26\lib\site-packages\win32
c:\Python26\lib\site-packages\win32\lib
c:\Python26\lib\site-packages\Pythonwin
c:\Python26\lib\site-packages\wx-2.8-msw-unicode

Note the third entry. I then ran cx_Freeze with a very simple script
that looks like this:

import rubbish.example
print rubbish.example

That script ran fine from Python and when frozen with this setup.py it
also worked fine.

from cx_Freeze import setup, Executable
setup(
        name = "test_freeze",
        version = "0.1",
        description = "Sample cx_Freeze script",
        executables = [Executable("test_freeze.py")])

> In the meantime I'm going to pdb around your finder.py and see how the
> self._modules gets populated.

imp.find_module is what is used to locate modules.

Perhaps you can try the same thing with your rubbish.example and see
if you get the same problems you are having with your main script. Let
me know if I can be of more assistance.

> Thanks again,

You're welcome.

Anthony

------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to