From jstrout@ucsd.edu Thu Aug 1 20:19:59 1996 From: jstrout@ucsd.edu (Joseph Strout) Date: Thu, 1 Aug 1996 12:19:59 -0700 (PDT) Subject: [PYTHONMAC-SIG] socket errors Message-ID: Trying to run server.py (on my own web site!) on my PowerMac, I get: Traceback (innermost last): File "Megadisk:Data:Internet Mirrors:sdcc3/public_html:python:server.py", line 10, in ? from socket import * # get sockets, for well, sockets File "Speedy:Apps:from the Net:Python 1.3:Lib:mac:socket.py", line 20, in ? error = (mactcp.error, macdnr.error, _myerror) AttributeError: error ...any idea what this might mean? The file works fine under Unix... Thanks, -- Joe ,------------------------------------------------------------------. | Joseph J. Strout Department of Neuroscience, UCSD | | jstrout@ucsd.edu http://www-acs.ucsd.edu/~jstrout/ | `------------------------------------------------------------------' ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From Jack.Jansen@cwi.nl Fri Aug 2 09:43:29 1996 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Fri, 02 Aug 1996 10:43:29 +0200 Subject: [PYTHONMAC-SIG] socket errors In-Reply-To: Message by Joseph Strout , Thu, 1 Aug 1996 12:19:59 -0700 (PDT) , Message-ID: <9608020843.AA11186=jack@schelvis.cwi.nl> > Trying to run server.py (on my own web site!) on my PowerMac, I get: > > Traceback (innermost last): > File "Megadisk:Data:Internet > Mirrors:sdcc3/public_html:python:server.py", line 10, in ? > from socket import * # get sockets, for well, sockets > File "Speedy:Apps:from the Net:Python 1.3:Lib:mac:socket.py", line 20, in ? > error = (mactcp.error, macdnr.error, _myerror) > AttributeError: error > > ...any idea what this might mean? The file works fine under Unix... You are somehow using socket.py in stead of the builtin socket module. If you are using Python 1.3.2 or later you should be getting the builtin module when you import socket... If you are using an older python: at some point there was a name conflict between the mactcp and MACTCP modules, this could be what is bothering you. I don't remember the exact fix anymore, though, so I'd suggest you just upgrade... -- Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++ Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++ http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From Jack.Jansen@cwi.nl Fri Aug 2 09:43:29 1996 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Fri, 02 Aug 1996 10:43:29 +0200 Subject: [PYTHONMAC-SIG] socket errors In-Reply-To: Message by Joseph Strout , Thu, 1 Aug 1996 12:19:59 -0700 (PDT) , Message-ID: <9608020843.AA11186=jack@schelvis.cwi.nl> > Trying to run server.py (on my own web site!) on my PowerMac, I get: > > Traceback (innermost last): > File "Megadisk:Data:Internet > Mirrors:sdcc3/public_html:python:server.py", line 10, in ? > from socket import * # get sockets, for well, sockets > File "Speedy:Apps:from the Net:Python 1.3:Lib:mac:socket.py", line 20, in ? > error = (mactcp.error, macdnr.error, _myerror) > AttributeError: error > > ...any idea what this might mean? The file works fine under Unix... You are somehow using socket.py in stead of the builtin socket module. If you are using Python 1.3.2 or later you should be getting the builtin module when you import socket... If you are using an older python: at some point there was a name conflict between the mactcp and MACTCP modules, this could be what is bothering you. I don't remember the exact fix anymore, though, so I'd suggest you just upgrade... -- Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++ Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++ http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From billpy@mousa.demon.co.uk Wed Aug 7 01:42:20 1996 From: billpy@mousa.demon.co.uk (billpy@mousa.demon.co.uk) Date: Tue, 6 Aug 1996 20:42:20 -0400 (EDT) Subject: No subject Message-ID: Reply - To: Date: Tue, 6 Aug 1996 23:57:14 +0000 To: pythonmac-sig@python.org From: Bill Bedford Subject: Applets Is it possible to make applets act on files dropped on them? ----------------------------------------------------------------------- Bill Bedford Designer of Photo-Etches billb@mousa.demon.co.uk owner Brit_Rail-L --- british railways historical list ----------------------------------------------------------------------- ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From Jack.Jansen@cwi.nl Wed Aug 7 11:20:09 1996 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Wed, 07 Aug 1996 12:20:09 +0200 Subject: No subject In-Reply-To: Message by billpy@mousa.demon.co.uk , Tue, 6 Aug 1996 20:42:20 -0400 (EDT) , Message-ID: <9608071020.AA20905=jack@schelvis.cwi.nl> > From: Bill Bedford > Subject: Applets > > Is it possible to make applets act on files dropped on them? Yes. If the applet is droppable (set the "apple-event aware" bit in the finder flags, I think this is on by default but I'm not 100% sure) and you add the types for the files which you want to drop to the bundle resource. The file names show up in sys.argv. EditPythonPrefs is an example of this (since 1.3.3): you drop applets (or python interpreters) on it to set applet-specific preferences. -- Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++ Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++ http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From jstrout@ucsd.edu Wed Aug 21 17:01:09 1996 From: jstrout@ucsd.edu (Joseph Strout) Date: Wed, 21 Aug 1996 09:01:09 -0700 (PDT) Subject: [PYTHONMAC-SIG] faceless background applet? Message-ID: Would anyone happen to know how I could make a Python applet faceless -- that is, run in the background, and not callable to the front? (I want to make a background server that casual users can't easily quit.) Thanks, -- Joe ,------------------------------------------------------------------. | Joseph J. Strout Department of Neuroscience, UCSD | | jstrout@ucsd.edu http://www-acs.ucsd.edu/~jstrout/ | `------------------------------------------------------------------' ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From Jack.Jansen@cwi.nl Thu Aug 22 12:18:43 1996 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Thu, 22 Aug 1996 13:18:43 +0200 Subject: [PYTHONMAC-SIG] faceless background applet? In-Reply-To: Message by Joseph Strout , Wed, 21 Aug 1996 09:01:09 -0700 (PDT) , Message-ID: <9608221118.AA01171=jack@schelvis.cwi.nl> > Would anyone happen to know how I could make a Python applet faceless -- > that is, run in the background, and not callable to the front? (I want to > make a background server that casual users can't easily quit.) I've never tried it, but wouldn't it be good enough to give it type 'appe' and set the 'background only' bit in the finder information? Please share your findings with us if you try it... -- Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++ Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++ http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From guido@CNRI.Reston.Va.US Wed Aug 28 21:37:28 1996 From: guido@CNRI.Reston.Va.US (Guido van Rossum) Date: Wed, 28 Aug 1996 16:37:28 -0400 Subject: [PYTHONMAC-SIG] Python 1.4beta3 for Macintosh released -- with Tkinter support! Message-ID: <199608282037.QAA09441@monty> A port of Python 1.4beta3 for all Mac platforms is now available. You can get it via ftp from ftp.python.org, directory /pub/python/mac/. Or point your web browser to: http://www.python.org/ftp/python/mac/ The directory contains complete, ready-to-install, binary distributions for PowerPC Mac, 68K Mac, and 68K Mac using CFM68K (shared library support). There's also a full source distribution, which contains a whole subtree of Mac-specific files that aren't in the core distribution. Note that both the PPC and the 68K binaries contain full support for Tkinter. You don't need to install Tcl/Tk in order to use this -- it's all statically linked (even the *.tcl scripts are there, in the resource fork). The CFM68K version doesn't support Tkinter yet -- it appears to work but crashes as soon as you pop up or pull down a menu. Thanks to Jack Jansen who did most of the work on this release, as usual! Here's a copy of the README file from that directory: ====================================================================== Here you will find the 1.4 beta 3 distribution, available as binary distributions for 68K, CFM68K and PPC and as source: Python-14b3-68K.hqx Full distribution for 68K, classic memory model. Interpreter includes img, waste and tkinter modules. Python-14b3-small68kint.hqx Small 68K interpreter only (also load the above distribution) without img, waste and tkinter, for people with little memory. Python-14b3-CFM68K.hqx Full distribution for 68K, CFM68K memory model (includes cfm68k). Useable if you have 68020 or higher and run System 7.1.1 or newer. Python-14b3-PPC.hqx Full distribution for PPC. Python-14b3-src.hqx Source distribution. The libjpeg-v4.hqx, libpbmtiff.hqx and stdwin.hqx are versions of the IJG jpeg library, the pbmplus and libtiff library and the stdwin library, all preconfigured for building Python from source. It is probably unwise to use this distributions for anything else. Jack Jansen, jack@cwi.nl, 28-Aug-96 [updated by GvR, 28-Aug-96] ====================================================================== --Guido van Rossum (home page: http://www.python.org/~guido/) ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From guzdial@cc.gatech.edu Fri Aug 30 23:11:57 1996 From: guzdial@cc.gatech.edu (Mark Guzdial) Date: Fri, 30 Aug 1996 18:11:57 -0400 (EDT) Subject: [PYTHONMAC-SIG] Python + PaperPort? Message-ID: Does anybody else using Python on the Mac have a PaperPort? Again with 1.4b3 (as with 1.3.3) when I tried to run MkPluginAliases, I got: Traceback (innermost last): File "flap:jack:Python:Mac:scripts:MkPluginAliases.py", line 11, in ? ImportError: No module named os I decided to try it with no extensions today, and everything worked fine! 11 restarts after fiddling with extensions later, it comes down to the Paperport control panel. If it's loaded, I can't run Python; if it isn't, everything's fine. I'm hoping that someone has a fix. My Paperport software is 3.5.1. Suggestions? Thanks! Mark -------------------------- Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280 (404) 894-5618 : Fax (404) 894-0673 : guzdial@cc.gatech.edu <> http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org =================