473,385 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

_ssl.pyd in py2exe ???

I've written a Tkinter application and am bundling it using py2exe 0.5

Because of the inclusion of Tk/TCL the final package is rather
large........ but why on earth in an anagram finder is _ssl.pyd (500k)
being bundled in with it ???

Seems rather odd ? Possibly this is something *other* than the secure
socket layer library... but if it is that... bizzare.........
Fuzzy
http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #1
5 2975
Fuzzyman wrote:
large........ but why on earth in an anagram finder is _ssl.pyd (500k)
being bundled in with it ???

You probably have some dependency on socket somewhere, which pullsin the ssl
module.
Peter
Jul 18 '05 #2
mi*****@foord.net (Fuzzyman) wrote:
I've written a Tkinter application and am bundling it using py2exe 0.5

Because of the inclusion of Tk/TCL the final package is rather
large........ but why on earth in an anagram finder is _ssl.pyd (500k)
being bundled in with it ???


Probably that some module you have imported requires it, maybe Tk?
Jul 18 '05 #3
Peter Strempel <pe***********@yahoo.com> wrote in message news:<is************@ID-66900.news.dfncis.de>...
Fuzzyman wrote:
large........ but why on earth in an anagram finder is _ssl.pyd (500k)
being bundled in with it ???

You probably have some dependency on socket somewhere, which pullsin the ssl
module.


It jumbles up words and displays the results in a Tk window...........

Which is why I'm surprised to see an SSL library there...

My imports are :
import string, os.path, sys
from cPickle import dump, load
from copy import copy, deepcopy
from time import clock, strftime
from webbrowser import open as openbrow

try:
import psyco # python specialising compiler
psyco.full()
except:
pass

from Tkinter import *
from tkFileDialog import asksaveasfilename, askopenfilename
from tkMessageBox import showerror

None of which *should* be dependant on the SSL library...........
Hmmm... odd :-)

Fuzzy


Peter

Jul 18 '05 #4
mi*****@foord.net (Fuzzyman) writes:
Peter Strempel <pe***********@yahoo.com> wrote in message news:<is************@ID-66900.news.dfncis.de>...
Fuzzyman wrote:
> large........ but why on earth in an anagram finder is _ssl.pyd (500k)
> being bundled in with it ???

You probably have some dependency on socket somewhere, which pullsin the ssl
module.


It jumbles up words and displays the results in a Tk window...........

Which is why I'm surprised to see an SSL library there...

My imports are :
import string, os.path, sys
from cPickle import dump, load
from copy import copy, deepcopy
from time import clock, strftime
from webbrowser import open as openbrow

try:
import psyco # python specialising compiler
psyco.full()
except:
pass

from Tkinter import *
from tkFileDialog import asksaveasfilename, askopenfilename
from tkMessageBox import showerror

None of which *should* be dependant on the SSL library...........


_ssl is imported by the httplib and socket modules.
socket is imported by a lot of modules, webbrowser among them, so this
is explained.

If you are sure your program never uses socket (or _ssl), you should use
py2exe's excludes option to avoid that these are included.

Thomas
Jul 18 '05 #5
Thomas Heller <th*****@python.net> wrote in message news:<ma**************************************@pyt hon.org>...
mi*****@foord.net (Fuzzyman) writes:
[snip..]
_ssl is imported by the httplib and socket modules.
socket is imported by a lot of modules, webbrowser among them, so this
is explained.

If you are sure your program never uses socket (or _ssl), you should use
py2exe's excludes option to avoid that these are included.

Thomas


I did wonder if it was the webbrowser module !
It's half a meg of unnecessary 'stuff' - so I'll set py2exe to not include it.

MANY THANKS

Fuzzyman

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
2
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
0
by: Kathleen Kudzma | last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added...
2
by: Skip Montanaro | last post by:
I'm trying to build the released version of Python 2.3 on Solaris 8 for the first time. It has problems when building _ssl.so. The command generated is gcc -shared...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
0
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
11
by: uid09012_ti | last post by:
Hi, i get the following error message when i use py2exe on my application: The following modules appear to be missing I've installed PyXML-0.8.4.win32-py2.4.exe. My version of python is...
8
by: Laszlo Nagy | last post by:
Hello, I wrote a small program that uses xmlrpc over https. It should work as a win32 application and as a win32 service too. There is a file called Processor.py that contains the main thread of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.