Hi,

What version of cx_Freeze are you using? I know there was one problem
that was introduced with the release of Python 3.2 which may have been
backported to 3.1.3 and caused the same problem. I believe that issue
was resolved with 4.2.3. If you're already using that version then I'd
like a script that demonstrates the problem so I can see if it is a
bug in cx_Freeze. Thanks.

Anthony

On Tue, Apr 26, 2011 at 2:45 PM, Andrew McClure <[email protected]> wrote:
> So I have a Python 3 program which I turn into an executable using
> cx_Freeze... on the machine where I do builds I recently upgraded from
> Python 3.1.2 to Python 3.1.3. After I did so, the program built with
> cx_Freeze began failing whenever I tried to import urllib.request. The
> failure was:
>
> Traceback (most recent call last):
>   File "../redacted.py", line 389, in version_report
>     import urllib.request
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py",
> line 2180, in <module>
>     from _scproxy import _get_proxy_settings, _get_proxies
> ImportError: No module named _scproxy
>
> I do not appear to see this problem on Windows (though I have tested
> only with 3.1.2 on Windows). I do not see the problem if I run the
> script using the command-line python instead of going through
> cx_Freeze. And the problem goes away if I downgrade from Python 3.1.3
> back to Python 3.1.2 (and then rebuild with cx_Freeze).
>
> Also, other than this one exception thrown when I import
> urllib.request, the program works fine. I am able to import other
> modules including other urllib modules without incident. If I attempt
> to directly import the mysterious _scproxy module with an import
> _scproxy statement in my top level .py file, the import _scproxy
> succeeds when I run with command-line python 3.1.3 and fails ("no
> module named") when I build an executable with cx_Freeze and run that.
>
> It might be this is something messed up in my build script, or
> something is getting corrupted by the way I installed 3.1.3 over
> 3.1.2. However is it possible this is a bug? For the time being I'm
> just downgrading to 3.1.2.
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> cx-freeze-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to