py2exe distribution wants internet access (DNS)

Otto Krüse otto_kruse at hotmail.com
Fri Mar 12 07:17:08 EST 2004


I don't think this is the answer because the python interpreter only 
wants to access IP adress 0.0.0.0 for accessing it's subroutines. That's 
something different than DNS access.

I think it has something to do with the MySQLdb module not being 
'converted' as it should by py2exe.

My hypothesis:
When my program wants to connect with the MySQL dBase it sends a message 
to the DNS to ask where it can find the MySQL server. DNS doesn't know 
it so the program then checks locally and finds the MySQL server and 
connects with it. However, if I block access to the DNS it will not find 
the local server any more, this is strange I think.... In fact I don't 
want my prgram to talk with a DNS, I want it to check for local servers 
only.

Anyone know something about this?

Many thanks
Otto


Dennis Lee Bieber wrote:

> On Thu, 11 Mar 2004 11:26:12 +0100, Otto Krüse <otto_kruse at hotmail.com>
> declaimed the following in comp.lang.python:
> 
> 
>>Why does the original python script run normally but does the py2exe 
>>'conversion' of it want DNS access? How can I change this?
>>
> 
> 	Hypothesis: At some point in time you granted the Python
> interpreter ITSELF access through the firewall. The file created by
> py2exe may contain the interpreter, but it is NOT the same interpreter
> to the firewall.
> 
> 	As a test, check your firewall configuration and remove all
> Python related entries. Then see what happens. I suspect you'll find it
> asks for access when run via "python xxx"
> 
> 
> --  
>  > ============================================================== <
>  >   wlfraed at ix.netcom.com  | Wulfraed  Dennis Lee Bieber  KD6MOG <
>  >      wulfraed at dm.net     |       Bestiaria Support Staff       <
>  > ============================================================== <
>  >           Home Page: <http://www.dm.net/~wulfraed/>            <
>  >        Overflow Page: <http://wlfraed.home.netcom.com/>        <



More information about the Python-list mailing list