|
|
Subject: How to make IDLE for Mac OS X works - msg#00129
List: python.apple
Hello,
I am new to Python programming. I have Mac OS 10.2.2 on my machine. I
also have IDLE for OS X on it but I am unable to launch the
application. From there, I don't know what to do. Can someone help me?
Regards.
---------------------
Pierre
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Python 2.2.2 and Tkinter installation problems on OS X
On Fri, Nov 29, 2002 at 09:14:29AM -0800, Nicholas Riley wrote:
>This is rather obviously a bug in install_scripts.py: it does 'perm OR
>0111' (sorry, no pipe key on this keyboard and I don't remember the
>Unicode correspondence :) instead of 0555, which is necessary for
>scripts to be read by the Python interpreter.
Good point; corrected in CVS.
--amk
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig
Next Message by Date:
click to view message preview
Running Python scripts without full paths
Hello. I'm brand new to Python, in OS 10.2.2, but an experienced
AppleScripter. (I'm quite amazed by the similarities of the syntax of the
two languages, which is making it easy to learn Python. I predict there will
be a lot of new converts.) I hope you don't mind a newbie setup question.
I'm brand new to Unix as well, and that's probably where I'm going wrong.
I was directed to pythonmac-sig when I was trying to find out how to import
a module with the Interactive interpreter. I saw a reference to Russell
Owen's webpage in the archives, where I found the solution to the problem
(which is Mac OS X-only): making my own 'environment.plist' XML file in
~/.MacOSX. The website URL is
http://www.astro.washington.edu/owen/AquaEnvVar.html
This should be added to the Python FAQ.
Now I'm stumped again. Russell's solution works for importing modules from
directories that I've added to PYTHONPATH. But I can't get the shell to run
script files without the file's full path or having to cd to the file's
directory first, even though I've now added the directory to the path shell
variable, which in turn has automatically added it to the PATH environment.
I can import the script as a module with only the module name in the
Interactive interpreter:
>>> import module1
Hello module world!
This (very simple) script does run when I give its full or relative path
name or cd to its directory first, in the shell:
[250-166:~] berkowit% python Library/Scripts/Python/module1.py
Hello module world!
But it won't work like this:
[250-166:~] berkowit% python module1.py
python: can't open file 'module1.py'
The shell does know about its directory now (I set path to include it):
[250-166:~] berkowit% printenv PATH
/Users/berkowit/bin/powerpc-apple-darwin:/Users/berkowit/bin:/usr/local/bin:
/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/Users/berkowit/Library/Script
s/Python:.
That next-to-last directory:
/Users/berkowit/Library/Scripts/Python
is the one with module1.py. Why doesn't the shell find it? Or why doesn't
Python find it since it too knows where it is now, as the module import
makes clear?
Is this another Mac-only problem? Maybe I need to add another key to the
environment.plist file? Or am I just doing something wrong?
Many thanks for any guidance.
--
Paul Berkowitz
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig
Previous Message by Thread:
click to view message preview
Warning: incompatible change in 2.3a0
Folks,
I'm about to check in an incompatible change in the CVS trunk for users
of Carbon.Qd: no longer will direct access to attributes of grafports
be allowed, only the accessor functions will work. Also, the
Carbon.Qd.qd object, the Quickdraw global variables, will disappear and
you will have to use the accessor functions here also. To give an
example, in stead of "port.bounds" you'll have to use
"port.GetPortBounds()", and in stead of "Carbon.Qd.qd.arrow" you'll
have to use "Carbon.Qd.GetQDGlobalsArrow()".
If this causes major inconvenience: clamor loudly and I'll try to
create a workaround. But I would rather not: the accessor functions
have been required for C programmers since Carbon, and using them will
make Python code more readable with the Apple documentation in hand.
And, Just, don't worry: I've converted the IDE and the Lib directory to
use accessor functions already, I'll check that in before I check in
the incompatible change.
--
- Jack Jansen <Jack.Jansen@xxxxxxxxxxx>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma
Goldman -
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig
Next Message by Thread:
click to view message preview
Running Python scripts without full paths
Hello. I'm brand new to Python, in OS 10.2.2, but an experienced
AppleScripter. (I'm quite amazed by the similarities of the syntax of the
two languages, which is making it easy to learn Python. I predict there will
be a lot of new converts.) I hope you don't mind a newbie setup question.
I'm brand new to Unix as well, and that's probably where I'm going wrong.
I was directed to pythonmac-sig when I was trying to find out how to import
a module with the Interactive interpreter. I saw a reference to Russell
Owen's webpage in the archives, where I found the solution to the problem
(which is Mac OS X-only): making my own 'environment.plist' XML file in
~/.MacOSX. The website URL is
http://www.astro.washington.edu/owen/AquaEnvVar.html
This should be added to the Python FAQ.
Now I'm stumped again. Russell's solution works for importing modules from
directories that I've added to PYTHONPATH. But I can't get the shell to run
script files without the file's full path or having to cd to the file's
directory first, even though I've now added the directory to the path shell
variable, which in turn has automatically added it to the PATH environment.
I can import the script as a module with only the module name in the
Interactive interpreter:
>>> import module1
Hello module world!
This (very simple) script does run when I give its full or relative path
name or cd to its directory first, in the shell:
[250-166:~] berkowit% python Library/Scripts/Python/module1.py
Hello module world!
But it won't work like this:
[250-166:~] berkowit% python module1.py
python: can't open file 'module1.py'
The shell does know about its directory now (I set path to include it):
[250-166:~] berkowit% printenv PATH
/Users/berkowit/bin/powerpc-apple-darwin:/Users/berkowit/bin:/usr/local/bin:
/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/Users/berkowit/Library/Script
s/Python:.
That next-to-last directory:
/Users/berkowit/Library/Scripts/Python
is the one with module1.py. Why doesn't the shell find it? Or why doesn't
Python find it since it too knows where it is now, as the module import
makes clear?
Is this another Mac-only problem? Maybe I need to add another key to the
environment.plist file? Or am I just doing something wrong?
Many thanks for any guidance.
--
Paul Berkowitz
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig
|
|