ipython problem in opening a file

2010-07-09 Thread youngung
Hello pythoners!

I just dived into ipython since I'd like to make use of matplotlib.
Over the trials, I came across a problem.
One of the scripts that I have is not working with ipython, while it
has been and still is working well with Python GUI.

The problem is, even though I have the file in the c:\python26 folder,
IPython can't fine it.

One of the many things I tried, is as below.

*


f=open('od.txt','w')
---
IOError   Traceback (most recent call
last)

C:\Windows\system32\ in ()

IOError: [Errno 13] Permission denied: 'od.txt'



What should I do further to solve this problem?
-- 
http://mail.python.org/mailman/listinfo/python-list


insufficient memory problem in running .exe file in ipython

2010-07-15 Thread youngung
Hello!

I came across a problem in running a .exe file through ipython.
"""  os.system(' ~.exe')"""  was used.
The error message popped up says

Memory error: insufficient physical memory available

What should I try further?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ipython problem in opening a file

2010-07-09 Thread Youngung Jeong
Thanks a lot!

Youngung


On Fri, Jul 9, 2010 at 10:17 PM, Eli Bendersky  wrote:

> On Fri, Jul 9, 2010 at 16:07, Youngung Jeong 
> wrote:
> > Thank you for your kindness.
> > I found you're right. It's running in that folder.
> > What should I do for making this work?
> > Could you please tell me a bit more...
> >
> > Youngung
>
> You can change the "current directory" ipython executes in, by either
> executing it directly (from the command line) in the directory of your
> choice, or calling the os.chdir function with the path of your choice.
>
> Eli
>
-- 
http://mail.python.org/mailman/listinfo/python-list