473,782 Members | 2,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python IDLE and Access Denied

I had just finished working with IDLE, and tried to double-click on a py
file. It produced an OK dialog with the path to the file and the msg "access
denied." All my py files act that way. I rebooted and the same thing
continues. I copied one py program to another computer, and accessed it
there. Python 2.4. Suggestions?
--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwi thstars.net/>

Oct 14 '08 #1
2 2955
Dennis Lee Bieber wrote:
On Mon, 13 Oct 2008 19:07:06 -0700, "W. eWatson"
<no*******@sbcg lobal.netdeclai med the following in comp.lang.pytho n:
>I had just finished working with IDLE, and tried to double-click on a py
file. It produced an OK dialog with the path to the file and the msg "access
denied." All my py files act that way. I rebooted and the same thing
continues. I copied one py program to another computer, and accessed it
there. Python 2.4. Suggestions?

Off-hand, I'd suspect some of your mistakes in trying to get a
console to run Python programs has left the association between .py and
the Python interpreter in a mess.

Go back to the console and enter

ftype python.file

exactly -- nothing else, and see what it displays. If it looks anything
other than (change the E: to whatever your installation uses)

C:\Documents and Settings\Dennis Lee Bieber>ftype python.file
python.file="E: \Python24\pytho n.exe" "%1" %*

then you'll need to change it... (again ensure the path is correct)

ftype python.file="E: \Python24\pytho n.exe" "%1" %*
The other place to explore would be from a directory window:
Tools/Folder Options/File Types

Find PY, click [advanced], select open, click [edit]

In the "Applicatio n used..." box, you should see (again, adjust for
your path)

"E:\Python24\py thon.exe" "%1" %*
[x] use DDE
Application: Python
Topic: System

(Hmmm, I don't recall if DDE is really applicable, but that's what mine
shows).

Thanks, again, but this one mysteriously disappeared. I managed to open my
py file into IDLE and saved it to see if that would work. It did and all is
well.

--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwi thstars.net/>

Oct 14 '08 #2
W. eWatson wrote:
Dennis Lee Bieber wrote:
>On Mon, 13 Oct 2008 19:07:06 -0700, "W. eWatson"
<no*******@sbc global.netdecla imed the following in comp.lang.pytho n:
>>I had just finished working with IDLE, and tried to double-click on a
py file. It produced an OK dialog with the path to the file and the
msg "access denied." All my py files act that way. I rebooted and the
same thing continues. I copied one py program to another computer,
and accessed it there. Python 2.4. Suggestions?

Off-hand, I'd suspect some of your mistakes in trying to get a
console to run Python programs has left the association between .py and
the Python interpreter in a mess.

Go back to the console and enter

ftype python.file

exactly -- nothing else, and see what it displays. If it looks anything
other than (change the E: to whatever your installation uses)

C:\Documents and Settings\Dennis Lee Bieber>ftype python.file
python.file="E :\Python24\pyth on.exe" "%1" %*

then you'll need to change it... (again ensure the path is correct)

ftype python.file="E: \Python24\pytho n.exe" "%1" %*
The other place to explore would be from a directory window:
Tools/Folder Options/File Types

Find PY, click [advanced], select open, click [edit]

In the "Applicatio n used..." box, you should see (again, adjust for
your path)

"E:\Python24\p ython.exe" "%1" %* [x] use DDE
Application: Python
Topic: System

(Hmmm, I don't recall if DDE is really applicable, but that's what mine
shows).

Thanks, again, but this one mysteriously disappeared. I managed to open
my py file into IDLE and saved it to see if that would work. It did and
all is well.
Well, the story isn't quite over. I discovered the message appears only
outside of Idle. However, within Idle it can read and save the file. My
guess is that it's more likely the matplotlib install went haywire, or a
week before this a disk failure caused the problem. By pure luck, I managed
to restore the drive. In any case, I can still proceed.
--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwi thstars.net/>

Oct 14 '08 #3

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

Similar topics

6
2248
by: Aubrey Hutchison | last post by:
Using Python 2,3,2 with idle for developing programs about 200 lines long. - Problem is not common to any specific program. Program are rather simple with no trick programming. Usually no classes but a few functions using math module with long integers. Usually for the first few tryout everything works fine and then idle locks "out" windows xp pro.. I can run other programs, but clicking on idle icon gets me an hour glass for a few...
2
3059
by: calfdog | last post by:
Hello, Does anyone know a workaround for calling fireEvent. With the latest from Microsoft OS XP2 and Hot fixes to IE it now gives an "access denied" error in Python when called. Here is what I am trying to do: Set the "campus" listbox value and theb call fire event, such as in the code below. I get an "access denied" error.
0
2726
by: Bill Davy | last post by:
I am working with MSVC6 on Windows XP. I have created an MSVC project called SHIP I have a file SHIP.i with "%module SHIP" as the first line (file is below). I run SHIP.i through SWIG 1.3.24 to obtain SHIP_wrap.cpp and SHIP.py; the latter contains the line "import _SHIP". I compile SHIP_wrap.cpp and a bunch of files into a DLL which I have the
7
8841
by: JAG CHAN | last post by:
Friends, As I had written earlier, I am trying to learn Python. I chose IDLE as an editor to learn Python. Now I find that it is an online editor. It is not possible for me to be always on online while learning. Kindly suggest me a suitable editor (for Windows XP) which does not require me to be on online. Regards.
0
263
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 431 open ( +3) / 3425 closed ( +8) / 3856 total (+11) Bugs : 916 open (-23) / 6273 closed (+44) / 7189 total (+21) RFE : 244 open ( +4) / 240 closed ( +1) / 484 total ( +5) New / Reopened Patches ______________________
4
1548
by: renguy | last post by:
I am interested in making some changes and additions to the Python environment (Python and IDLE). I have the source code and can build the source, but what I want to know is what are the "main" functions or source code for Python and IDLE. Specifically I would like to know what in Python and IDLE would be analogous to void main () in a standard C program. This will help me to work out the structure of the interpreter and the environment....
0
9639
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9479
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10311
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.