Note that there are some explanatory texts on larger screens.

plurals
  1. POpy2exe , twisted, zope.interface
    primarykey
    data
    text
    <p>I am trying to create windows service of twisted project. windows service as a whole on python works, but when i covert it to py2exe . </p> <p>I have tried these <a href="https://stackoverflow.com/questions/169897/how-to-package-twisted-program-with-py2exe">link 1</a> <a href="https://stackoverflow.com/questions/7816799/getting-py2exe-to-work-with-zope-interface">link 2</a> <a href="http://twistedmatrix.com/pipermail/twisted-python/2010-December/023243.html" rel="nofollow noreferrer">link3</a></p> <p>But nothing seems to work. </p> <pre><code>from distutils.core import setup import py2exe import clinet_service setup( options = { 'py2exe': { "compressed": 1, 'optimize': 2, "packages": ["email","twisted","twisted.web.resource"], 'bundle_files': 1, 'includes' : ["win32com", "zope.interface"], "excludes": ["MySQLdb", "Tkconstants", "Tkinter","tcl","orm.adapters.pgsql","orm.adapters.mysql"], "dll_excludes": ["tcl84.dll", "tk84.dll","wxmsw26uh_vc.dll"] } }, console=["clinet_service.py"], zipfile = None </code></pre> <p>) </p> <p>this the out put : </p> <pre><code> The following modules appear to be missing ['CFNetwork', 'Carbon', 'Carbon.Files', 'CoreFoundation', 'Crypto', 'Crypto.Cip er', 'Crypto.Cipher.AES', 'Crypto.Cipher.DES3', 'Crypto.Cipher.XOR', 'Crypto.Pu licKey', 'Cython.Distutils', 'OpenSSL', 'OpenSSL.SSL', 'OpenSSL.crypto', 'PAM', 'SOAPpy', '_curses', '_scproxy', 'crypt', 'dummy.plugins', 'email.Charset', 'em il.Encoders', 'email.Errors', 'email.Generator', 'email.Header', 'email.Iterato s', 'email.MIMEAudio', 'email.MIMEBase', 'email.MIMEImage', 'email.MIMEMessage' 'email.MIMEMultipart', 'email.MIMEText', 'email.Message', 'email.Parser', 'ema l.Utils', 'email.base64MIME', 'email.quopriMIME', 'eunuchs.tuntap', 'gadfly', ' i.pygtkcompat', 'gi.repository', 'gmpy', 'gnome', 'gobject', 'goodpackage', 'gt ', 'gtk.glade', 'html', 'idonotexist', 'importlib.invalidate_caches', 'kinterba db', 'mypackage', 'mypackage.testplugin', 'package', 'plugindummy.plugins', 'po tmap', 'psycopg', 'pyPgSQL', 'pyasn1', 'pyasn1.codec.ber', 'pyasn1.type', 'pydo tor.driver', 'pygtk', 'pyui', 'queue', 'quixote', 'resource', 'serial', 'shadow , 'sitecustomize', 'spwd', 'sqlite', 'subunit', 'syslog', 'twisted.plugins.fake ndpoint', 'twisted.python._epoll', 'twisted.python._initgroups', 'twisted.pytho .sendmsg', 'twisted_private_helper', 'twisted_python_versions_package', 'twiste _rebuild_fakelib', 'twisted_renamed_helper', 'uberpackage', 'urllib.parse', 'us rcustomize', 'utmp', 'win32com.gen_py', 'win32com.shell', 'wx', 'wxPython.wx'] </code></pre> <p>what am i missing here ?'</p> <p>--------------EDIT</p> <p>I have got the solution, I have re-written this script again with some changes , here is my script. Py2exe was successful only after <strong>init</strong>.py in site-packages/zope. Here is my script.</p> <pre><code> from distutils.core import setup import py2exe class BinaryDetails: def __init__(self, **kw): # for the versioninfo resources self.__dict__.update(kw) self.version = "1.1" self.company_name = "myworld" self.copyright = "myrights" self.name = "someprgms" binary_service = BinaryDetails( description = 'description', includes = [], modules = ['myservice'], cmdline_style='pywin32' ) setup( options = { 'py2exe': { "compressed": 1, 'optimize': 2, "packages": ["email","twisted"], 'bundle_files': 1, 'includes' : ['lxml._elementpath','zope.interface'], "excludes": ["MySQLdb", "Tkconstants", "Tkinter","tcl","orm.adapters.pgsql","orm.adapters.mysql"], "dll_excludes": ["tcl84.dll", "tk84.dll","wxmsw26uh_vc.dll"] } }, console = ["myservice.py"], zipfile = None, service=[binary_service] ) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload