py2exe

Deploying cx_Oracle onto various versions of Oracle Client

I have some small python apps that use cx_Oracle to connect to an Oracle database. I deploy these apps by compiling them with py2exe, which works fine in many cases. The problem is, there is no standard Oracle Client version (9i and 10g for example) across the many people who need to install this, and it would be very frustrating to try...

pyAA with py2exe

Hi, Is anyone able to get pyAA working with py2exe? pyAA can be downloaded here. I have trying to do this for the last 2 days and I am unable to reach a solution till now. The example files are like given below: hello.py import pyAA print "Hello, World" setup.py from distutils.core import setup import py2exe setup(console=['hell...

py2exe + pywin32 MemoryLoadLibrary import fail when bundle_files=1

I have created a simple program which uses pywin32. I want to deploy it as an executable, so I py2exe'd it. I also didn't want a huge amount of files, so I set bundle_files to 1 (meaning bundle everything together). However, when I attempt running it, I get: Traceback (most recent call last): File "pshelper.py", line 4, in <module> ...

py2exe, problems

I'm attempting to convert a .py file to a .exe file. However, I get a weird output. Output: usage: module1 [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: module1 --help [cmd1 cmd2 ...] or: module1 --help-commands or: module1 cmd --help error: no commands supplied My code: from distutils.core import setup import...

Help converting .py to .exe, using py2exe

The script I ran # p2e_simple_con.py # very simple script to make an executable file with py2exe # put this script and your code script into the same folder # run p2e_simple_con.py # it will create a subfolder 'dist' where your exe file is in # has the same name as the script_file with extension exe # (the other subfolder 'build' can be...

py2exe access 'other_resources'

So with py2exe you can add additional data inside the library zip file, now I was wondering, how do you access this data, do you need to read it out from the zipfile or can you just access it like any other file ? or perhaps there's another way to access it. ...

SVG images dont appear after compiling PyQt4 python code with py2exe

hi, I wrote python application using svg images as icons. QtGui.QIcon(':icons/icon.svg') <- just like this it works on my comuter but after compiling it with py2exe and running on another computer, theres no icons. if i try e.g. bmp format, all works fine. so i think it could be some library problem. I don't know what PyQt4 uses for s...

py2exe: Reduce size of the library archive

Hi. I just created my first py2exe executable and noticed that with the EXE, there is a ZIP file created with the size of around 1.4 MB. My question is, can I reduce the size of this or is it expected that the typical size of an EXE generated with py2exe will be ~ 4 MB (that means with all the files: python2.6dll, library.zip) ...

How to access a MS SQL Server using Python 3?

I'm using a linux machine to make a little python program that needs to input its result in a SQL Server 2000 DB. I'm new to python so I'm struggling quite a bit to find what's the best solution to connect to the DB using python 3, since most of the libs I looked only work in python 2. As an added bonus question, the finished version o...

py2exe error on MSVCR80.dll

from distutils.core import setup import py2exe,sys,os sys.argv.append('py2exe') try: setup( options = {'py2exe': {'bundle_files': 1}}, console=['my_console_script.py'], zipfile = None, ) except Exception, e: print e outputs: > running py2exe > *** searching for required modules *** > *** parsing results *** > ...

wxPython and py2app, CreateActCtx error 0x00000008 (Not enough disk space available)

I've been developing an application that uses wxPython as the GUI librar, and py2exe so that I can easily distribute it, however I have just now tested py2exe and the following error appears when the executable is launched. 12:13:08: Debug: src/helpers.cpp(140): 'CreateActCtx' failed with error 0x00000008 (Not enough disk space availabl...

Help me with py2exe

I made my program, and tested it in Command Prompt(by entering in the directory). Then I made a set up file, and put the setup file and my program in the same folder. My setup file: from distutils.core import setup import py2exe setup(console=['C:\Python26\test\testprogram.py']) I went to run the setup program in command prompt(by e...

py2exe, problems

I tried all the steps in this tutorial. Yet I keep geting this ouput 'python' is not recognized as an internal or external command operable program or batch file. when I run python setup.py py2exe in command prompt What am I doing wrong? ...

py2exe problems

c:\python26\setup.py py2exe Trying to run py2exe and when I get to command prompt I run the line above. However as opposed to converting my file it try's to open it. What am I doing wrong? ...

I need MSVCR90.dll version 9.0.21022.8

According to a py2exe tutorial I found I need MSVCR90.dll version 9.0.21022.8 to run it for python 2.6. Where do I find MSVCR90.dll version 9.0.21022.8? ...

Lookup Error after packaging python script with py2exe

I have written a python script which binds to a socket like this: from socket import * addr = (unicode(), 11111) mySocket = socket(AF_INET, SOCK_STREAM) mySocket.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) mySocket.bind(addr) I package this script with py2exe using setup.py with the following options: setup( console=["myProgram.py"],...

py2exe, problems

I'm using py2exe and I get the following errors in command prompt. C:\Users\Me>C:\Python26\My_scripts\python.exe setup.py py2exe C:\Python26\My_scripts\python.exe: can't open file 'setup.py': [Errno 2] No such file or directory What am I doing wrong? ...

How to make a .exe for Python with good graphics?

Hello, I have a Python application and I decided to do a .exe to execute it. This is the code that I use to do the .exe: # -*- coding: cp1252 -*- from distutils.core import setup import py2exe, sys, os sys.argv.append('py2exe') setup( options = {'py2exe': {'bundle_files': 1}}, windows = [{'script': "SoundLog.py"}], zipf...

Py2Exe: DLL load failed

When trying to use py2exe to convert a simple Python game I made into exe format, it gave me the following error: Traceback (most recent call last): File "C:\Users\Tali\Desktop\2exe.py", line 4, in <module> setup(console=['test.py']) File "C:\Python\lib\distutils\core.py", line 152, in setup dist.run_commands() File "C:\Py...

How can I package a scrapy project using cxfreeze?

I have a scrapy project that I would like to package all together for a customer using windows without having to manually install dependencies for them. I came across cxfreeze, but I'm not quite sure how it would work with a scrapy project. I'm thinking I would make some sort of interface and run the scrapy crawler with 'from scrapy.cmd...