473,386 Members | 1,644 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,386 software developers and data experts.

twisted and py2exe

I've written an app using twisted to create an ssh forwarding tunnel
for our erp app. When I run it with the interpreter it works
perfectly, but when I package it up with py2exe it looks like the
tunnel never gets created. I don't get any exceptions during the
build, but I do get the following:

The following modules appear to be missing
['Crypto.PublicKey._fastmath', 'Crypto.Util.winrandom', 'FCNTL',
'IronPythonConsole', 'OpenSSL', 'System',
'System.Windows.Forms.Clipboard', 'clr', 'email.Generator',
'email.Iterators', 'email.Utils', 'gmpy', 'modes.editingmodes',
'pkg_resources', 'resource', 'startup']

I've tried including all of these at the command line, but all that
seems to do is increase the exe size.

Also, this file (_zope_interface_coptimizations.pyd) appears on the
list of libraries that may need to be distributed with the app. I
verified that that it is in the library.zip file and I've also tried
copying it to the app directory and C:\Windows\system32.

Am I missing something? I've searched Google but can't find anything
relevant.
Oct 16 '08 #1
1 2674
On Oct 16, 11:47*am, Linnorm <linn...@gmail.comwrote:
I've written an app using twisted to create an ssh forwarding tunnel
for our erp app. *When I run it with the interpreter it works
perfectly, but when I package it up with py2exe it looks like the
tunnel never gets created. *I don't get any exceptions during the
build, but I do get the following:

The following modules appear to be missing
['Crypto.PublicKey._fastmath', 'Crypto.Util.winrandom', 'FCNTL',
'IronPythonConsole', 'OpenSSL', 'System',
'System.Windows.Forms.Clipboard', 'clr', 'email.Generator',
'email.Iterators', 'email.Utils', 'gmpy', 'modes.editingmodes',
'pkg_resources', 'resource', 'startup']
These can be probably ignored.
>
I've tried including all of these at the command line, but all that
seems to do is increase the exe size.

Also, this file (_zope_interface_coptimizations.pyd) appears on the
Yup, you need this one. There should be more *.pyd files. Usually
they end up in the same directory as the executable.
I always specify zipfile = "lib/library.zip" parameter in my setup.py
This way all the dll end up neatly copied into lib/ sub folder.
list of libraries that may need to be distributed with the app. *I
verified that that it is in the library.zip file and I've also tried
copying it to the app directory and C:\Windows\system32.

Am I missing something? *I've searched Google but can't find anything
relevant.
Look for message from your Twisted service in "Event Viewer-
>Application"
If some of your imports fail that is where trace would end up.
Waldemar
Oct 17 '08 #2

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...
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...
2
by: Chaz Ginger | last post by:
I have a rather large Python/Twisted Matrix application that will be run on Windows, Linux and perhaps Macs. I was wondering if there are any tools that can be used to create an installer that will...
3
by: Martin Evans | last post by:
I have converted a Python script using py2exe and have it set to not bundle or compress. The result is my exe and all the support files including library.zip (exactly as planned - nice job py2exe)....
5
by: Michael | last post by:
I'm trying to build a exe on a vista system using py2exe. It will deploy to vista and XP systems. If it matters, the application uses pyserial, as well. I have VS Studio 2005 installed on this...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.