473,394 Members | 2,160 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,394 software developers and data experts.

Problem with py2exe

HI!
I've a problem with py2exe: well, first of all I say that I use python
2.4.1 , py2exe 0.6.3 and distutils 1.0.2 on winxp.
To use py2exe I wrote a file setup.py like this:

from distutils.core import setup
import py2exe
setup(
version = "0.1",
description = "Py2Exe Script",
name = "App.exe",
windows = ["C:\app\\app.py"],
)

file that is launched in this way:
D:\programs\python24\python.exe setup.py py2exe

The command starts and at the beginning seems that all goes on with no
problem, but at a certain point there's an error:

copying D:\programs\python24\MSVCR71.dll -> D:\Applicazione\dist
error: could not delete 'C:\app\dist\MSVCR71.dll': Permission denied

However folders build and dist are created: in particular into the
folder dist i have the w9xpopen.exe file, some *.pyd files and some
dll's... among dll's I have the MSVCR71.dll too.
I don't understand what's the problem so I ask you a help!!!
See ya, bye!

Oct 30 '05 #1
2 2891
Hello DDany,

copying D:\programs\python24\MSVCR71.dll -> D:\Applicazione\dist
error: could not delete 'C:\app\dist\MSVCR71.dll': Permission denied

However folders build and dist are created: in particular into the
folder dist i have the w9xpopen.exe file, some *.pyd files and some
dll's... among dll's I have the MSVCR71.dll too.

My guess in the MSVCR71.dll is a read-only file in system32 and when py2exe
tries to copy it the 2'nd time it fails.

Either change MSVCR71.dll to read-write in system32 or delete "dist" before
calling to py2exe.

One final note:
You subject line could have been better, see
http://www.catb.org/~esr/faqs/smart-questions.html.

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <mt*****@qualcomm.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: GnuPT 2.7.2

iD4DBQFDZcWK8jAdENsUuJsRAl/DAJjJ1tj+A++CkuuR02DJNTqonh4lAJsGEjL6
ub5Ehhgyfd2LqwH+ghiz4Q==
=aYrw
-----END PGP SIGNATURE-----

Oct 31 '05 #2
Hi Miki,
I solved this first problem, thank you!
I was convinced to done things you suggested me, but... it wasn't!!!
I changed the access type of MSVCR71.dll and all went ok!
Thank you once again for your interest, bye!
P.S
Thank you for your final note too, next time I'll make a better
subject!

Miki Tebeka wrote:
Hello DDany,
My guess in the MSVCR71.dll is a read-only file in system32 and when py2exe
tries to copy it the 2'nd time it fails.

Either change MSVCR71.dll to read-write in system32 or delete "dist" before
calling to py2exe.

One final note:
You subject line could have been better, see
http://www.catb.org/~esr/faqs/smart-questions.html.

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <mt*****@qualcomm.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys


Nov 2 '05 #3

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...
5
by: Rene Olsthoorn | last post by:
Dear readers, py2exe has a problem including libxml2. Not at building time, but at runtime. The libxml2.dll cannot be loaded... Is there anyone that NOT has the problem? (and can you drop me...
0
by: bapeterson | last post by:
I'd like to use PY2EXE to "compile" a program using the VPYTHON module (www.vpython.org). I have an example where this was previously done to the demo script: Hanoi.py (a towers of Hanoi demo) a...
5
by: Lad | last post by:
I try to make an exe file from my script with help of Py2exe but I am not successfull. I have my script start.py that has only one command ############### import rgs.py ############## ...
4
by: bwaha | last post by:
First time trying to create an executable with py2exe. I have a small program which makes use of python23 (2.3.5?), wxpython ('2.6.2.1'), matplotlib ('0.83.2'), win32com (latest?), Numeric...
6
by: Michele Petrazzo | last post by:
Hi list, just found in this moment that my applications stop to work with win xp and receive this error: """ This application has requested the Runtime to terminate it in an unusual way....
2
by: thomas carpentier | last post by:
Hello, I have created a program with a GUI ( glade). In this script I call the Python Imaging Library. I have developped this program onto linux, but il would like export it on Windows,...
1
by: Dave Lim | last post by:
>On May 3, 1:29 pm, Dave Lim <diband... at yahoo.com> wrote: site:http://surguy.net/articles/speechrecognition.xml used out tried ? to protection aroundhttp://mail.yahoo.com I went and
5
by: msunderwd | last post by:
Having a problem with "compiling" a Tkinter/python program using py2exe (and pyinstaller, for that matter)... I have several dialogs that are derived from the tkSimpleDialog.Dialog class. These...
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...
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
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,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.