This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can't run NumTut on cygwin-hosted python


When I try to run the NumTut demo in Numeric in my cygwin hosted
python, I get a tclerror: "/c/winnt/temp/@1536.0.ppm": no such file or
directory.  But the file does indeed exist.

At first glance it seems like a problem with cygwin mapping WinNT
paths to POSIX paths, but I have played around with the environment
variable that controls where this tempfile goes, and I am beginning to
think that the problem lies somewhere else.

All the other Numeric tests work, and all my tkinter demos run OK.

Not sure what to try next.  Any suggestions?

Trace follows:

Python 2.2.1 (#1, Jun 25 2002, 10:55:46)
[GCC 2.95.3-5 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from NumTut import *
>>> view(greece)
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/tmp/python.576/usr/lib/python2.2/threading.py", line 408, in
__bootstra
p
    self.run()
  File "NumTut/view.py", line 171, in run
    u = PPMImage(tl, array2ppm(image), scales)
  File "NumTut/view.py", line 136, in __init__
    self.image = Tkinter.PhotoImage(file=save_ppm(ppm))
  File "/tmp/python.576/usr/lib/python2.2/lib-tk/Tkinter.py", line
2997, in __in
it__
    apply(Image.__init__, (self, 'photo', name, cnf, master), kw)
  File "/tmp/python.576/usr/lib/python2.2/lib-tk/Tkinter.py", line
2953, in __in
it__
    self.tk.call(('image', 'create', imgtype, name,) + options)
TclError: couldn't open "/c/winnt/temp/@1536.0.ppm": no such file or
directory

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]