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

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.speckledwithstars.net/>

Oct 14 '08 #1
2 2925
Dennis Lee Bieber wrote:
On Mon, 13 Oct 2008 19:07:06 -0700, "W. eWatson"
<no*******@sbcglobal.netdeclaimed the following in comp.lang.python:
>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\python.exe" "%1" %*

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

ftype python.file="E:\Python24\python.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 "Application used..." box, you should see (again, adjust for
your path)

"E:\Python24\python.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.speckledwithstars.net/>

Oct 14 '08 #2
W. eWatson wrote:
Dennis Lee Bieber wrote:
>On Mon, 13 Oct 2008 19:07:06 -0700, "W. eWatson"
<no*******@sbcglobal.netdeclaimed the following in comp.lang.python:
>>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\python.exe" "%1" %*

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

ftype python.file="E:\Python24\python.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 "Application used..." box, you should see (again, adjust for
your path)

"E:\Python24\python.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.speckledwithstars.net/>

Oct 14 '08 #3

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

Similar topics

6
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...
2
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...
0
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...
7
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...
0
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
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"...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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:
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
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
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...
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.