From Jack.Jansen at cwi.nl Sun Jun 1 00:30:24 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Sat May 31 17:30:34 2003 Subject: [Pythonmac-SIG] PackageManager from CVS crashes In-Reply-To: <3B1D24FE-9328-11D7-BB8A-000393BB6D36@stat.ucla.edu> Message-ID: <173FDB81-93AF-11D7-B67D-000A27B19B96@cwi.nl> On zaterdag, mei 31, 2003, at 07:25 Europe/Amsterdam, Jan de Leeuw wrote: > Opens window, but then crashes. Do you have wxWindows installed? If you do then this is a known problem, the wxWindows folks are working on fixing it. And, good that you remind me, in the mean time I need to add a workaround. If you don't have wxWindows installed this is a new problem. I would like to see the output of "pythonw .../Lib/plat-mac/pimp.py -sv" run from the Terminal window. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From support at intervideo.com Sun Jun 1 02:26:44 2003 From: support at intervideo.com (Intervideo Tech Support) Date: Sun Jun 1 04:21:47 2003 Subject: [Pythonmac-SIG] RE: Approved Message-ID: <04b301c32817$89cf7820$0100000a@gradius> Thank you for e-mailing Intervideo WEB/RETAIL customer service. If you need OEM (bundled) support for an Intervideo product, please contact the OEM for that information because we do not provide exhuastive support for OEM versions of the program. We do however, have a consumer knowledge base available at http://spt1.intervideo.com/html/search.html and OEM customers can use it to get automated answers to some questions. This message is an auto-response that is generated each time an e-mail is sent to support@intervideo.com. If you send multiple messages, you will simply get multiple copies of this e-mail back. Hours of operation are Monday through Friday, 9:15 A.M. to 5:30 P.M., Pacific Standard Time, closed on the weekends. If you have e-mailed Intervideo on the weekend, you will not get a response until Monday afternoon at the minimum. E-mails are answered in the order they are received and attachments will be deleted without consideration. For a faster response, please include your web order number in your e-mail-it is typically a six or seven digit number. Failure to include this will result in a slower response time, possibly exceeding 48 hours. If you have contacted a support representative in the past, please feel free to e-mail that customer support representative directly with your question. If you have e-mailed in the latter half of the day, beyond 4 P.M., Pacific Standard Time, you will not get a response until the next business day. Regards, Intervideo web/retail customer support From VirusScan at noreply.nvidia.com Sun Jun 1 04:13:08 2003 From: VirusScan at noreply.nvidia.com (VirusScan@noreply.nvidia.com) Date: Sun Jun 1 06:13:38 2003 Subject: [Pythonmac-SIG] VirusScan has detected a Virus in your message Message-ID: NVIDIA's automated content monitoring gateway has denied delivery of the following message: Message: BB00028240.00000001.mml From: pythonmac-sig@python.org To: info@nvidia.com Subject: Re: Screensaver Because it believes the message contains a virus. The virus scanning software used was: Marshal Integrated McAfee Antivirus Virus found - W32/Sobig.eml Please clean the file and resend it. From webmaster at arcsoft.com Sun Jun 1 05:55:24 2003 From: webmaster at arcsoft.com (webmaster@arcsoft.com) Date: Sun Jun 1 07:57:27 2003 Subject: [Pythonmac-SIG] Re: Re: Submited (004756-3463) Message-ID: <3ED9E9AC.000011.26880@utilnj01.int.rightnowtech.com> Response --------------------------------------------------------------- Thank you for contacting ArcSoft Technical Support. In a step to provide the best quality support, we have moved our entire support system online. This is the only message you will receive in response to your recent email; all other correspondences must occur using our "online knowledge base." Here are some answers from the knowledge base that may provide the solution to your inquiry: No matches were found. Please visit the ArcSoft Technical Support site to find additional answers. Use our search function to find what you need: 1. Go to the ArcSoft Technical Support homepage. 2. Click on "Find Answers." 3. Search for your answer based on product name, keywords, etc. If you are still unable to resolve your problem, click on the "Ask a Question" tab. Your question will be sent directly to one of our Technical Support representatives. Thank you, ArcSoft Technical Support ------------------ Please do not reply to this email. As mentioned above, all support inquires are now handled online at http://www.arcsoft.com/support/index.asp. Click on the "Find Answers" tab to get started! If you received this message as a response to a reply email that you have sent, please visit http://arcsoft.custhelp.com/cgi-bin/arcsoft.cfg/php/enduser/acct_login.php to log into your incident using your user ID (email address). Once you log in, you will be able to update your support incident as needed. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030601/32207d52/attachment.htm From keery at shaw.ca Sun Jun 1 08:55:38 2003 From: keery at shaw.ca (Cindy Keery) Date: Sun Jun 1 10:52:31 2003 Subject: [Pythonmac-SIG] Re: Approved In-Reply-To: <0HFS005JYY3VNN@l-daemon> Message-ID: <5.2.0.9.0.20030601075523.00a1a1a0@pop3.norton.antivirus> What is this? At 08:16 AM 6/1/03 +0400, you wrote: >Please see the attached file. From erik at letterror.com Sun Jun 1 13:31:31 2003 From: erik at letterror.com (Erik van Blokland) Date: Sun Jun 1 11:41:49 2003 Subject: [Pythonmac-SIG] converting paths Message-ID: Does Carbon.File perhaps have a way of converting file paths between mac (:) and unix (/) and back? Taking /Volumes/ into account? Thx, Erik From postmaster at Intuit.com Sun Jun 1 10:28:31 2003 From: postmaster at Intuit.com (System Administrator) Date: Sun Jun 1 12:29:22 2003 Subject: [Pythonmac-SIG] Undeliverable: Re: Screensaver [Executable Attachment Stripped ] Message-ID: Your message To: quickenquoteslive@quicken.com Subject: Re: Screensaver [Executable Attachment Stripped] Sent: Sun, 1 Jun 2003 04:24:49 -0700 did not reach the following recipient(s): quickenquoteslive@quicken.com on Sun, 1 Jun 2003 09:24:53 -0700 The recipient name is not recognized The MTS-ID of the original message is: c=us;a= ;p=intuit;l=EXBH010306011624J0HJY72C MSEXCH:IMS:Intuit:BridgeHead-SD:EXBH01 0 (000C05A6) Unknown Recipient -------------- next part -------------- An embedded message was scrubbed... From: pythonmac-sig@python.org Subject: Re: Screensaver [Executable Attachment Stripped] Date: Sun, 1 Jun 2003 04:24:49 -0700 Size: 1005 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030601/6573fb80/attachment.eml From MAILER-DAEMON at aol.com Sun Jun 1 13:46:36 2003 From: MAILER-DAEMON at aol.com (Mail Delivery Subsystem) Date: Sun Jun 1 12:50:17 2003 Subject: [Pythonmac-SIG] Mail Delivery Problem Message-ID: <200306011249.05MiEUQiXZ_xd@omr-m01.mx.aol.com> Sorry pythonmac-sig@python.org. Your mail to the following recipients could not be delivered because they are not accepting mail with attachments or embedded images: rukewl87 From Jack.Jansen at cwi.nl Sun Jun 1 22:12:35 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Sun Jun 1 15:12:42 2003 Subject: [Pythonmac-SIG] Re: Approved In-Reply-To: <5.2.0.9.0.20030601075523.00a1a1a0@pop3.norton.antivirus> Message-ID: <008A24F9-9465-11D7-80F7-000A27B19B96@cwi.nl> On zondag, jun 1, 2003, at 16:55 Europe/Amsterdam, Cindy Keery wrote: > What is this? > > At 08:16 AM 6/1/03 +0400, you wrote: >> Please see the attached file. This is a virus that didn't get caught by the Mailman list processor. It catches a lot of spam and viruses, but some can always slip through. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From sales at intervideo.com Sun Jun 1 14:58:42 2003 From: sales at intervideo.com (InterVideo Sales) Date: Sun Jun 1 16:58:11 2003 Subject: [Pythonmac-SIG] This is an autoreply...[Re: Re: Movie] Message-ID: <20030601205842.571DD68107@postfix.intervideo.com> Thank you for contacting 'sales@intervideo.com'. Due to ever-increasing demand, we had to close this email account. If you have a customer question, you can contact our support organization here: http://www.intervideo.com/jsp/Faq.jsp?mode=support From MAILER-DAEMON at intervideo.com Sun Jun 1 14:58:42 2003 From: MAILER-DAEMON at intervideo.com (Mail Delivery System) Date: Sun Jun 1 16:58:12 2003 Subject: [Pythonmac-SIG] Undelivered Mail Returned to Sender Message-ID: <20030601205842.727FE68112@postfix.intervideo.com> This is the Postfix program at host postfix.intervideo.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program : cannot access mailbox /var/mail/sales for user sales. error writing message: File too large -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- An embedded message was scrubbed... From: Subject: Re: Movie Date: Sun, 1 Jun 2003 16:57:46 --0400 Size: 1066 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030601/753d7992/attachment.eml From Jack.Jansen at cwi.nl Mon Jun 2 00:22:35 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Sun Jun 1 17:22:43 2003 Subject: [Pythonmac-SIG] Somebody probably has a virus, please check! Message-ID: <29EF480A-9477-11D7-80F7-000A27B19B96@cwi.nl> Folks, since a few days I've been getting a flurry of bounce messages for viruses that appear to have been sent from "pythonmac-sig@python.org". This means there's a good chance that someone on the list has gotten infected with a virus that uses their address book to forge From: addresses. (There's also a chance that the person infected isn't on this list, but happened to have visited the SIG homepage, in which case there's nothing we can do). Can I ask everyone, *especially people who follow the list on a Windows machine*, to run their virus-scanner? -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From mem at object-craft.com.au Mon Jun 2 10:02:22 2003 From: mem at object-craft.com.au (Mark Matthews) Date: Sun Jun 1 19:02:23 2003 Subject: [Pythonmac-SIG] Re: Python mac consultants wanted!? In-Reply-To: <8028A3D0-93C6-11D7-A50C-0003931BD158@object-craft.com.au> Message-ID: <1A1DA704-9485-11D7-904C-000393A3B326@object-craft.com.au> On Sunday, June 1, 2003, at 10:17 AM, Ben Golding wrote: > >> To: wxPython-mac@lists.wxwindows.org, pythonmac-sig@python.org >> From: "Ben Allfree" >> Date: Sat, 31 May 2003 10:04:13 -0700 >> Subject: [Pythonmac-SIG] Pythonmac consultants? >> >> Does anyone know of wxPython/Pythonmac application consultants? >> >> I have a commercial wxPython app that I would like to test for >> portability >> and release under the MacOS. We have significant experience in both Python and Mac development. Let me know if you would like us to have a look at your application. ------------------------------------------ Mark Matthews General Manager - Object Craft Pty Ltd http://www.object-craft.com.au From freedomsupport at freedom.net Sun Jun 1 21:34:19 2003 From: freedomsupport at freedom.net (freedomsupport@freedom.net) Date: Sun Jun 1 20:34:22 2003 Subject: [Pythonmac-SIG] [Case# = HD0000000204497] Re: Your application Message-ID: <200306020034.UAA12297@mumbles.zks.net> * * * THIS IS AN AUTOMATED RESPONSE * * * The Customer Services Team has received your message and it has been assigned the ticket number shown in the Subject line above. Please keep this number in the Subject line of all future correspondence about this problem. To send us further information simply reply to this message, keeping the subject line intact. Please note our usual hours of operations are: Monday to Friday: 09:00 to 18:00 EDT (13:00 to 22:00 GMT) Reporting Technical Problems: If you are reporting a technical problem, please don't forget to include the following information: 1. The exact error message (if any), and when it occurred. 2. Your browser and browser version 3. Your Operating System version (Windows 98, etc). 4. Your connection type (DSL, Cable etc). 5. Other security, privacy, and anti-virus software you use. If you have forgotten to include any of this information, simply reply to this email and send us the missing information. >> For users of: Freedom Firewall, Anti-Virus, Parental Control and Security & Privacy Suite<< Freedom Diagnostics: In most cases involving error messages, we will require the output from the Freedom Diagnostics utility. To get the best solution possible, please send us the results now. To do this, go to Start > Programs > Zero Knowledge Freedom > Freedom Diagnostics. Please run all of the tests. Once they have finished, click Next, save the results, then attach them to a reply of this email. Please send us the results, even if all the tests pass. >> For Freedom WebSecure users << Account Central: For all account management related information such as password recovery, password change, account information and creation, as well as Freedom WebSecure re-download and roaming services, visit: http://websecure.freedom.net/html/account-central.html >> Other Support Resources<< Please take note of the following resource list, which may help to answer your inquiry. 1. Visit our Knowledge Center for hundreds of solutions to common problems: http://www.freedom.net/support/knowledge.html 2. Visit our website for product information, compatibility information, and much more: http://www.freedom.net/support/ Thank you for your interest in Zero-Knowledge and Freedom. The Customer Service Team From alert at notification.messagelabs.com Mon Jun 2 02:00:14 2003 From: alert at notification.messagelabs.com (alert@notification.messagelabs.com) Date: Sun Jun 1 21:00:16 2003 Subject: [Pythonmac-SIG] Subject: WARNING. You sent a potential virus or unauthorized Message-ID: <20030602005859.5589.qmail@server-24.tower-9.messagelabs.com> Message details and virus information To help identify the email: The message was titled: Re: 45443-343556 The message date was: Sun, 1 Jun 2003 18:00:01 --0700 The message recipients were: toshiba.italia@toshiba-tuk.com The virus was identified as: /var/qmail/queue/split/1/attach/211339_2X_EMS_MA-OCTET=2DSTREAM__45443.pif Found the W32/Sobig.c@MM virus !!! The message was diverted into the BT MessageScan virus holding pen on mail server server-24.tower-9.messagelabs.com (id 211339_1054515538) and will be held for 30 days before being destroyed. For more information BT MessageScan is an anti-virus service powered by MessageLabs. If you are interested in finding out more about the service, please visit our website at http://www.btignite.com/uk/products/messagescan/ For further information on this virus you may like to read the support FAQs at http://www.messagelabs.com/support/FAQs.htm These will answer many of the most common queries. If your company is a BT MessageScan customer and you require further assistance, please contact your helpdesk or IT Manager. ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ From tjh at cryptsoft.com Mon Jun 2 12:30:48 2003 From: tjh at cryptsoft.com (tjh@cryptsoft.com) Date: Sun Jun 1 21:06:26 2003 Subject: [Pythonmac-SIG] failure notice Message-ID: <1054517448.6056.TMDA@l1a.cryptsoft.com> Hi. This is the TMDA program at l1a.cryptsoft.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. : Message rejected by recipient. --- Enclosed is a copy of your message. Return-Path: Received: from postoffice.telstra.net (postoffice.telstra.net [203.50.4.186]) by l1a.cryptsoft.com (8.11.6/8.11.6) with ESMTP id h521UGv06046 for ; Mon, 2 Jun 2003 11:30:17 +1000 Received: from SY-LAB-11 ([128.111.30.177]) by postoffice.telstra.net (8.12.6p2/8.11.1) with ESMTP id h52150K4063494 for ; Mon, 2 Jun 2003 11:05:01 +1000 (EST) (envelope-from pythonmac-sig@python.org) Message-Id: <200306020105.h52150K4063494@postoffice.telstra.net> From: To: Subject: Re: Submited (004756-3463) Date: Sun, 1 Jun 2003 17:49:03 --0700 Importance: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="CSmtpMsgPart123X456_000_0141BDD1" [ Message body suppressed (exceeded 50000 bytes) ] From postmaster at us.army.mil Sun Jun 1 22:26:36 2003 From: postmaster at us.army.mil (postmaster@us.army.mil) Date: Sun Jun 1 21:27:10 2003 Subject: [Pythonmac-SIG] Virus Alert Message-ID: <0HFT00F02YOC6G@akomta4.us.army.mil> The mail message (file: screensaver.scr) you sent to @akomail1.us.army.mil:charles.keith@us.army.mil contains a virus. (on akomta4) From postmaster at us.army.mil Sun Jun 1 23:20:19 2003 From: postmaster at us.army.mil (postmaster@us.army.mil) Date: Sun Jun 1 22:20:53 2003 Subject: [Pythonmac-SIG] Virus Alert Message-ID: <0HFU00L0215V4X@mailrouter4.us.army.mil> The mail message (file: submited.pif) you sent to @akomail3.us.army.mil:tomekia.penick@us.army.mil contains a virus. From postmaster at us.army.mil Sun Jun 1 23:29:33 2003 From: postmaster at us.army.mil (postmaster@us.army.mil) Date: Sun Jun 1 22:30:07 2003 Subject: [Pythonmac-SIG] Virus Alert Message-ID: <0HFU008021L94T@akomta4.us.army.mil> The mail message (file: document.pif) you sent to @akomail1.us.army.mil:beverly.j.manuelito@us.army.mil contains a virus. (on akomta4) From support at divxnetworks.com Sun Jun 1 21:32:09 2003 From: support at divxnetworks.com (DivX Support) Date: Sun Jun 1 23:32:41 2003 Subject: [Pythonmac-SIG] DivX Support has moved!!! Message-ID: <1D8781452AEA5749A8B95E1FD384E4D80281F8@mail.divxnetworks.com> Thank you for writing to support@divx.com. We recently switched all of our technical support resources to a web-based system, and this email address is no longer active. Your message to this address will not receive a response. To submit your question via our web-based system, visit our support section at . Many common questions can be answered in our searchable FAQ list or in the DivX Forums. If you have a question that cannot be answered by these resources, you can submit your inquiry to our online Help Desk. Thanks for writing, DivX Support Team -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030601/9ab661e6/attachment.htm From leknarf at pacbell.net Sun Jun 1 23:08:05 2003 From: leknarf at pacbell.net (Scott Frankel) Date: Mon Jun 2 01:08:09 2003 Subject: [Pythonmac-SIG] enabling readline Message-ID: <3173A5A8-94B8-11D7-996C-0030653FB404@pacbell.net> I'm attempting to enable the readline utility for my install of Python, which I got with the Developers Tools install. Each step of the readline build went smoothly and without error; but importing readline in a python console spits: ImportError: No module named readline My guess (unless someone's got another idea) is that I'm got a bum path; or some part of the readline install put a file where it didn't belong. Dunno. Thanks in advance for helping me get this running! Here are the particulars: MacOSX 10.2.4 readline-4.3 - unpacked from source - edited readline/support/shobj-conf for ncurses: SHLIB_LIBS='-lSystem -lncurses -lcc_dynamic' - configure, make, install with no args - this produced readline.o in /usr/src/readline-4.3 - also produced /usr/local/lib/ libreadline.4.3.dylib libreadline.a - install script ended by recommending that I run ldconfig. But there's no such tool present on my machine. python from Apple Developer Tools install: /usr/bin/python2.2 I haven't set a PYTHONPATH env var yet. In fact, I don't know what to set it to. The modules in /usr/lib/python2.2 load without error in spite of not having that path set. I even renamed one to "foo.pyc" and was able to import it in a python console. Clearly, I'm at a loss as to which readline compile product (readline.o or the /usr/local/lib/libreadline.* files, or other?) is supposed to by called. And, can python import a non-pyc object? None of the readline products looked like they were intended for python. Thanks again! Scott From MAILER-DAEMON at internal.telstra-ccc.qld.schools.net.au Mon Jun 2 08:08:35 2003 From: MAILER-DAEMON at internal.telstra-ccc.qld.schools.net.au (MAILER-DAEMON@internal.telstra-ccc.qld.schools.net.au) Date: Mon Jun 2 03:08:36 2003 Subject: [Pythonmac-SIG] failure notice Message-ID: Hi. This is the qmail-send program at internal.telstra-ccc.qld.schools.net.au. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. : 203.37.195.224 does not like recipient. Remote host said: 550 theprincipal@miamishs.qld.edu.au... Unknown User Giving up on 203.37.195.224. --- Below this line is a copy of the message. Return-Path: Received: (bert 29647 invoked from network); 2 Jun 2003 17:08:00 +1000 Received: from unknown (HELO YOUR-WXRSC38UMF) (203.37.199.157) by gateway.telstra-ccc.qld.schools.net.au with SMTP; 2 Jun 2003 17:08:00 +1000 From: To: Subject: Re: Approved Date: Mon, 2 Jun 2003 17:07:54 +1000 Importance: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="CSmtpMsgPart123X456_000_00872673" This is a multipart message in MIME format --CSmtpMsgPart123X456_000_00872673 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Please see the attached file. --CSmtpMsgPart123X456_000_00872673-- From Jack.Jansen at cwi.nl Mon Jun 2 11:42:49 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Mon Jun 2 04:41:24 2003 Subject: [Pythonmac-SIG] Fwd: [marketing-python] Python How-To booklet Message-ID: <310238D4-94D6-11D7-8D6E-0030655234CE@cwi.nl> Anyone here possibly interested in writing up on some of the mac-specific programming areas for which Python is suited? Or, of course, in anything else:-) I guess it's best to contact Stephan directly to show your interest and see what the timeframe is, etc. Begin forwarded message: > From: Stephan Deibel > Date: Sat May 31, 2003 03:24:02 Europe/Amsterdam > To: marketing-python@pythonology.org > Subject: [marketing-python] Python How-To booklet > > Hi, > > It looks like there might be a chance to do a series of booklets > through > O'Reilly that publish Python How-Tos. Topic areas might be things like > XML processing, scientific computation, data visualization, 3d > graphics, > web services, adding scripting to an app, enterprise integration, and > so > forth. > > The idea is of course to offer simple guidelines for programmers > looking > for a solution to specific problems, hopefully drawing new users to > Python. The articles would include pointers to the libraries / 3rd > party > tools to use, and some illustration of how they are used, hopefully > presented in a juicy results-oriented way that gets people up and > running > quickly. > > While the Success Stories booklet is targeted at management types that > need convincing about Python's credibility, the Python How-Tos would be > packaged in a way that is interesting and useful to programmers that > actually write code. > > For quality and accuracy, the articles would have to be written by > people > with hands-on experience working in the specific areas that are > highlighted. > > It's early yet but I wanted to see if there are people on this list > that > have ideas for topics and/or want to contribute if this happens. > > Thanks, > > Stephan Deibel > > -- > Wing IDE for Python > Archaeopteryx Software, Inc > Take Flight! > > www.wingide.com > _______________________________________________ > marketing-python mailing list > marketing-python@wingide.com > http://pythonology.org/mailman/listinfo/marketing-python > -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From mwh at python.net Mon Jun 2 11:13:20 2003 From: mwh at python.net (Michael Hudson) Date: Mon Jun 2 05:13:23 2003 Subject: [Pythonmac-SIG] enabling readline In-Reply-To: <3173A5A8-94B8-11D7-996C-0030653FB404@pacbell.net> (Scott Frankel's message of "Sun, 01 Jun 2003 22:08:05 -0700") References: <3173A5A8-94B8-11D7-996C-0030653FB404@pacbell.net> Message-ID: <2mwug4970v.fsf@starship.python.net> Scott Frankel writes: > I'm attempting to enable the readline utility for my install of Python, > which I got with the Developers Tools install. Each step of the > readline > build went smoothly and without error; but importing readline in a > python > console spits: > ImportError: No module named readline > > My guess (unless someone's got another idea) is that I'm got a bum path; > or some part of the readline install put a file where it didn't > belong. Dunno. You also need the Python extensions module that connects Python to readline. I think this is what you're missing. [...] > python from Apple Developer Tools install: > /usr/bin/python2.2 This didn't some with the dev tools, as far as I know; I think it's part of the "BSD subsytem" or whatever it's called. Probably the easiest thing is to download the just-released Python 2.2.3 tarball and build that (sticking it in /usr/local/, probably). There are other ways, google might help you find them. Cheers, M. -- That's why the smartest companies use Common Lisp, but lie about it so all their competitors think Lisp is slow and C++ is fast. (This rumor has, however, gotten a little out of hand. :) -- Erik Naggum, comp.lang.lisp From postmaster at ubisoft.de Mon Jun 2 13:36:30 2003 From: postmaster at ubisoft.de (postmaster@ubisoft.de) Date: Mon Jun 2 06:36:34 2003 Subject: [Pythonmac-SIG] VIRUS IN YOUR MAIL Message-ID: <20030602103630.53AFD7403A@elmo.ubisoft.de> V I R U S A L E R T Our viruschecker found the W32/Sobig.dam virus(es) in your email to the following recipient(s): -> software@ubisoft.de Please check your system for viruses, or ask your system administrator to do so. From postmaster at monster.loisir.net Mon Jun 2 13:51:33 2003 From: postmaster at monster.loisir.net (MailScanner) Date: Mon Jun 2 06:51:38 2003 Subject: [Pythonmac-SIG] Warning: E-mail viruses detected Message-ID: <200306021051.h52ApXE12893@monster.loisir.net> Our virus detector has just been triggered by a message you sent:- To: activisionsav@loisir.net Subject: Re: Screensaver Date: Mon Jun 2 12:51:33 2003 One or more of the attachments (45443.pif) are on the list of unacceptable attachments for this site and will not have been delivered. Consider renaming the files or putting them into a "zip" file to avoid this constraint. The virus detector said this about the message: Report: Shortcuts to MS-Dos programs are very dangerous in email (45443.pif) -- MailScanner Email Virus Scanner www.mailscanner.info Mailscanner thanks transtec Computers for their support From sales at intervideo.com Mon Jun 2 05:31:52 2003 From: sales at intervideo.com (InterVideo Sales) Date: Mon Jun 2 07:31:21 2003 Subject: [Pythonmac-SIG] This is an autoreply...[Re: Re: Your application] Message-ID: <20030602113152.682C368274@postfix.intervideo.com> Thank you for contacting 'sales@intervideo.com'. Due to ever-increasing demand, we had to close this email account. If you have a customer question, you can contact our support organization here: http://www.intervideo.com/jsp/Faq.jsp?mode=support From MAILER-DAEMON at intervideo.com Mon Jun 2 05:31:52 2003 From: MAILER-DAEMON at intervideo.com (Mail Delivery System) Date: Mon Jun 2 07:31:26 2003 Subject: [Pythonmac-SIG] Undelivered Mail Returned to Sender Message-ID: <20030602113152.AC26C68276@postfix.intervideo.com> This is the Postfix program at host postfix.intervideo.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program : cannot access mailbox /var/mail/sales for user sales. error writing message: File too large -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- An embedded message was scrubbed... From: Subject: Re: Your application Date: Mon, 2 Jun 2003 21:30:13 +1000 Size: 25692 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/6b92adc0/attachment-0001.eml From administrator at vt.edu Mon Jun 2 11:12:46 2003 From: administrator at vt.edu (administrator@vt.edu) Date: Mon Jun 2 10:30:20 2003 Subject: [Pythonmac-SIG] Virus Warning Message-ID: <200306021412.BKJ62959@steiner.cc.vt.edu> The message you emailed to dlynes@vt.edu, dated 06/02/03 10:12:46, contains the W32/Sobig-C virus in the submited.pif attachment. The action taken was: deleted the attachment. From RRandhawa at asthma.org.uk Mon Jun 2 16:22:09 2003 From: RRandhawa at asthma.org.uk (RRandhawa) Date: Mon Jun 2 10:31:22 2003 Subject: [Pythonmac-SIG] Out of Office AutoReply: Your application Message-ID: i am on annual leave. Please contact IT helpdesk on x5806 From webmaster at arcsoft.com Mon Jun 2 09:55:36 2003 From: webmaster at arcsoft.com (webmaster@arcsoft.com) Date: Mon Jun 2 11:56:10 2003 Subject: [Pythonmac-SIG] Re: Re: 45443-343556 Message-ID: <3EDB7378.000017.25075@utilnj01.int.rightnowtech.com> Response --------------------------------------------------------------- Thank you for contacting ArcSoft Technical Support. In a step to provide the best quality support, we have moved our entire support system online. This is the only message you will receive in response to your recent email; all other correspondences must occur using our "online knowledge base." Here are some answers from the knowledge base that may provide the solution to your inquiry: No matches were found. Please visit the ArcSoft Technical Support site to find additional answers. Use our search function to find what you need: 1. Go to the ArcSoft Technical Support homepage. 2. Click on "Find Answers." 3. Search for your answer based on product name, keywords, etc. If you are still unable to resolve your problem, click on the "Ask a Question" tab. Your question will be sent directly to one of our Technical Support representatives. Thank you, ArcSoft Technical Support ------------------ Please do not reply to this email. As mentioned above, all support inquires are now handled online at http://www.arcsoft.com/support/index.asp. Click on the "Find Answers" tab to get started! If you received this message as a response to a reply email that you have sent, please visit http://arcsoft.custhelp.com/cgi-bin/arcsoft.cfg/php/enduser/acct_login.php to log into your incident using your user ID (email address). Once you log in, you will be able to update your support incident as needed. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/8545a0c1/attachment.htm From mailscan at nike.com Mon Jun 2 10:46:39 2003 From: mailscan at nike.com (Nike Mailscan) Date: Mon Jun 2 12:54:03 2003 Subject: [Pythonmac-SIG] Nike WorldSecure Server notification Message-ID: <12C5A0E0261343-01@Nike_Mail_Filter__mailscan_> Hello, This message is being returned to the original sender. The message has been found to contain an attachment name, or attachment type, identified as a known virus container which can potentially contain malicious computer viruses. One of the following attachments in your original email uses a name or type associated with a potential virus: approved.pif Please do *not* respond to this message and do *not* send this message again. Messages containing this attachment name or type will not be allowed through certain Internet gateways. Thank you. Hello, Your inbound email has NOT been delivered to the intended Nike recipients, and is being returned to the original sender. The message has been found to contain an attachment which has been infected with a known virus. The virus has not been stripped from this email. Details of the virus are enclosed. Virus Scanner found the W32/Sobig.c@MM virus in the attached file: approved.pif Please do *not* respond to this message and do *not* send this message again. Messages containing this attachment will not be allowed through certain Internet gateways. If you would like more information on this virus or other malicious viruses, refer to one of the Anti-Virus web sites such as WWW.NAI.com or WWW.Symantec.com Thank you. -------------- next part -------------- An embedded message was scrubbed... From: pythonmac-sig@python.org Subject: Re: Screensaver Date: Mon, 2 Jun 2003 12:46:16 --0400 Size: 1117 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/5d01f445/attachment.eml From postmaster at textron.com Mon Jun 2 14:49:36 2003 From: postmaster at textron.com (System Administrator) Date: Mon Jun 2 13:50:12 2003 Subject: [Pythonmac-SIG] Undeliverable: Re: Submited (004756-3463) Message-ID: Your message To: info@camcar.textron.com Subject: Re: Submited (004756-3463) Sent: Mon, 2 Jun 2003 09:49:31 -0400 did not reach the following recipient(s): c=US;a= ;p=Textron;o=TFS;dda:SMTP=info@camcar.textron.com; on Mon, 2 Jun 2003 13:46:51 -0400 The recipient name is not recognized The MTS-ID of the original message is: c=us;a= ;p=textron;l=TFSIHQIS0306021746KWPBK1Y7 MSEXCH:IMS:Textron:TFSI:TFSIHQIS 0 (000C05A6) Unknown Recipient -------------- next part -------------- An embedded message was scrubbed... From: pythonmac-sig@python.org Subject: Re: Submited (004756-3463) Date: Mon, 2 Jun 2003 09:49:31 -0400 Size: 536 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/e5e4c395/attachment.eml From customer.service at onehopeministry.com Mon Jun 2 15:15:46 2003 From: customer.service at onehopeministry.com (customer.service@onehopeministry.com) Date: Mon Jun 2 14:15:50 2003 Subject: [Pythonmac-SIG] Re: Movie In-Reply-To: <200306021815.h52IFdY08409@host31.christianwebhost.com> References: <200306021815.h52IFdY08409@host31.christianwebhost.com> Message-ID: <200306021815.h52IFk008421@host31.christianwebhost.com> This is an Automated Response from One Hope Ministry & Hope for the Home Front: Thank you for your Customer Service inquiry we will contact you as appropriate. Regards, Customer Service http://www.OneHopeMinistry.com customer.service@onehopeministry.com From altis at semi-retired.com Mon Jun 2 12:43:24 2003 From: altis at semi-retired.com (Kevin Altis) Date: Mon Jun 2 14:38:39 2003 Subject: [Pythonmac-SIG] Somebody probably has a virus, please check! In-Reply-To: <29EF480A-9477-11D7-80F7-000A27B19B96@cwi.nl> Message-ID: This is getting pretty bad, so I'll make a few suggestions on the assumption that this is a result of an Outlook user on Windows. As Jack mentioned, they might not be an Outlook user actually on this list or even using Outlook, but there is a high probability they are. 1. If you're running Outlook and you never patched it so unsafe attachments are automatically deleted, then I suggest you do so. Yes, you won't be able to have people send you .exe, .pif, .reg, .vbs, etc. files without putting them in some non-executable format like a .zip, but then again nobody should be legitimately sending you that kind of dangerous attachment anyway. This patch has been available for over two yearse, so update already and save yourself some grief. http://office.microsoft.com/ProductUpdates/default.aspx 2. Check your Send Items folder and see if things have gone out that you didn't send yourself. I'm not sure the current crop of viruses will leave a trace in there, but it doesn't hurt to check. 3. We could scan the archives for current subscribers using Outlook as their mail client and then notify those people (yes I'm one of them) that they need to do a virus scan... The header to look for is "X-Mailer: Microsoft Outlook" or maybe Outlook Express. For example: X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 The scan should be pretty easy to do using the Python email package, but I don't have a complete archive to scan against. 4. If your address book contains "onehopeministry.com" or some of the other odd things showing up then you are probably the one infected. Any other suggestions? Is the list actually configured to not accept posts accept from subscribers? If not, that should be changed. ka > -----Original Message----- > From: pythonmac-sig-bounces@python.org > [mailto:pythonmac-sig-bounces@python.org]On Behalf Of Jack Jansen > Sent: Sunday, June 01, 2003 2:23 PM > To: pythonmac-sig@python.org > Subject: [Pythonmac-SIG] Somebody probably has a virus, please check! > > > Folks, > since a few days I've been getting a flurry of bounce messages for > viruses that appear to have been sent from "pythonmac-sig@python.org". > This means there's a good chance that someone on the list has gotten > infected with a virus that uses their address book to forge From: > addresses. (There's also a chance that the person infected isn't on > this list, but happened to have visited the SIG homepage, in which case > there's nothing we can do). > > Can I ask everyone, *especially people who follow the list on a Windows > machine*, to run their virus-scanner? > -- > - Jack Jansen > http://www.cwi.nl/~jack - > - If I can't dance I don't want to be part of your revolution -- Emma > Goldman - From cust_serv at broderbund.com Mon Jun 2 15:00:24 2003 From: cust_serv at broderbund.com (cust_serv@broderbund.com) Date: Mon Jun 2 15:00:29 2003 Subject: [Pythonmac-SIG] Confirmation from Broderbund Customer Service (1620258) Message-ID: <0ca8c2400190263PANDORA@pandora> Thank you for contacting Riverdeep,Broderbund, The Learning Company and Edmark's Customer Service Department. The message number assigned to your e-mail is 1620258. Please do not respond to this confirmation e-mail. If you have sent multiple e-mail messages to us, our system assigns a unique number to each. Should you need to contact us again, please refer to message number 1620258. If you have not done so, please try our online support at http://support.broderbund.com/customer_serv_help.asp. Our online support site features current information about ordering and shipping as well as tools for managing your customer account. If you find an answer to your question and don't need to receive a response, you can always close your inquiry with us by going to http://support.broderbund.com/case_close.asp. Thank you for choosing Riverdeep,Broderbund, The Learning Company and Edmark to meet your software needs! Customer Support Team Broderbund P.S. Discover the ultimate creative thrill with this exciting new version of PrintMaster® Gold 15. Whether you’re a just-for-fun dabbler or a dedicated artist, this freshly updated version is your ideal design solution. Just $24.99 plus $5.99 shipping and handling! Click here to learn more! From MAILER-DAEMON at gemini.smart.net Mon Jun 2 17:18:35 2003 From: MAILER-DAEMON at gemini.smart.net (Mail Delivery Subsystem) Date: Mon Jun 2 16:18:39 2003 Subject: [Pythonmac-SIG] Returned mail: User unknown Message-ID: <200306022018.QAA17907@gemini.smart.net> The original message was received at Mon, 2 Jun 2003 16:18:35 -0400 from 66.83.133.118.nw.nuvox.net [66.83.133.118] ----- The following addresses had permanent fatal errors ----- ----- Transcript of session follows ----- ... while talking to smart.net.: >>> RCPT To: <<< 550 ... User unknown 550 ... User unknown -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- An embedded message was scrubbed... From: pythonmac-sig@python.org Subject: Re: Movie Date: Mon, 2 Jun 2003 16:18:34 --0400 Size: 862 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/0983256e/attachment.eml From MAILER-DAEMON at orion.smart.net Mon Jun 2 18:24:59 2003 From: MAILER-DAEMON at orion.smart.net (Mail Delivery Subsystem) Date: Mon Jun 2 17:25:09 2003 Subject: [Pythonmac-SIG] Returned mail: User unknown Message-ID: <200306022124.RAA13580@orion.smart.net> The original message was received at Mon, 2 Jun 2003 17:24:58 -0400 from cayley-hall-stud-220-151.lut.ac.uk [131.231.220.151] ----- The following addresses had permanent fatal errors ----- ----- Transcript of session follows ----- ... while talking to smart.net.: >>> RCPT To: <<< 550 ... User unknown 550 ... User unknown -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- An embedded message was scrubbed... From: pythonmac-sig@python.org Subject: Re: Approved Date: Mon, 2 Jun 2003 22:24:58 +0100 Size: 872 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/3c393943/attachment.eml From 336699 at emailaccount.com Mon Jun 2 17:18:45 2003 From: 336699 at emailaccount.com (no no) Date: Mon Jun 2 19:18:48 2003 Subject: [Pythonmac-SIG] Stand-alone Mac OS X application Message-ID: <20030602231845.929F445E1@sitemail.everyone.net> I don't have (direct, easy) access to a Mac but I want the Python app I'm building to run as smoothly as possible on Mac OS X. Preferably, users would not need to know anything about Python, Tkinter, et al; everything should "just work". To that end, I'm hoping that I can distribute my application as a bundle that can be run like any other OS X app, with the native Aqua UI and everything. From the scraps and pieces I've read this seems reasonable, but I'm still not sure. The following post was made some time ago and I'm assuming it applied only to what is now Classic. Is this still true today for OS X? Jack Jansen jack@oratrix.nl Sat, 03 Jun 2000 00:47:57 +0200 > > Would it be then possoble to make a stand-alone > > application for the Mac? > > Yes, with MacPython you can drop your script on BuildApplication and > you get a full standalone application. This is a MacPython-specific > feature: Unix and Windows users indeed have to go through this > freeze process and own a C compiler and such, but on the Mac life is > easy. _____________________________________________________________ Get an email address your friends will never forget... FREE! Become YOU@EmailAccount.com at http://www.emailaccount.com/ From MAILER-DAEMON at research.att.com Mon Jun 2 20:37:21 2003 From: MAILER-DAEMON at research.att.com (Mail Delivery System) Date: Mon Jun 2 19:20:14 2003 Subject: [Pythonmac-SIG] Undelivered Mail Returned to Sender Message-ID: <20030602233721.D3E881D73E3@mail-green.research.att.com> This is the Postfix program at host mail-green.research.att.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program : unknown user: "dmg" -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- An embedded message was scrubbed... From: Subject: Re: Your application Date: Mon, 2 Jun 2003 19:19:12 --0400 Size: 1847 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/5bd60f9a/attachment-0001.eml From Administrator at divxnetworks.com Mon Jun 2 17:20:32 2003 From: Administrator at divxnetworks.com (Administrator) Date: Mon Jun 2 19:21:17 2003 Subject: [Pythonmac-SIG] Norton AntiVirus detected and quarantined a virus in a message you sent. Message-ID: <9D3269D0C76F0742BDF9CF53AF56549D7E9F7A@mail.divxnetworks.com> Recipient of the infected attachment: Sales Leads\Inbox Subject of the message: Re: Screensaver One or more attachments were quarantined. Attachment application.pif was Quarantined for the following reasons: Virus W32.Sobig.C@mm was found. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 1877 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/bd528b5e/attachment.bin From TFSTORDMT1 at teknion.com Mon Jun 2 20:24:48 2003 From: TFSTORDMT1 at teknion.com (TFSTORDMT1@teknion.com) Date: Mon Jun 2 19:27:15 2003 Subject: [Pythonmac-SIG] Report to Sender Message-ID: Incident Information:- Database: d:/lotus/domino/data/mail2.box Originator: Recipients: Subject: Re: Your application Date/Time: 2003/06/02 07:24:39 PM Message sent to was quarantined because it contained banned content. From freedomsupport at freedom.net Mon Jun 2 20:57:23 2003 From: freedomsupport at freedom.net (freedomsupport@freedom.net) Date: Mon Jun 2 19:57:26 2003 Subject: [Pythonmac-SIG] [Case# = HD0000000205671] Re: Movie Message-ID: <200306022357.TAA22835@mumbles.zks.net> * * * THIS IS AN AUTOMATED RESPONSE * * * The Customer Services Team has received your message and it has been assigned the ticket number shown in the Subject line above. Please keep this number in the Subject line of all future correspondence about this problem. To send us further information simply reply to this message, keeping the subject line intact. Please note our usual hours of operations are: Monday to Friday: 09:00 to 18:00 EDT (13:00 to 22:00 GMT) Reporting Technical Problems: If you are reporting a technical problem, please don't forget to include the following information: 1. The exact error message (if any), and when it occurred. 2. Your browser and browser version 3. Your Operating System version (Windows 98, etc). 4. Your connection type (DSL, Cable etc). 5. Other security, privacy, and anti-virus software you use. If you have forgotten to include any of this information, simply reply to this email and send us the missing information. >> For users of: Freedom Firewall, Anti-Virus, Parental Control and Security & Privacy Suite<< Freedom Diagnostics: In most cases involving error messages, we will require the output from the Freedom Diagnostics utility. To get the best solution possible, please send us the results now. To do this, go to Start > Programs > Zero Knowledge Freedom > Freedom Diagnostics. Please run all of the tests. Once they have finished, click Next, save the results, then attach them to a reply of this email. Please send us the results, even if all the tests pass. >> For Freedom WebSecure users << Account Central: For all account management related information such as password recovery, password change, account information and creation, as well as Freedom WebSecure re-download and roaming services, visit: http://websecure.freedom.net/html/account-central.html >> Other Support Resources<< Please take note of the following resource list, which may help to answer your inquiry. 1. Visit our Knowledge Center for hundreds of solutions to common problems: http://www.freedom.net/support/knowledge.html 2. Visit our website for product information, compatibility information, and much more: http://www.freedom.net/support/ Thank you for your interest in Zero-Knowledge and Freedom. The Customer Service Team From administrator at vt.edu Mon Jun 2 20:58:35 2003 From: administrator at vt.edu (administrator@vt.edu) Date: Mon Jun 2 19:58:40 2003 Subject: [Pythonmac-SIG] Virus Warning Message-ID: <200306022358.BML13371@dagger.cc.vt.edu> The message you emailed to lipscomb@vt.edu, dated 06/02/03 19:58:35, contains the W32/Sobig-C virus in the 45443.pif attachment. The action taken was: deleted the attachment. From MAILER-DAEMON at rarreg.com Mon Jun 2 20:13:39 2003 From: MAILER-DAEMON at rarreg.com (Mail Delivery Subsystem) Date: Mon Jun 2 20:13:45 2003 Subject: [Pythonmac-SIG] Returned mail: see transcript for details Message-ID: <200306030013.h530Dd907835@rarreg.com> The original message was received at Mon, 2 Jun 2003 19:13:38 -0500 from root@localhost ----- The following addresses had permanent fatal errors ----- (reason: can't create (user) output file) ----- Transcript of session follows ----- procmail: Quota exceeded while writing "/var/spool/mail/sales" 550 5.0.0 ... Can't create output -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- An embedded message was scrubbed... From: Subject: {Virus?} Re: Your application Date: Tue, 3 Jun 2003 8:13:27 +0800 Size: 2205 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/908a0d8e/attachment.eml From MAILER-DAEMON at cgp.dol.ru Tue Jun 3 05:17:00 2003 From: MAILER-DAEMON at cgp.dol.ru (MAILER-DAEMON@cgp.dol.ru) Date: Mon Jun 2 20:17:06 2003 Subject: [Pythonmac-SIG] Undeliverable mail: Re: Screensaver Message-ID: Failed to deliver to '' From: DrWeb-DAEMON To: pythonmac-sig@python.org Subject: Undelivered mail: Re: Screensaver Content-Type: text/plain; charset=us-ascii Dear User, The message you sent is infected and was not delivered. Envelope-From = pythonmac-sig@python.org To = nik@tfmik.dol.ru Subject = Re: Screensaver Message-ID = Antivirus filter reports: --- DrWeb report --- ======== infected with Win32.HLLM.Reteras.3 ======== [text:plain] - Ok 45443.pi infected with Win32.HLLM.Reteras.3 ======== known virus is found : 1 evaluation key used : 1 --- DrWeb report --- --- Begin message headers --- Received: from [194.87.5.31] (HELO sinbin.demos.su) by cgp.dol.ru (CommuniGate Pro SMTP 4.0.5/D) with ESMTP-TLS id 67874893 for nik@tfmik.dol.ru; Tue, 03 Jun 2003 04:17:00 +0400 Received: (from daemon@localhost) by sinbin.demos.su (8.12.8/8.11.6) id h530GnVg029227 for nik@tfmik.dol.ru; Tue, 3 Jun 2003 04:16:49 +0400 (MSD) (envelope-from pythonmac-sig -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/rfc822-headers Size: 1083 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030603/ac6a84eb/attachment.bin From support at intervideo.com Mon Jun 2 19:37:39 2003 From: support at intervideo.com (Intervideo Tech Support) Date: Mon Jun 2 21:32:26 2003 Subject: [Pythonmac-SIG] RE: Approved Message-ID: <022201c32970$ba18cf90$0100000a@gradius> Thank you for e-mailing Intervideo WEB/RETAIL customer service. If you need OEM (bundled) support for an Intervideo product, please contact the OEM for that information because we do not provide exhuastive support for OEM versions of the program. We do however, have a consumer knowledge base available at http://spt1.intervideo.com/html/search.html and OEM customers can use it to get automated answers to some questions. Simple questions that are available in the knowledge base will not be answered-you MUST go to the above link and type in your question along with the appropriate product. This message is an auto-response that is generated each time an e-mail is sent to support@intervideo.com. If you send multiple messages, you will simply get multiple copies of this e-mail back. Hours of operation are Monday through Friday, 9:15 A.M. to 5:30 P.M., Pacific Standard Time, closed on the weekends. If you have e-mailed Intervideo on the weekend, you will not get a response until Monday afternoon at the minimum. E-mails are answered in the order they are received and attachments will be deleted without consideration. Please include your seven digit order number. Bundled/OEM versions of the products are not supported. Regards, Intervideo web/retail customer support From MAILER-DAEMON at oucsace.cs.ohiou.edu Mon Jun 2 22:34:46 2003 From: MAILER-DAEMON at oucsace.cs.ohiou.edu (Mail Delivery Subsystem) Date: Mon Jun 2 21:34:52 2003 Subject: [Pythonmac-SIG] Returned mail: see transcript for details Message-ID: <200306030134.h531YkVt018617@oucsace.cs.ohiou.edu> The original message was received at Mon, 2 Jun 2003 21:34:42 -0400 (EDT) from root@boss.cs.ohiou.edu [132.235.1.1] ----- The following addresses had permanent fatal errors ----- (reason: Can't create output) ----- Transcript of session follows ----- 550 5.0.0 ... Can't create output -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- An embedded message was scrubbed... From: Subject: Re: Application Date: Mon, 2 Jun 2003 21:35:17 --0400 Size: 1142 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/ab78c24c/attachment.eml From mswpostmaster at newsint.co.uk Tue Jun 3 03:54:22 2003 From: mswpostmaster at newsint.co.uk (mswpostmaster@newsint.co.uk) Date: Mon Jun 2 21:53:56 2003 Subject: [Pythonmac-SIG] Warning: an email message has been blocked Message-ID: An e-mail message sent from pythonmac-sig@python.org to bizarre@thesun.co.uk with subject "Re: Your application" dated Tue, 3 Jun 2003 11:52:49 +1000 has been parked at our mail gateway as it contains an executable file attachment which contravenes News International's e-mail policy. Please contact the IT ServiceLine Helpdesk if you have any queries regarding this e-mail. ServiceLine News International Newspapers Ltd. serviceline@newsint.co.uk This e-mail and all attachments are confidential and may be privileged. If you have received this e-mail in error, notify the sender immediately. Do not use, disseminate, store or copy it in any way. Statements or opinions in this e-mail or any attachment are those of the author and are not necessarily agreed or authorised by News International (NI). NI Group may monitor emails sent or received for operational or business reasons as permitted by law. NI Group accepts no liability for viruses introduced by this e-mail or attachments. You should employ virus checking software. News International plc, 1 Virginia St, London E98 1XY, is the holding company for the News International group and is registered in England No 81701 From e-mmunity at electric.net Mon Jun 2 19:55:46 2003 From: e-mmunity at electric.net (e-mmunity@electric.net) Date: Mon Jun 2 21:55:50 2003 Subject: [Pythonmac-SIG] Receiver Virus Alert Message-ID: This is the E-mmunity virus scanning service at the Electric Mail Company (www.electricmail.com). An email virus was found. Please see details of the virus below: Date: Mon Jun 2 18:55:46 2003 Recipient: pythonmac-sig@python.org Sender: turtle1@eastontelecom.com Message id: 19N11V-000P25-0W{MM-19N11c-000P2B-00000L-000} Subject: Van Rossum (home page Virus name: W32.Klez.H@mm Attachment: README.exe Status: Attachment(s) deleted Notified: recipient, sender Thank you for using our services --- The Electric Mail Company www.electricmail.com 604-482-1111 From webmaster at arcsoft.com Mon Jun 2 20:13:52 2003 From: webmaster at arcsoft.com (webmaster@arcsoft.com) Date: Mon Jun 2 22:14:27 2003 Subject: [Pythonmac-SIG] Re: Approved Message-ID: <3EDC0460.000071.22670@utilnj01.int.rightnowtech.com> Response --------------------------------------------------------------- Thank you for contacting ArcSoft Technical Support. In a step to provide the best quality support, we have moved our entire support system online. This is the only message you will receive in response to your recent email; all other correspondences must occur using our "online knowledge base." Here are some answers from the knowledge base that may provide the solution to your inquiry: No matches were found. Please visit the ArcSoft Technical Support site to find additional answers. Use our search function to find what you need: 1. Go to the ArcSoft Technical Support homepage. 2. Click on "Find Answers." 3. Search for your answer based on product name, keywords, etc. If you are still unable to resolve your problem, click on the "Ask a Question" tab. Your question will be sent directly to one of our Technical Support representatives. Thank you, ArcSoft Technical Support ------------------ Please do not reply to this email. As mentioned above, all support inquires are now handled online at http://www.arcsoft.com/support/index.asp. Click on the "Find Answers" tab to get started! If you received this message as a response to a reply email that you have sent, please visit http://arcsoft.custhelp.com/cgi-bin/arcsoft.cfg/php/enduser/acct_login.php to log into your incident using your user ID (email address). Once you log in, you will be able to update your support incident as needed. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/5510993c/attachment.htm From virusmaster at webpartner.dk Tue Jun 3 05:26:21 2003 From: virusmaster at webpartner.dk (virusmaster@webpartner.dk) Date: Tue Jun 3 00:26:55 2003 Subject: [Pythonmac-SIG] Sender Virus-alert (sender: pythonmac-sig@python.org) Message-ID: <20030603042621.D737A47F72@securemail.webpartner.dk> This is a mail anti-virus program at host securemail.webpartner.dk The mail system received a message from you (pythonmac-sig@python.org) destined to support@prosoft.dk that contains either infected or suspicious file(s) and it has not reached the above destination(s). Antivirus message(s): infected with Win32.HLLM.Reteras.3 Please clean up your machine using antivirus software before trying to send any new mail, and resend the message if you need. Or or ask your system administrator for help. Please, do not respond to *this* message you're reading now -- your response will be lost. I, the antivirus program, will be unable to read your response, sorry... :) -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- Skipped content of type message/rfc822-headers From postmaster at iol.it Tue Jun 3 07:53:33 2003 From: postmaster at iol.it (Mail Delivery Service) Date: Tue Jun 3 00:53:39 2003 Subject: [Pythonmac-SIG] Delivery Status Notification Message-ID: <3ECCE01F0110F838@smtp8.libero.it> - These recipients of your message have been processed by the mail server: naradamoon@libero.it; Failed; 5.2.2 (mailbox full) Remote MTA ims2c.libero.it: SMTP diagnostic: 552 RCPT TO: Mailbox disk quota exceeded -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/rfc822-headers Size: 539 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030603/bb741745/attachment.bin From freedomsupport at freedom.net Tue Jun 3 02:40:34 2003 From: freedomsupport at freedom.net (freedomsupport@freedom.net) Date: Tue Jun 3 01:40:38 2003 Subject: [Pythonmac-SIG] [Case# = HD0000000206036] Re: Movie Message-ID: <200306030540.BAA21981@mumbles.zks.net> * * * THIS IS AN AUTOMATED RESPONSE * * * The Customer Services Team has received your message and it has been assigned the ticket number shown in the Subject line above. Please keep this number in the Subject line of all future correspondence about this problem. To send us further information simply reply to this message, keeping the subject line intact. Please note our usual hours of operations are: Monday to Friday: 09:00 to 18:00 EDT (13:00 to 22:00 GMT) Reporting Technical Problems: If you are reporting a technical problem, please don't forget to include the following information: 1. The exact error message (if any), and when it occurred. 2. Your browser and browser version 3. Your Operating System version (Windows 98, etc). 4. Your connection type (DSL, Cable etc). 5. Other security, privacy, and anti-virus software you use. If you have forgotten to include any of this information, simply reply to this email and send us the missing information. >> For users of: Freedom Firewall, Anti-Virus, Parental Control and Security & Privacy Suite<< Freedom Diagnostics: In most cases involving error messages, we will require the output from the Freedom Diagnostics utility. To get the best solution possible, please send us the results now. To do this, go to Start > Programs > Zero Knowledge Freedom > Freedom Diagnostics. Please run all of the tests. Once they have finished, click Next, save the results, then attach them to a reply of this email. Please send us the results, even if all the tests pass. >> For Freedom WebSecure users << Account Central: For all account management related information such as password recovery, password change, account information and creation, as well as Freedom WebSecure re-download and roaming services, visit: http://websecure.freedom.net/html/account-central.html >> Other Support Resources<< Please take note of the following resource list, which may help to answer your inquiry. 1. Visit our Knowledge Center for hundreds of solutions to common problems: http://www.freedom.net/support/knowledge.html 2. Visit our website for product information, compatibility information, and much more: http://www.freedom.net/support/ Thank you for your interest in Zero-Knowledge and Freedom. The Customer Service Team From webmaster at arcsoft.com Mon Jun 2 23:57:45 2003 From: webmaster at arcsoft.com (webmaster@arcsoft.com) Date: Tue Jun 3 01:58:26 2003 Subject: [Pythonmac-SIG] Re: Re: Application Message-ID: <3EDC38D9.000005.13630@utilnj01.int.rightnowtech.com> Response --------------------------------------------------------------- Thank you for contacting ArcSoft Technical Support. In a step to provide the best quality support, we have moved our entire support system online. This is the only message you will receive in response to your recent email; all other correspondences must occur using our "online knowledge base." Here are some answers from the knowledge base that may provide the solution to your inquiry: No matches were found. Please visit the ArcSoft Technical Support site to find additional answers. Use our search function to find what you need: 1. Go to the ArcSoft Technical Support homepage. 2. Click on "Find Answers." 3. Search for your answer based on product name, keywords, etc. If you are still unable to resolve your problem, click on the "Ask a Question" tab. Your question will be sent directly to one of our Technical Support representatives. Thank you, ArcSoft Technical Support ------------------ Please do not reply to this email. As mentioned above, all support inquires are now handled online at http://www.arcsoft.com/support/index.asp. Click on the "Find Answers" tab to get started! If you received this message as a response to a reply email that you have sent, please visit http://arcsoft.custhelp.com/cgi-bin/arcsoft.cfg/php/enduser/acct_login.php to log into your incident using your user ID (email address). Once you log in, you will be able to update your support incident as needed. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030602/745990f8/attachment.htm From postmaster at austereo.com.au Tue Jun 3 17:29:25 2003 From: postmaster at austereo.com.au (postmaster@austereo.com.au) Date: Tue Jun 3 02:33:30 2003 Subject: [Pythonmac-SIG] Virus Notification Message-ID: <03Jun3.165001est.118509@mel-gate.mel.austereo.fw> A message you have sent contained a virus and has been blocked. The message details are as follows: Date: Tue, 3 Jun 2003 16:31:50 +1000 Sender: pythonmac-sig@python.org Recipient:DAVID.HALL@austereo.com.au Subject: Re: Submited (004756-3463) Please resend a virus free copy. Kind Regards Austereo Group IT. From virus at gormandale2.mail.caa.org.au Tue Jun 3 09:58:42 2003 From: virus at gormandale2.mail.caa.org.au (System Anti-Virus Administrator) Date: Tue Jun 3 04:58:43 2003 Subject: [Pythonmac-SIG] Virus found in sent message "Re: Submited (004756-3463)" Message-ID: Attention: pythonmac-sig@python.org. A Virus was found in an Email message you sent. This Email scanner intercepted it and stopped the entire message reaching it's destination. The Virus was reported to be: the W32/Sobig.dam virus !!! Please update your virus scanner or contact your I.T support personnel as soon as possible as you have a virus on your system. Your message was sent with the following envelope: MAIL FROM: pythonmac-sig@python.org RCPT TO: davidwa@caa.org.au ... and with the following headers: From: pythonmac-sig@python.org To: Subject: Re: Submited (004756-3463) Message-ID: <200306030857.SAA29416@mel1.unite.net.au> Date: Tue, 3 Jun 2003 18:57:39 +1000 Received:from mel1.uecomm.net.au (HELO mel1.unite.net.au) (203.94.129.130)by gormandale2.mail.caa.org.au (203.94.134.210) with ESMTP; 03 Jun 2003 08:58:31 -0000 from YOUR-N6SPA3HC62 (ESS-p-144-138-82-239.mega.tmns.net.au [144.138.82.239])by mel1.unite.net.au (8.9.3+Sun/8.9.3) with ESMTP id SAA29416for ; Tue, 3 Jun 2003 18:57:43 +1000 (EST) The original message is kept in: gormandale2:/var/spool/qmailscan/quarantine where the System Anti-Virus Administrator can further diagnose it. The Email scanner reported the following when it scanned that message: --- ---uvscan results --- /var/spool/qmailscan/gormandale210546307124041152/application.pif Found the W32/Sobig.dam virus !!! /var/spool/qmailscan/working/new/gormandale210546307124041152 Found the W32/Sobig.eml virus !!! --- From postmaster at nasdaq.com Tue Jun 3 06:52:32 2003 From: postmaster at nasdaq.com (postmaster@nasdaq.com) Date: Tue Jun 3 05:53:21 2003 Subject: [Pythonmac-SIG] Delivery Status Notification (Failure) Message-ID: This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. jessecarter@nasdaq.com -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- An embedded message was scrubbed... From: pythonmac-sig@python.org Subject: Re: Screensaver Date: Tue, 3 Jun 2003 17:52:07 +0800 Size: 1919 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030603/6584097a/attachment-0001.eml -------------- next part -------------- From MAILER-DAEMON at mx1.m2kcore.com Tue Jun 3 10:41:30 2003 From: MAILER-DAEMON at mx1.m2kcore.com (Mail Delivery System) Date: Tue Jun 3 06:04:54 2003 Subject: [Pythonmac-SIG] Delayed Mail (still being retried) Message-ID: <20030603074130.5BAE4F8D65@mx1.m2kcore.com> This is the Postfix program at host mx1.m2kcore.com. #################################################################### # THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. # #################################################################### Your message could not be delivered for 1.0 hours. It will be retried until it is 1.0 days old. For further assistance, please send mail to The Postfix program : connect to dev.m2kcore.com[80.34.217.75]: Connection refused -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/rfc822-headers Size: 780 bytes Desc: Undelivered Message Headers Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030603/913bfd24/attachment.bin From Jack.Jansen at cwi.nl Tue Jun 3 14:25:31 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Tue Jun 3 07:24:00 2003 Subject: [Pythonmac-SIG] Somebody probably has a virus, please check! In-Reply-To: Message-ID: <15BDE5FA-95B6-11D7-B942-0030655234CE@cwi.nl> On Monday, Jun 2, 2003, at 20:43 Europe/Amsterdam, Kevin Altis wrote: > This is getting pretty bad, so I'll make a few suggestions on the > assumption > that this is a result of an Outlook user on Windows. As Jack > mentioned, they > might not be an Outlook user actually on this list or even using > Outlook, > but there is a high probability they are. There's something more fishy going on. I checked the Received: lines for about 10 messages that caused bounces to be sent to the list, and all the originating machines are different, and the were all over the place (Canada, Singapore, Australia). None of them struck a bell. Either this is a new type of virus, or the email address of the list was featured on a popular webpage. I googled for this, but I couldn't find a clear suspect. For the moment I have set the list so that non-members postings are held for approval. This means that only I am bothered with the flurry of bounces. It also means, however, that if you post from a different address than the one you're subscribed with your mail will have to await approval of me. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From bbum at codefab.com Mon Jun 2 23:00:18 2003 From: bbum at codefab.com (Bill Bumgarner) Date: Tue Jun 3 08:11:04 2003 Subject: [Pythonmac-SIG] CLOSE THE LIST!!! Re: Pythonmac-SIG Digest, Vol 2, Issue 6 In-Reply-To: Message-ID: <1FEA7C83-9567-11D7-89B2-000393877AE4@codefab.com> Wow -- this is, like, the third digest in a row to contain nothing but mailers complaining about various random viruses or other delivery errors. Clearly, the list needs to either be closed or the mailing list software better configured to reject such stupidity. b.bum From lsloan at umich.edu Tue Jun 3 10:44:04 2003 From: lsloan at umich.edu (Lance E Sloan) Date: Tue Jun 3 09:44:11 2003 Subject: [Pythonmac-SIG] Somebody probably has a virus, please check! In-Reply-To: References: Message-ID: <3093001.1054633444@141-213-238-90.umnet.umich.edu> --On Monday, June 2, 2003 11:43 -0700 Kevin Altis wrote: > This is getting pretty bad, so I'll make a few suggestions on the > assumption that this is a result of an Outlook user on Windows. As Jack > mentioned, they might not be an Outlook user actually on this list or > even using Outlook, but there is a high probability they are. I've been looking at some of the bounce messages that include the headers of the original message. Looks like these messages have been sent from: 66.94.36.16 - To COLEHAAN.HR "at" COLEHAAN.COM 66.83.133.118 - To billr "at" smart.net 131.231.220.151 - To billr "at" smart.net 24.200.14.91 - To dmg "at" research.att.com 203.125.27.152 - To sales "at" rarreg.com 203.125.27.152 - To sales "at" tfmik.ru 66.66.49.19 - To aruss "at" oucsace.cs.ohiou.edu 203.87.28.190 - To support "at" prosoft.dk 66.119.218.75 - To naradamoon "at" libero.it 144.138.82.239 - To davidwa "at" caa.org.au 203.125.110.223 - To jessecarter "at" nasdaq.com These are from all over the place. Several are in Singapore. I assume these are all infected Windoze machines. Should somebody at python.org contact these ISPs and tell them that they need to alert their customers that they've got viruses? The viruses mentioned in some of the messages are: Win32.HLLM.Reteras.3 W32.Klez.H@mm W32/Sobig.dam W32/Sobig.eml W32.Sobig.C@mm -- Lance E Sloan U-M WATS: Web Applications, Technologies, and Solutions Full-service web and database design, development, and hosting. http://websvcs.itd.umich.edu/ - "Putting U on the Web" From rswerdlow at transpose.com Tue Jun 3 12:04:35 2003 From: rswerdlow at transpose.com (Bob Swerdlow) Date: Tue Jun 3 11:04:40 2003 Subject: [Pythonmac-SIG] BundleBuilder and Paths to Modules Message-ID: <012201c329e1$767782b0$046fa8c0@RSWERDLOW800> I'm building a PyObjC application using bundlebuilder.py as described at http://pyobjc.sourceforge.net/doc/tutorial.php, but I can't figure out how to get it to include modules from more than one directory. The directory structure I want is this: myproject/ macui/ myApp.py pyclient/ clientclass.py where macui has all the mac-specific stuff and pyclient has all the generic client code. In myApp.py, I have from clientclass import Client >From the myproject directory, I run: python $PYLIB/site-packages/PyObjC/bundlebuilder.py --link --nib=macui/MainMenu --m ainprogram=macui/myApp.py --resource=macUI/MaineMenu.nib build and it doesn't complain. But when I do: ./macui/build/myApp.app/Contents/MacOS/maApp I get this error: file "./macui/build/myApp.app/Contents/Resources/myApp.py", line 7 in ? from clientclass import Client ImportError: No module named tasteprofileclass I tried adding --include=pyclient/clientclass.py to the bundlebuilder command but that did not help. I tried setenv PYTHONPATH "./pyclient/ ./macui/" before the bunderbuilder command, too, but that did not help either. I cannot figure this out from the bundlebuilder usage listing. Can you please tell me how to include modules from other directories with bundlebuilder? Thanks! Bob Swerdlow COO Transpose rswerdlow@transpose.com 207-781-8284 http://www.transpose.com ---------------------------------- Fight Spam! Add this link to your signature (as I did): http://wecanstopspam.org Click through to find out more. ---------------------------------- From just at letterror.com Tue Jun 3 20:17:39 2003 From: just at letterror.com (Just van Rossum) Date: Tue Jun 3 13:18:40 2003 Subject: [Pythonmac-SIG] BundleBuilder and Paths to Modules In-Reply-To: <012201c329e1$767782b0$046fa8c0@RSWERDLOW800> Message-ID: Bob Swerdlow wrote: > I'm building a PyObjC application using bundlebuilder.py as described > at http://pyobjc.sourceforge.net/doc/tutorial.php, but I can't figure > out how to get it to include modules from more than one directory. > > The directory structure I want is this: > myproject/ > macui/ > myApp.py > pyclient/ > clientclass.py > > where macui has all the mac-specific stuff and pyclient has all the > generic client code. In myApp.py, I have > from clientclass import Client > > >From the myproject directory, I run: > > python > $PYLIB/site-packages/PyObjC/bundlebuilder.py --link --nib=macui/MainMenu --m > ainprogram=macui/myApp.py --resource=macUI/MaineMenu.nib build The canonical way to use bundlebuilder is to write a buildapp.py script; you should be able to find several examples in the PyObjC/Examples subdirectories. (And yes, I think the tutorial should reflect that...) You run your buildapp.py script like this: python buildapp.py [options] build > and it doesn't complain. But when I do: > > ./macui/build/myApp.app/Contents/MacOS/maApp > > I get this error: > file "./macui/build/myApp.app/Contents/Resources/myApp.py", line 7 in ? > from clientclass import Client > ImportError: No module named tasteprofileclass > > I tried adding > --include=pyclient/clientclass.py > to the bundlebuilder command but that did not help. The --include option is only used when using the --standalone option (which btw. currently doesn't work well with Python.framework. To be fixed.) > I tried > setenv PYTHONPATH "./pyclient/ ./macui/" > before the bunderbuilder command, too, but that did not help either. > > I cannot figure this out from the bundlebuilder usage listing. Can > you please tell me how to include modules from other directories with > bundlebuilder? If you're not using Python.framework, you can try --standalone, if that's not an option, list the individual files as resources (the resources keyword argument to the buildapp() function, it's a list). HTH, Just From wildpixel at mac.com Tue Jun 3 21:01:59 2003 From: wildpixel at mac.com (Daniel Lord) Date: Tue Jun 3 23:03:16 2003 Subject: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 2, Issue 3 In-Reply-To: Message-ID: May be this is the answer to the spam problem--a web-based forum instead. I realize it is less convenient than a mailing list, but perhaps not when one figures in the annoyance, download time, and time wasted wading through spam. Just a thought. Daniel Lord On Monday, Jun 2, 2003, at 04:31 US/Pacific, pythonmac-sig-request@python.org wrote: > Thank you for writing to support@divx.com. We recently switched all of > our technical support resources to a web-based system, and this email > address is no longer active. > > Your message to this address will not receive a response. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 796 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030603/06efd171/attachment.bin From eppstein at ics.uci.edu Tue Jun 3 21:24:36 2003 From: eppstein at ics.uci.edu (David Eppstein) Date: Tue Jun 3 23:24:42 2003 Subject: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 2, Issue 3 References: Message-ID: In article , Daniel Lord wrote: > May be this is the answer to the spam problem--a web-based forum > instead. I realize it is less convenient than a mailing list, but > perhaps not when one figures in the annoyance, download time, and time > wasted wading through spam. For me switching to a web forum would be a big improvement in amount of time wasted, because the inconvencience would force me to stop reading it. If you find it inconvenient to have all the messages sent to your mailbox, another option is to use the news server at news://gmane.org/ which keeps a copy of this list along with many other interesting ones. -- David Eppstein http://www.ics.uci.edu/~eppstein/ Univ. of California, Irvine, School of Information & Computer Science From mdj at physics.ucf.edu Thu Jun 5 13:34:05 2003 From: mdj at physics.ucf.edu (Michael Johnson) Date: Thu Jun 5 12:34:25 2003 Subject: [Pythonmac-SIG] MacPython 2.3 and Gnuplot Message-ID: <85C5FB8A-9773-11D7-B105-0030654B2FB8@physics.ucf.edu> I am close to getting Gnuplot and Gnuplot.py to work with MacPython 2.3, but not quite there. It works with the command line /usr/local/bin/python but not with PythonIDE. I hope someone here can straighten me out. I installed MacPython 2.3b1 and then used Package Manager to install Numeric-22.0-binary. Separately I installed gnuplot-3.7.1, which works fine (with aquaterm). I downloaded gnuplot-py-1.6. Since MacPython 2.3 installs a command-line version in /usr/local, I used this to install gnuplot.py by running the command "/usr/local/bin/python setup.py install" within the gnuplot.py directory. This installs gnuplot.py in what appears to be the right place: /Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- packages/Gnuplot The result works beautifully using the command-line version of python. For instance, cd'ing to the Gnuplot directory just above and issuing the command "/usr/local/python demo.py" works as advertised. However, I can't get Gnuplot to work using the IDE. It successfully imports Numeric and Gnuplot. But when issuing gnuplot commands like those in the demo.py it fails with the error "IOError: [Errno 32] Broken pipe." The traceback points to self.flush() in gp_macosx.py. I tried playing with the gnuplot_command variable in gp_macosx.py (to point directly to the unix gnuplot command), to no avail. So my question is: can I get Gnuplot.py to work with MacPython's IDE? Thanks for any clues. Michael Johnson From calvin at xmission.com Thu Jun 5 14:13:18 2003 From: calvin at xmission.com (Calvin) Date: Thu Jun 5 17:48:50 2003 Subject: [Pythonmac-SIG] which python pil? Message-ID: I had some disk problems so I'm doing a clean install and also doing a mission critical new install. Mostly, I'm running a bunch of cgi's in unix space. But I want to start doing more gui development too. I notice that 2.3b1 is integrated and will do both, I think (thank you thank you thank you). what I want to know is will it build pil with jpeg support if I have the jpeg libs installed? in 2.2.1 (my last build) I had to have jpeg libs installed and build pil manually. Can I do this with 2.3b1? I also need to build MySQLdb. Can i do this? where do things go? has anyone else done it? hmmm...after reading my email, I've got more questions than answers which leads me to believe for the mission critical stuff, I'll just do a standard build, no framework stuff (I don't get frameworks, can someone explain?) just a straight /usr/local build as for my clean install, if I could get a few instructions that would be nice. something like download install: MacPython-OSX-2.3b1-2.dmg install jpeg libs build PIL (configure looks for stuff here:) buld MySQLdb (configure looks for stuff here:) or maybe you'll just tell me to wait, which is a downer, but understandable. thanks -calvin From Jack.Jansen at cwi.nl Fri Jun 6 01:44:23 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Thu Jun 5 18:44:34 2003 Subject: [Pythonmac-SIG] which python pil? In-Reply-To: Message-ID: <412DE35A-97A7-11D7-9D2A-000A27B19B96@cwi.nl> On donderdag, jun 5, 2003, at 21:13 Europe/Amsterdam, Calvin wrote: > I had some disk problems so I'm doing a clean install and also doing a > mission critical new install. Mostly, I'm running a bunch > of cgi's in unix space. But I want to start doing more gui > development too. > > I notice that 2.3b1 is integrated and will do both, I think (thank you > thank you thank you). what I want to know is will it build pil with > jpeg > support if I have the jpeg libs installed? > > in 2.2.1 (my last build) I had to have jpeg libs installed and build > pil > manually. Can I do this with 2.3b1? Yes. If you use Package Manager to install PIL it will install the jpeg reader. If you install a binary PIL through PackMan this happens automatically (because I built the PIL distribution on a system where libjpeg was available), if you install PIL from source it will work correctly if you've installed libjpeg through fink. > I also need to build MySQLdb. > > Can i do this? where do things go? has anyone else done it? I haven't done it, but I'm interested. And as you say you've got more questions than answers: if you can try building MySQLdb and give me a recipe I'll add it to the package manager. > hmmm...after reading my email, I've got more questions than answers > which leads me to believe for the mission critical stuff, I'll just do > a > standard build, no framework stuff (I don't get frameworks, can someone > explain?) just a straight /usr/local build The non-framework build is a 100% standard unix build. It doesn't give you goodies like the IDE, the Package Manager, the MacOS toolbox modules, etc. Running GUI code is also more complicated, due to the funny way MacOSX handles GUI programs. > as for my clean install, if I could get a few instructions that would > be > nice. > > something like > > download install: MacPython-OSX-2.3b1-2.dmg correct. > install jpeg libs you don't have to, unless you really want to build PIL yourself. > build PIL (configure looks for stuff here:) just install a binary PIL through Package Manager. > buld MySQLdb (configure looks for stuff here:) correct, and tell me how to do it, so the rest of the world can do binary installs from then on:-) -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Jack.Jansen at cwi.nl Thu Jun 5 22:28:44 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Thu Jun 5 18:55:16 2003 Subject: [Pythonmac-SIG] MacPython 2.3 and Gnuplot In-Reply-To: <85C5FB8A-9773-11D7-B105-0030654B2FB8@physics.ucf.edu> Message-ID: There are two things with PythonIDE that could make a difference (at least, two things that I can quickly come up with:-) when it is run from the Finder: - The working directory for PythonIDE is funny, I think it is "/". - stdin/stdout/stderr are funny. stdin is closed (or maybe /dev/null?), stdout and stderr go to the console. Note that this only matter for programs started by the IDE: Python scripts get a fairly normal-looking sys.stdin/stdout/stderr pointing to the output window. First thing I would try is running the IDE from a Terminal window with % /Applications/MacPython-2.3/PythonIDE/Contents/MacOS/PythonIDE and see what happens then. There's a good chance that gnuplot will work in this IDE, because it doesn't have the funny behaviour sketched above. If it doesn't work you may get interesting output from gnuplot in your terminal window. If it does not work you could run the IDE from the Finder again, and use the Applications->Utilities->Console application to see whether gnuplot gives any output on the console. On donderdag, jun 5, 2003, at 18:34 Europe/Amsterdam, Michael Johnson wrote: > I am close to getting Gnuplot and Gnuplot.py to work with MacPython > 2.3, > but not quite there. It works with the command line > /usr/local/bin/python > but not with PythonIDE. I hope someone here can straighten me out. > > I installed MacPython 2.3b1 and then used Package Manager to install > Numeric-22.0-binary. > > Separately I installed gnuplot-3.7.1, which works fine (with aquaterm). > > I downloaded gnuplot-py-1.6. Since MacPython 2.3 installs a > command-line > version in /usr/local, I used this to install gnuplot.py by running > the command > "/usr/local/bin/python setup.py install" within the gnuplot.py > directory. > > This installs gnuplot.py in what appears to be the right place: > /Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- > packages/Gnuplot > > The result works beautifully using the command-line version of python. > For instance, cd'ing to the Gnuplot directory just above and issuing > the > command "/usr/local/python demo.py" works as advertised. > > However, I can't get Gnuplot to work using the IDE. It successfully > imports > Numeric and Gnuplot. But when issuing gnuplot commands like those in > the demo.py it fails with the error > "IOError: [Errno 32] Broken pipe." > The traceback points to self.flush() in gp_macosx.py. I tried playing > with the > gnuplot_command variable in gp_macosx.py (to point directly to the > unix > gnuplot command), to no avail. > > So my question is: can I get Gnuplot.py to work with MacPython's IDE? > > Thanks for any clues. > Michael Johnson > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From calvin at xmission.com Thu Jun 5 18:20:36 2003 From: calvin at xmission.com (Calvin) Date: Thu Jun 5 19:20:42 2003 Subject: [Pythonmac-SIG] which python pil? In-Reply-To: <412DE35A-97A7-11D7-9D2A-000A27B19B96@cwi.nl> from "Jack Jansen" at Jun 06, 2003 12:44:23 AM Message-ID: > > what I want to know is will it build pil with jpeg > > support if I have the jpeg libs installed? > Yes. If you use Package Manager to install PIL it will install the jpeg > reader. If you install a binary PIL through PackMan this happens > automatically (because I built the PIL distribution on a system where > libjpeg was available), if you install PIL from source it will work > correctly if you've installed libjpeg through fink. well, I tried doing it through source, and I don't like fink, so I tried it the old fashioned way. it didn't work. I can keep fiddling, but how install pil with a package manager? Nothing on the PIL website > I haven't done it, but I'm interested. And as you say you've got more > questions than answers: if you can try building MySQLdb and give me a > recipe I'll add it to the package manager. hah! well I did do it. I followed the instructions for mysql install from here: http://www.entropy.ch/software/macosx/mysql/ here are the basic instructions for MySQLdb: $ tar xfz MySQL-python-0.9.2.tar.gz $ cd MySQL-python-0.9.2 $ python setup.py build $ su $ python setup.py install To get it to work I had to make the following changes to setup.py modify setup.py: include_dirs = [ '/usr/local/mysql/include' ] library_dirs = [ '/usr/local/mysql/lib' ] also: elif sys.platform[:6] == "darwin": # Mac OS X include_dirs.append('/usr/local/mysql/include') library_dirs.append('/usr/local/mysql/lib') and it seems work okay. it imports anyway...yeah it works just fine. EXCEPT for through apache! here is sys.path in Apache: ['/Library/WebServer/Documents', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload'] No site-packages...which is where MySQLdb lives. How can I fix this? oh, and testing out MySQLdb just now I discovered I have no readline! aaaaaaarrrrrrrgggggghhhhhhhhhh! i installed it before installing the dmg of 2.3b1 How can I fix this? you can find my complete installation instructions at 166.70.118.134/Install_procedure.txt At the end of which is my little cgi test script. The install_procedure.txt has my apache mods, everything i need to do to get a complete web system working. this one's still under refinement (eg pil). why would apache have a different python path? thank you for your help. -calvin From Jack.Jansen at cwi.nl Fri Jun 6 01:59:07 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Thu Jun 5 19:26:28 2003 Subject: [Pythonmac-SIG] MacPython 2.2.3 available (for your eyes only) Message-ID: <4FE043DF-97A9-11D7-9D2A-000A27B19B96@cwi.nl> Folks, I think MacPython 2.2.3 (MacPython-OS9 2.2.3 in the new terminology) is ready. Please download it and give it a spin, and report any problems here. Actually, also report here with success, I'll wait for at least one OS9 and one OSX success story before I advertise this wider. The installers can be downloaded from , but it isn't mentioned in the readme yet. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From altis at semi-retired.com Fri Jun 6 01:20:09 2003 From: altis at semi-retired.com (Kevin Altis) Date: Fri Jun 6 03:15:10 2003 Subject: [Pythonmac-SIG] Fw: Active Awards Programmers' Choice Nominees are in! Please Vote. Message-ID: Jack is one of nominees this year, so you might want to go check out the voting page below. Good luck Jack, ka "David Ascher" wrote... > Active Awards Programmers' Choice Nominees are in! > Vote for your favorite > > Thanks to the community for recognizing their peers in ActiveState's > third annual Active Awards. The awards honor those who *actively* > contribute to open source programming languages and display excellence > in their programming efforts. > > Nominated in the Python category are: > > * David Goodger > * Edward Ream > * Jack Jansen > * Mark Hammond > * Matthew "Glyph" Lefkowitz > > Please vote for your favorite programmer at > http://www.ActiveState.com/Corporate/ActiveAwards/ before the June 30 > deadline! > > -- David Ascher > > > From calvin at xmission.com Fri Jun 6 02:27:21 2003 From: calvin at xmission.com (Calvin) Date: Fri Jun 6 04:45:15 2003 Subject: [Pythonmac-SIG] which python pil? In-Reply-To: from "Calvin" at Jun 05, 2003 05:20:36 PM Message-ID: > and it seems work okay. it imports anyway...yeah it works just fine. > > EXCEPT for through apache! Okay, reading past mails from pythonmac I fuond my pythonpath solutions. http://mail.python.org/pipermail/pythonmac-sig/2003-February/007259.html still don't know about readline though. > oh, and testing out MySQLdb just now I discovered I have no readline! > > aaaaaaarrrrrrrgggggghhhhhhhhhh! > > i installed it before installing the dmg of 2.3b1 How can I fix this? > -calvin From Jack.Jansen at cwi.nl Fri Jun 6 12:05:55 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Fri Jun 6 05:04:22 2003 Subject: [Pythonmac-SIG] which python pil? Plus Python/Apache question. In-Reply-To: Message-ID: <14E83BC8-97FE-11D7-AE18-0030655234CE@cwi.nl> On Friday, Jun 6, 2003, at 01:20 Europe/Amsterdam, Calvin wrote: >>> what I want to know is will it build pil with jpeg >>> support if I have the jpeg libs installed? > >> Yes. If you use Package Manager to install PIL it will install the >> jpeg >> reader. If you install a binary PIL through PackMan this happens >> automatically (because I built the PIL distribution on a system where >> libjpeg was available), if you install PIL from source it will work >> correctly if you've installed libjpeg through fink. > > well, I tried doing it through source, and I don't like fink, so I > tried > it the old fashioned way. it didn't work. Here's the invocation I used, with libjpeg in /sw, for PIL 1.1.4. You should modify it for your location of libjpeg. % cd libImaging % LDFLAGS="-L/sw/lib" CPPFLAGS="-I/sw/lib" ./configure % make JPEGINCLUDE=/sw/include libImaging.a % cd .. % python setup.py install Actually, this is also the command line that Package Manager uses when installing PIL from source. > I can keep fiddling, but how > install pil with a package manager? Nothing on the PIL website Sorry, I should have explained, you've apparently missed the discussion on Package Manager here. Package Manager is a MacPython-specific tool that downloads and installs distutils-based Python extension packages. After you've done a framework install you'll find it in /Applications/MacPython-2.3/PackageManager, or in the "File" menu of the IDE. The terms "PackMan" and "pimp", when you see them on this list, mean roughly the same. After a framework build, start the IDE and look at the "MacPython Help" in it's help menu. It's only a couple of pages, but it should give you an idea of the functionality MacPython adds over unix-Python. And, as always, if there's stuff missing or unclear: please report! >> I haven't done it, but I'm interested. And as you say you've got more >> questions than answers: if you can try building MySQLdb and give me a >> recipe I'll add it to the package manager. > > hah! well I did do it. I followed the instructions for mysql install > from > here: > http://www.entropy.ch/software/macosx/mysql/ > > here are the basic instructions for MySQLdb: > $ tar xfz MySQL-python-0.9.2.tar.gz > $ cd MySQL-python-0.9.2 > $ python setup.py build > $ su > $ python setup.py install > > To get it to work I had to make the following changes to setup.py > modify setup.py: > include_dirs = [ > '/usr/local/mysql/include' > ] > library_dirs = [ > '/usr/local/mysql/lib' > ] > also: > elif sys.platform[:6] == "darwin": # Mac OS X > include_dirs.append('/usr/local/mysql/include') > library_dirs.append('/usr/local/mysql/lib') Thanks! I will look into it. It won't work with PackMan as-is (as this does automatic installs I can't really edit setup.py files), but there may be a way to beat it into submission. > and it seems work okay. it imports anyway...yeah it works just fine. > > EXCEPT for through apache! > > here is sys.path in Apache: > ['/Library/WebServer/Documents', > '//Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip', > '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3', > '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ > plat-darwin', > '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ > plat-mac', > '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ > plat-mac/lib-scriptpackages', > '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib- > tk', > '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib- > dynload'] > > No site-packages...which is where MySQLdb lives. How can I fix this? Strange... Does anyone else who uses Python from Apache have an idea what could be going on here? Maybe it uses a different site.py or actively removes site-packages from sys.path? -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From brian_l at mac.com Fri Jun 6 06:08:57 2003 From: brian_l at mac.com (Brian Lenihan) Date: Fri Jun 6 08:10:10 2003 Subject: [Pythonmac-SIG] which python pil? Plus Python/Apache question. In-Reply-To: <14E83BC8-97FE-11D7-AE18-0030655234CE@cwi.nl> Message-ID: On Friday, June 6, 2003, at 02:05 AM, Jack Jansen wrote: >> EXCEPT for through apache! >> >> here is sys.path in Apache: >> ['/Library/WebServer/Documents', >> '//Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip', >> '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3', >> '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ >> plat-darwin', >> '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ >> plat-mac', >> '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ >> plat-mac/lib-scriptpackages', >> '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ >> lib-tk', >> '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ >> lib-dynload'] >> >> No site-packages...which is where MySQLdb lives. How can I fix this? > > Strange... Does anyone else who uses Python from Apache have an idea > what could be going on here? Maybe it uses a different site.py or > actively removes site-packages from sys.path? This is the result of the typo I reported in 747954 that you fixed already: change line 180 of site.py to be: if os.environ.get('HOME'): From Jack.Jansen at cwi.nl Fri Jun 6 17:24:57 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Fri Jun 6 10:23:28 2003 Subject: [Pythonmac-SIG] which python pil? Plus Python/Apache question. In-Reply-To: Message-ID: On Friday, Jun 6, 2003, at 14:08 Europe/Amsterdam, Brian Lenihan wrote: >>> No site-packages...which is where MySQLdb lives. How can I fix this? >> >> Strange... Does anyone else who uses Python from Apache have an idea >> what could be going on here? Maybe it uses a different site.py or >> actively removes site-packages from sys.path? > > This is the result of the typo I reported in 747954 that you fixed > already: > > change line 180 of site.py to be: > > if os.environ.get('HOME'): Ah, thanks! So Python-apache just limps on after the exception? Brrr.... Anyway, Calvin, this tells you what to fix, and 2.3b2 will contain the fix. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From owen at astro.washington.edu Fri Jun 6 12:38:47 2003 From: owen at astro.washington.edu (Russell E Owen) Date: Fri Jun 6 14:38:54 2003 Subject: [Pythonmac-SIG] file creation dates Message-ID: I've just stumbled across something new to me. In MacPython 2.2.2, the st_ctime returned by os.stat was the file creation date. Somehow I had the impression that was normal. However, in Mac Python 2.3b1 and in unix-on-Mac python 2.2.2 the st_ctime is something else (perhaps the "time of last status change", whatever that is, as documented in Python in a Nutshell). It is interesting that the st_ctime can be different than the st_atime and st_mtime, even under the unix Python 2.2.2 -- I had no idea the HFS+ had so many file date entries. Yikes! (And how could unix be missing such an important thing as file creation date? Weird.) Anyway, I've been using file creation date and am wondering what to do. Is there a simple standard way to get the file creation date in Mac Python 2.3b1, preferably one that also works in MacPython 2.2.2? -- Russell From eric.nieuwland at xs4all.nl Fri Jun 6 21:47:39 2003 From: eric.nieuwland at xs4all.nl (Eric Nieuwland) Date: Fri Jun 6 14:47:46 2003 Subject: [Pythonmac-SIG] file creation dates In-Reply-To: Message-ID: <5940A1BE-984F-11D7-886B-000393894CEA@xs4all.nl> Russell, Welcome to the wonderful world of UNIX! Ctime is the last time there was a change to the 'inode'. Inodes are what a UNIX file system is made of: they are the administrative units that represent files/directories/... Each time an attribute like atime, mtime, owner, or group is explicitly changed, ctime changes. Thus, if you write to a file only mtime changes but if you 'touch' a file (i.e. manually change mtime) then ctime changes, too. --eric On Friday, June 6, 2003, at 08:38 PM, Russell E Owen wrote: > I've just stumbled across something new to me. In MacPython 2.2.2, the > st_ctime returned by os.stat was the file creation date. Somehow I had > the impression that was normal. However, in Mac Python 2.3b1 and in > unix-on-Mac python 2.2.2 the st_ctime is something else (perhaps the > "time of last status change", whatever that is, as documented in > Python in a Nutshell). > > It is interesting that the st_ctime can be different than the st_atime > and st_mtime, even under the unix Python 2.2.2 -- I had no idea the > HFS+ had so many file date entries. Yikes! (And how could unix be > missing such an important thing as file creation date? Weird.) > > Anyway, I've been using file creation date and am wondering what to do. > > Is there a simple standard way to get the file creation date in Mac > Python 2.3b1, preferably one that also works in MacPython 2.2.2? > > -- Russell > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From israel at sandlotgames.com Fri Jun 6 15:11:46 2003 From: israel at sandlotgames.com (Israel C. Evans) Date: Fri Jun 6 17:17:39 2003 Subject: [Pythonmac-SIG] Shelve ... Denied! In-Reply-To: Message-ID: <7B4B22A7-9863-11D7-963D-000393A47FF2@sandlotgames.com> Hey there.. Thanks for this bit of help.. permissions and chmod still twist my brain for some odd reason, but I think I do have this working. The problem I'm having is that I need to be able to create new shelve db's through this web interface I'm building here. I'm confused as to how I should go about setting the permissions for various users so that they can create, edit, save and delete files based upon their permissions. Are there any tutorials or articles any of you have found particularly helpful in regards to this subject? Or, better yet, would any of you have a little knowledge pill handy that could magically endow me with the know how to do this? No? oh well. I'll just have to do it the hard way... Now in regards to articles or other help, I would be most grateful for said objects of desire. Thanks much, ~Israel~ On Wednesday, May 28, 2003, at 02:00 AM, Jack Jansen wrote: > > On Wednesday, May 28, 2003, at 00:43 Europe/Amsterdam, Israel C. Evans > wrote: >> here is the bit that python or maybe apache chokes on: >> db = shelve.open('200305','c') >> >> and this gives me this error (condensed due to the size of the cgitb >> traceback info I get). >> error: (13, 'Permission denied') >> args = (13, 'Permission denied') > > This sounds like a typical unix permissions problem. Check the uiserID > and mode on the shelve files and the userIDs that you expect to do > updates. If there is only one userID that does updates then any mode > that has rw-...... in the first column is okay. If there are multiple > userIDs that do updates you need at least rw-rw-... or even rw-rw-rw-. > > Hmm, shelve.open() has no direct way to set the mode, it uses > rw-rw-rw- modified by the umask. The umask is the bits that are > automatically taken _out_ of the modes of the files you create, and it > defaults to octal 022 (in other words, the bits ----w--w- are taken > out of your filemode). If you set the umask to 02 or even 0 before > creating the file that should help. > -- > Jack Jansen, , http://www.cwi.nl/~jack > If I can't dance I don't want to be part of your revolution -- Emma > Goldman > > > ~Israel~ From Jack.Jansen at cwi.nl Sun Jun 8 00:52:10 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Sat Jun 7 17:52:17 2003 Subject: [Pythonmac-SIG] file creation dates In-Reply-To: <5940A1BE-984F-11D7-886B-000393894CEA@xs4all.nl> Message-ID: <4A10C84C-9932-11D7-BD99-000A27B19B96@cwi.nl> > On Friday, June 6, 2003, at 08:38 PM, Russell E Owen wrote: >> It is interesting that the st_ctime can be different than the >> st_atime and st_mtime, even under the unix Python 2.2.2 -- I had no >> idea the HFS+ had so many file date entries. Yikes! (And how could >> unix be missing such an important thing as file creation date? >> >> Weird.) On vrijdag, jun 6, 2003, at 20:47 Europe/Amsterdam, Eric Nieuwland wrote: > Welcome to the wonderful world of UNIX! > Ctime is the last time there was a change to the 'inode'. To expand on this (and to show off what an old fart I am:-), the three file times have been there since Unix Version 7, around 1978 (I think Version 6 had only 2 times, but I'm not 100% sure). And the semantics of st_ctime meaning "inode modification time" had a real function too: it meant the file needed backup if it was modified after the last backup. st_mtime isn't good enough as a backup trigger: if someone did a chmod() on the file you would also want it to be backed up anew. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Jack.Jansen at cwi.nl Sun Jun 8 00:58:34 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Sat Jun 7 17:58:40 2003 Subject: [Pythonmac-SIG] Shelve ... Denied! In-Reply-To: <7B4B22A7-9863-11D7-963D-000393A47FF2@sandlotgames.com> Message-ID: <2F6FE6E8-9933-11D7-BD99-000A27B19B96@cwi.nl> On vrijdag, jun 6, 2003, at 23:11 Europe/Amsterdam, Israel C. Evans wrote: > Hey there.. Thanks for this bit of help.. > permissions and chmod still twist my brain for some odd reason, but I > think I do have this working. > > The problem I'm having is that I need to be able to create new shelve > db's through this web interface I'm building here. I'm confused as to > how I should go about setting the permissions for various users so > that they can create, edit, save and delete files based upon their > permissions. If your machine is safe, i.e. only non-malicious users have logins and you trust your cgi code, just create all databases with mode 666 (octal: unix modes are usually shown in octal because they're three groups of three bits, this corresponds to rw-rw-rw- in "ls -l") and do any access control in your cgi code. > Are there any tutorials or articles any of you have found particularly > helpful in regards to this subject? Or, better yet, would any of you > have a little knowledge pill handy that could magically endow me with > the know how to do this? No? oh well. I'll just have to do it the > hard way... > Now in regards to articles or other help, I would be most grateful for > said objects of desire. If you don't trust all users and/or don't trust your cgi code things can be made as complicated as you want. You could probably fill a book case with the amount written on this. A quick google revealed http://www.w3.org/Security/Faq/ as a reasonable starting point. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Chris.Barker at noaa.gov Mon Jun 9 18:23:10 2003 From: Chris.Barker at noaa.gov (Chris Barker) Date: Mon Jun 9 20:25:28 2003 Subject: [Pythonmac-SIG] OT: cvs client for OS-9 References: Message-ID: <3EE524EE.81BD707F@noaa.gov> Hi folks, This is off-topic, but can anyone recommend a cvs client for OS-9? I'm trying ot get some of my colluegues to use cvs, but some of them are still using OS-9, so I need to find a client that works well for them. I'm trying out MacCVS and MacCVSClient, but at the moment I can't get either one to talk to my server. If anyone is familiar with them, I seem to be having trouble setting CVSROOT. I set it to exactly what works with the command ine client on OS_X and Linux, but I keep getting errors like: Didn't specify hostname in CVSROOT: :pserver:ORR6072.orr.noaa.gov/home/tap/cvs It sure looks like I specified one to me! I also tried: :pserver:cbarker@ORR6072.orr.noaa.gov/home/tap/cvs In which case I get a missing hostname error Sorry for the Off Topic, but you're the only group of helpful Mac developers I know.. -chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov From steve at digitalfish.com Mon Jun 9 19:12:41 2003 From: steve at digitalfish.com (Steve Johnson) Date: Mon Jun 9 21:13:31 2003 Subject: [Pythonmac-SIG] OT: cvs client for OS-9 In-Reply-To: <3EE524EE.81BD707F@noaa.gov> Message-ID: Chris, The CVSROOT you list below is malformed.? You need another ':' between the host name and the path to the repository. Also, most CVSROOT values include a user name, but I'm not sure if that's required.? Here's a valid CVSROOT from one of my local dirs: ?? :pserver:sjohnson@eqcvs.equilibrium.com:/home/cvs/cvsroot2 Hope that helps! Steve On Monday, June 9, 2003, at 05:23 PM, Chris Barker wrote: > Hi folks, > > This is off-topic, but can anyone recommend a cvs client for OS-9? I'm > trying ot get some of my colluegues to use cvs, but some of them are > still using OS-9, so I need to find a client that works well for them. > > I'm trying out MacCVS and MacCVSClient, but at the moment I can't get > either one to talk to my server. If anyone is familiar with them, I > seem > to be having trouble setting CVSROOT. I set it to exactly what works > with the command ine client on OS_X and Linux, but I keep getting > errors > like: > > Didn't specify hostname in CVSROOT: > > :pserver:ORR6072.orr.noaa.gov/home/tap/cvs > > It sure looks like I specified one to me! > > I also tried: > > :pserver:cbarker@ORR6072.orr.noaa.gov/home/tap/cvs > > In which case I get a missing hostname error > > Sorry for the Off Topic, but you're the only group of helpful Mac > developers I know.. > > -chris > > > > -- > Christopher Barker, Ph.D. > Oceanographer > ??????????????????????????????????? ??? ??????? > NOAA/OR&R/HAZMAT???????? (206) 526-6959?? voice > 7600 Sand Point Way NE?? (206) 526-6329?? fax > Seattle, WA? 98115?????? (206) 526-6317?? main reception > > Chris.Barker@noaa.gov > > _______________________________________________ > Pythonmac-SIG maillist? -? Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2161 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030609/771fc865/attachment.bin From ryanwilcox at mac.com Mon Jun 9 22:47:26 2003 From: ryanwilcox at mac.com (Ryan Wilcox) Date: Mon Jun 9 21:47:17 2003 Subject: [Pythonmac-SIG] OT: cvs client for OS-9 In-Reply-To: <3EE524EE.81BD707F@noaa.gov> Message-ID: On 6/9/03, at 5:23 PM, Chris Barker said: >Hi folks, > >This is off-topic, but can anyone recommend a cvs client for OS-9? I'm >trying ot get some of my colluegues to use cvs, but some of them are >still using OS-9, so I need to find a client that works well for them. > >I'm trying out MacCVS and MacCVSClient, but at the moment I can't get >either one to talk to my server. I use MacCVS Pro (http://www.sourceforge.net/projects/maccvspro/) With MacCVS Pro your CVSROOT is simply the path to your CVS repository on your server. You've got two important fields: Server Hostname: ORR6072.orr.noaa.gov in this case (I'm guessing at your hostname) CVS ROOT: /home/tap/cvs HTH, -Ryan Wilcox --------------------------------------------------------------------- Wilcox Design: Understanding Data http://www.wilcoxd.com From sjohnson at parisgroup.net Mon Jun 9 19:04:34 2003 From: sjohnson at parisgroup.net (sjohnson) Date: Tue Jun 10 05:30:23 2003 Subject: [Pythonmac-SIG] OT: cvs client for OS-9 Message-ID: Chris, The CVSROOT you list below is malformed. You need another ':' between the host name and the path to the repository. Also, most CVSROOT values include a user name, but I'm not sure if that's required. Here's a valid CVSROOT from one of my local dirs: :pserver:sjohnson@eqcvs.equilibrium.com:/home/cvs/cvsroot2 Hope that helps! Steve > -----Original Message----- > From: Chris Barker [mailto:Chris.Barker@noaa.gov] > Sent: Monday, June 09, 2003 5:23 PM > Cc: pythonmac-sig@python.org > Subject: [Pythonmac-SIG] OT: cvs client for OS-9 > > > Hi folks, > > This is off-topic, but can anyone recommend a cvs client for > OS-9? I'm trying ot get some of my colluegues to use cvs, but > some of them are still using OS-9, so I need to find a client > that works well for them. > > I'm trying out MacCVS and MacCVSClient, but at the moment I > can't get either one to talk to my server. If anyone is > familiar with them, I seem to be having trouble setting > CVSROOT. I set it to exactly what works with the command ine > client on OS_X and Linux, but I keep getting errors > like: > > Didn't specify hostname in CVSROOT: > > :pserver:ORR6072.orr.noaa.gov/home/tap/cvs > > It sure looks like I specified one to me! > > I also tried: > > :pserver:cbarker@ORR6072.orr.noaa.gov/home/tap/cvs > > In which case I get a missing hostname error > > Sorry for the Off Topic, but you're the only group of helpful > Mac developers I know.. > > -chris > > > > -- > Christopher Barker, Ph.D. > Oceanographer > > NOAA/OR&R/HAZMAT (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chris.Barker@noaa.gov > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/python> mac-sig > > From calvin at xmission.com Tue Jun 10 11:29:23 2003 From: calvin at xmission.com (Calvin) Date: Tue Jun 10 12:29:27 2003 Subject: [Pythonmac-SIG] 2.3b1 readline problems Message-ID: I can't install readline. I'm not using fink. readline stuff goes in /usr/local like a good little unix and I get an error when using package manager. it is: Failure linking new module: /sw/lib/libreadline.4.dylib:dyld: /Applications/MacPython-2.3/ it doesn't even give me the verbose install. I have installed readline-4.3 and read through many a page on this subject. do I have to modify pimp.py? if so where? I couldn't find an "sw" in the whole file. I made an sw directory and then did an "ln -s /usr/local/lib /sw" but that didn't work. any ideas? thanks -calvin From grobinson at transpose.com Tue Jun 10 14:58:48 2003 From: grobinson at transpose.com (Gary Robinson) Date: Tue Jun 10 13:58:55 2003 Subject: [Pythonmac-SIG] shutdown vs. python daemon script Message-ID: Hi, We have a daemon process written in Python running in OS X. It's started with Applescript's "do shell script" command. When the user who ran the AppleScript that invoked the daemon logs out. The daemon stops. But we need it to do some cleanup actions when it stops. I assume some signal is sent to the daemon at lagout time, which I could (hopefully) trap with python's signal module. Does anybody know what signal it is??? I've experimented some, and it doesn't seem to be signal.SIGHUP, signal.SIGTERM, signal.SIGABRT, or signal.SIGQUIT. Alternatively: ultimately we plan for this Python daemon to be started from a Cocoa application. The Cocoa application can tell the daemon to stop when it does, by sending a user-defined signal. So, as long as OS tells all Cocoa apps to quit before it shuts down daemons, we're fine. But is there a guarantee that that will happen? Many thanks in advance for any help on this. --Gary -- Gary Robinson CEO Transpose, LLC grobinson@transpose.com 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 From mdj at physics.ucf.edu Tue Jun 10 15:59:09 2003 From: mdj at physics.ucf.edu (Michael Johnson) Date: Tue Jun 10 14:59:27 2003 Subject: [Pythonmac-SIG] MacPython 2.3 and Gnuplot In-Reply-To: Message-ID: <9E006F86-9B75-11D7-A2F0-0030654B2FB8@physics.ucf.edu> Thanks, Jack. This helped me track down the problem (a mistyped path). Doing what I wanted took a newer version of gnuplot. The easiest way is to use gnuplot and gnuplot.py from the fink distribution. But I needed a less massive set of downloads to recommend to some students. In the end this worked: MacPython 2.3 including Numeric 22.0 gnuplot 3.8h (I used http://lee-phillips.org/info/Macintosh/gnuplot_binaries.pax.Z installed into /usr/local/bin/gnuplot .) gnuplot.py 1.6 (installed using "/usr/local/bin/python setup.py install") It was also necessary to set gnuplot's explicit path in gp_macosx.py, which is in directory /Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- packages/Gnuplot , by changing the line gnuplot_command = 'gnuplot' to gnuplot_command = '/usr/local/bin/gnuplot' This version of gnuplot requires explicitly setting the terminal type to aqua, for instance by using g = Gnuplot.Gnuplot() g('set terminal aqua') (The fink gnuplot uses aqua as the default terminal.) Cheers, Michael Johnson On Thursday, June 5, 2003, at 03:28 PM, Jack Jansen wrote: > There are two things with PythonIDE that could make a difference (at > least, two things that I can quickly come up with:-) when it is run > from the Finder: > - The working directory for PythonIDE is funny, I think it is "/". > - stdin/stdout/stderr are funny. stdin is closed (or maybe > /dev/null?), stdout and stderr go to the console. Note that this only > matter for programs started by the IDE: Python scripts get a fairly > normal-looking sys.stdin/stdout/stderr pointing to the output window. > > First thing I would try is running the IDE from a Terminal window with > % /Applications/MacPython-2.3/PythonIDE/Contents/MacOS/PythonIDE > and see what happens then. There's a good chance that gnuplot will > work in this IDE, because it doesn't have the funny behaviour sketched > above. If it doesn't work you may get interesting output from gnuplot > in your terminal window. If it does not work you could run the IDE > from the Finder again, and use the Applications->Utilities->Console > application to see whether gnuplot gives any output on the console. > > On donderdag, jun 5, 2003, at 18:34 Europe/Amsterdam, Michael Johnson > wrote: > >> I am close to getting Gnuplot and Gnuplot.py to work with MacPython >> 2.3, >> but not quite there. It works with the command line >> /usr/local/bin/python >> but not with PythonIDE. I hope someone here can straighten me out. >> >> I installed MacPython 2.3b1 and then used Package Manager to install >> Numeric-22.0-binary. >> >> Separately I installed gnuplot-3.7.1, which works fine (with >> aquaterm). >> >> I downloaded gnuplot-py-1.6. Since MacPython 2.3 installs a >> command-line >> version in /usr/local, I used this to install gnuplot.py by running >> the command >> "/usr/local/bin/python setup.py install" within the gnuplot.py >> directory. >> >> This installs gnuplot.py in what appears to be the right place: >> /Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- >> packages/Gnuplot >> >> The result works beautifully using the command-line version of >> python. >> For instance, cd'ing to the Gnuplot directory just above and issuing >> the >> command "/usr/local/python demo.py" works as advertised. >> >> However, I can't get Gnuplot to work using the IDE. It successfully >> imports >> Numeric and Gnuplot. But when issuing gnuplot commands like those in >> the demo.py it fails with the error >> "IOError: [Errno 32] Broken pipe." >> The traceback points to self.flush() in gp_macosx.py. I tried playing >> with the >> gnuplot_command variable in gp_macosx.py (to point directly to the >> unix >> gnuplot command), to no avail. >> >> So my question is: can I get Gnuplot.py to work with MacPython's IDE? >> >> Thanks for any clues. >> Michael Johnson >> >> >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG@python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig >> > -- > - Jack Jansen > http://www.cwi.nl/~jack - > - If I can't dance I don't want to be part of your revolution -- Emma > Goldman - > From calvin at xmission.com Tue Jun 10 11:43:42 2003 From: calvin at xmission.com (Calvin) Date: Wed Jun 11 05:49:15 2003 Subject: [Pythonmac-SIG] which python pil? Plus Python/Apache question. In-Reply-To: from "Jack Jansen" at Jun 06, 2003 04:24:57 PM Message-ID: > > change line 180 of site.py to be: > > > > if os.environ.get('HOME'): > I tried this, well, sorta. beginning on line 179 through 182: if 'Python.framework' in prefix: home = os.environ['HOME'] if home: sitedirs.append( So, I fiddled with 180, making 'home = os.environ.get['HOME']' and 181 'if os.environ.get('HOME'):' and then did restarts of apache for the various ways I tried it, and it still wouldn't read site-packages in the path. I've set the env value in apache, but I don't like that. Any suggetions? -calvin From Jack.Jansen at cwi.nl Wed Jun 11 12:52:20 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Wed Jun 11 05:50:40 2003 Subject: [Pythonmac-SIG] 2.3b1 readline problems In-Reply-To: Message-ID: <646F0862-9BF2-11D7-A7D1-0030655234CE@cwi.nl> On Tuesday, Jun 10, 2003, at 18:29 Europe/Amsterdam, Calvin wrote: > I can't install readline. I'm not using fink. readline stuff goes in > /usr/local like a good little unix and I get an error when using > package > manager. > > it is: > > Failure linking new module: /sw/lib/libreadline.4.dylib:dyld: > /Applications/MacPython-2.3/ My mistake: the readline package in the Package Manager is incorrect. I'll fix it. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From lep at aber.ac.uk Wed Jun 11 18:11:21 2003 From: lep at aber.ac.uk (Leighton Pritchard) Date: Wed Jun 11 12:12:16 2003 Subject: [Pythonmac-SIG] Problem using buildapp Message-ID: <5.1.0.14.0.20030611170607.00afd378@pophost.aber.ac.uk> Hi, I'm having trouble with an application I've built using buildapp. It runs fine on my Powerbook G4, but throws the following wobbly to the console on my colleague's Titanium Powerbook: 16:57:50: Debug: wxMac library installation name is '/usr/local/lib/libwx_macd-2.4.0.dylib' 16:57:50: Debug: wxMac resources file name is '/usr/local/lib/libwx_macd-2.4.0.rsrc' warning: raising a string exception is deprecated warning: raising a string exception is deprecated warning: raising a string exception is deprecated warning: raising a string exception is deprecated warning: raising a string exception is deprecated warning: raising a string exception is deprecated Traceback (most recent call last): File "/Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/ PyPCRSimGUI.pyw", line 13, in ? from MDMEditor import MDMEditorPanel File "/Users/lep/Documents/CVSworkspace/PyPCRSim/MDMEditor.py", line 11, in ? File "/Users/lep/Documents/CVSworkspace/PyPCRSim/MDM.py", line 25, in ? File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- packages/Numeric/Numeric.py", line 472, in ? File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ pickle.py", line 34, in ? import struct ImportError: Failure linking new module: : dyld: /Users/hywel/Desktop/PyPCRSimGUI.app/Contents/MacOS/PyPCRSimGUI Undefined symbols: /Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/struct.so undefined reference to __PyFloat_Pack4 expected to be defined in Python /Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/struct.so undefined reference to __PyFloat_Pack8 expected to be defined in Python /Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/struct.so undefined reference to __PyFloat_Unpack4 expected To be honest, I'm not sure what's going on here. Please could any of you enlighten me? If more information is useful, let me know. Dr Leighton Pritchard AMRSC T44, Cledwyn Building, Institute of Biological Sciences University of Wales, Aberystwyth, UK, SY23 3DD lep@aber.ac.uk (01970) 622353 PGP key 47B4A485: http://www.keyserver.net http://pgp.mit.edu/ From grobinson at transpose.com Wed Jun 11 13:28:38 2003 From: grobinson at transpose.com (Gary Robinson) Date: Wed Jun 11 12:28:46 2003 Subject: [Pythonmac-SIG] re: shutdown vs. python daemon script Message-ID: Since posting my original question, I have discovered that SIGKILL is sent to daemons when a Unix OS shuts down and it can't be trapped or handled. So I assume OS X is doing that. But I am told that such OS's SHOULD send a SIGTERM first, which CAN be trapped and handled. But I have been unable to see any signs that OS X is doing that. If my daemon is running at shutdown, and has a hander for SIGTERM installed, the actions in the SIGTERM handler are not carried out. If anybody has any ideas about this, I'd appreciate it... in the meantime I'm also going to see if I can find a Darwin mail list to ask the question on! Thanks! --Gary -- Gary Robinson CEO Transpose, LLC grobinson@transpose.com 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 From tjk at ams.org Wed Jun 11 16:26:01 2003 From: tjk at ams.org (Tom Kacvinsky) Date: Wed Jun 11 15:30:44 2003 Subject: [Pythonmac-SIG] re: shutdown vs. python daemon script In-Reply-To: References: Message-ID: <2147483647.1055345161@tjk.ams.org> Hi, Out of curiousity, does your signal handler reinstall itself? I *think* that BSDish OSs require signal handlers to reinstall themselves. There is also the question of whether Python on MacOS X was compiled with signal support. I know that on solaris 8, I had to specify an appropriate option to configure to enable building Python with signal support. Signal handling was not a default build option... (at least with 2.2.x) Tom On 2003/06/11 12:28 -0400 Gary Robinson wrote: > Since posting my original question, I have discovered that SIGKILL is sent > to daemons when a Unix OS shuts down and it can't be trapped or handled. So > I assume OS X is doing that. > > But I am told that such OS's SHOULD send a SIGTERM first, which CAN be > trapped and handled. But I have been unable to see any signs that OS X is > doing that. If my daemon is running at shutdown, and has a hander for > SIGTERM installed, the actions in the SIGTERM handler are not carried out. > > If anybody has any ideas about this, I'd appreciate it... in the meantime > I'm also going to see if I can find a Darwin mail list to ask the question > on! > > Thanks! > > --Gary > > -- > > > Gary Robinson > CEO > Transpose, LLC > grobinson@transpose.com > 207-942-3463 > http://www.transpose.com > http://radio.weblogs.com/0101454 > > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig From kaweh at knuddl.org Thu Jun 12 02:39:48 2003 From: kaweh at knuddl.org (Kaweh Kazemi) Date: Wed Jun 11 19:40:46 2003 Subject: [Pythonmac-SIG] Import problem (MacPython-2.3b2 OSX) Message-ID: Hi all, Installed MacPython-2.3b2 (OS X 10.2.6) and have following problem: running the attached test.py program in a shell produces attached output (test_shell_output.txt). When I start the same script as a CGI script, I get a different output (test_cgi_output.txt) - the only difference is that the CGI script is not able to import elementtree (which I installed manually using "sudo python setup.py install"). Also the CGI script can not import site, giving following traceback during site import (used -v): 'import site' failed; traceback: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ site.py", line 180, in ? home = os.environ['HOME'] File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ UserDict.py", line 19, in __getitem__ def __getitem__(self, key): return self.data[key] KeyError: 'HOME' Again the script run in a shell had no problems. Does anyone have a clue, what I'm doing wrong? Thanks for any help. Cheers, kaweh Shell output: -------------- next part -------------- Skipped content of type multipart/appledouble-------------- next part -------------- 2.3b1 (#4, Apr 29 2003, 13:28:17) [GCC 3.1 20020420 (prerelease)] ['/Users/kaweh/Sites', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk', '//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload'] SERVER_SOFTWARE Apache/1.3.27 (Darwin) SCRIPT_FILENAME /Users/kaweh/Sites/test.py SERVER_ADMIN [no address given] SCRIPT_NAME /~kaweh/test.py SERVER_SIGNATURE
Apache/1.3.27 Server at chello080108078153.15.11.vie.surfer.at Port 80
REQUEST_METHOD GET HTTP_HOST localhost SERVER_PROTOCOL HTTP/1.1 QUERY_STRING PATH /usr/bin:/bin:/usr/sbin:/sbin:/Users/kaweh REQUEST_URI /~kaweh/test.py HTTP_ACCEPT */* HTTP_USER_AGENT Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/74 (KHTML, like Gecko) Safari/74 HTTP_CONNECTION keep-alive SERVER_NAME chello080108078153.15.11.vie.surfer.at REMOTE_PORT 50802 REMOTE_ADDR 127.0.0.1 HTTP_ACCEPT_LANGUAGE en-us, ja;q=0.21, de-de;q=0.86, de;q=0.79, fr-fr;q=0.71, fr;q=0.64, nl-nl;q=0.57, nl;q=0.50, it-it;q=0.43, it;q=0.36, ja-jp;q=0.29, en;q=0.93, es-es;q=0.14, es;q=0.07 __CF_USER_TEXT_ENCODING 0x46:0:0 SERVER_PORT 80 GATEWAY_INTERFACE CGI/1.1 SERVER_ADDR 127.0.0.1 DOCUMENT_ROOT /Library/WebServer/Documents /Users/kaweh/Sites /Users/kaweh/Sites/images //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3 //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/bsddb //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/bsddb/test //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/compiler //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/csv //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/curses //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/distutils //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/distutils/command //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/email //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/email/test //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/email/test/data //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/encodings //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/hotshot //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-old //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/logging //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/Carbon //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/_builtinSuites //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/CodeWarrior //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Explorer //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Finder //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Netscape //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/StdSuites //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/SystemEvents //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Terminal //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/elementtree //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/test //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/test/output //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/dom //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/parsers //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/Carbon //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/_builtinSuites //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/CodeWarrior //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Explorer //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Finder //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Netscape //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/StdSuites //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/SystemEvents //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Terminal //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/_builtinSuites //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/CodeWarrior //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Explorer //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Finder //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Netscape //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/StdSuites //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/SystemEvents //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Terminal //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk //Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload elementtree - failed -------------- next part -------------- Skipped content of type multipart/appledouble From brian_l at mac.com Wed Jun 11 17:59:46 2003 From: brian_l at mac.com (Brian Lenihan) Date: Wed Jun 11 19:59:58 2003 Subject: [Pythonmac-SIG] Import problem (MacPython-2.3b2 OSX) In-Reply-To: Message-ID: On Wednesday, June 11, 2003, at 04:39 PM, Kaweh Kazemi wrote: > Hi all, > > Installed MacPython-2.3b2 (OS X 10.2.6) and have following problem: > running the attached test.py program in a shell produces attached > output (test_shell_output.txt). > > When I start the same script as a CGI script, I get a different output > (test_cgi_output.txt) - the only difference is that the CGI script is > not able to import elementtree (which I installed manually using "sudo > python setup.py install"). > > Also the CGI script can not import site, giving following traceback > during site import (used -v): > > 'import site' failed; traceback: > Traceback (most recent call last): > File > "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ > site.py", line 180, in ? > home = os.environ['HOME'] > File > "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ > UserDict.py", line 19, in __getitem__ > def __getitem__(self, key): return self.data[key] > KeyError: 'HOME' > change line 180 in site.py to: home = os.environ.get('HOME') It's been fixed since the 2.3b2 release From kaweh at knuddl.org Thu Jun 12 13:15:56 2003 From: kaweh at knuddl.org (Kaweh Kazemi) Date: Thu Jun 12 06:16:30 2003 Subject: [Pythonmac-SIG] Import problem (MacPython-2.3b2 OSX) In-Reply-To: Message-ID: Yes, that solved all problems. Thanks much. > change line 180 in site.py to: > > home = os.environ.get('HOME') > > It's been fixed since the 2.3b2 release From Jack.Jansen at cwi.nl Thu Jun 12 22:45:20 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Thu Jun 12 15:45:29 2003 Subject: [Pythonmac-SIG] Problem using buildapp In-Reply-To: <5.1.0.14.0.20030611170607.00afd378@pophost.aber.ac.uk> Message-ID: <668C3B77-9D0E-11D7-9BA2-000A27B19B96@cwi.nl> On woensdag, jun 11, 2003, at 18:11 Europe/Amsterdam, Leighton Pritchard wrote: > import struct > ImportError: Failure linking new module: : dyld: > /Users/hywel/Desktop/PyPCRSimGUI.app/Contents/MacOS/PyPCRSimGUI > Undefined symbols: > /Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/struct.so > undefined reference to __PyFloat_Pack4 expected to be defined in Python > /Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/struct.so > undefined reference to __PyFloat_Pack8 expected to be defined in Python > /Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/struct.so > undefined reference to __PyFloat_Unpack4 expected This looks like a mismatch between Python versions: structmodule.so was linked against one version of the Python framework but the version installed on the machine is a different one. You may want to look at "man dyld": there's a lot of environment variables you can turn on to make the dynamic loader more verbose. Then you could compare the output on your machine and the other machine to see if there are obvious mismatches. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From dan at grassi.org Fri Jun 13 01:25:34 2003 From: dan at grassi.org (Dan Grassi) Date: Fri Jun 13 00:26:11 2003 Subject: [Pythonmac-SIG] PyObjC - custom view In-Reply-To: <112D4AE8-7FA6-11D7-BFB4-0030655234CE@cwi.nl> Message-ID: <13B3633E-9D57-11D7-ACF6-000A95930510@grassi.org> I am trying to use PyObjC to create an application that needs a custom view. In ObjC in PB I create a class inheriting from NSView and a CustomView in a window specifing the class as the custom class and create a class of the same name in ObjC also inheriting from NSView. But I can't figure out how to create the class in PyObjC and get it to be used by the CustomView. Is this currently possible and if so could I please get a hint. TIA, Dan From oussoren at cistron.nl Fri Jun 13 08:49:02 2003 From: oussoren at cistron.nl (Ronald Oussoren) Date: Fri Jun 13 01:49:15 2003 Subject: [Pythonmac-SIG] PyObjC - custom view In-Reply-To: <13B3633E-9D57-11D7-ACF6-000A95930510@grassi.org> Message-ID: On Friday, Jun 13, 2003, at 06:25 Europe/Amsterdam, Dan Grassi wrote: > I am trying to use PyObjC to create an application that needs a custom > view. In ObjC in PB I create a class inheriting from NSView and a > CustomView in a window specifing the class as the custom class and > create a class of the same name in ObjC also inheriting from NSView. > But I can't figure out how to create the class in PyObjC and get it to > be used by the CustomView. Just define the class as a subclass of NSView and make sure that the module containing the class is loaded before you load the NIB. When you create a class in IB you don't really create the class, you just tell IB that you will define a class in your own code. The DotView example that was recently added to the PyObjC CVS is an example on how to do this. Ronald From lep at aber.ac.uk Fri Jun 13 16:13:02 2003 From: lep at aber.ac.uk (Leighton Pritchard) Date: Fri Jun 13 10:13:38 2003 Subject: [Pythonmac-SIG] Problem using buildapp In-Reply-To: <668C3B77-9D0E-11D7-9BA2-000A27B19B96@cwi.nl> References: <5.1.0.14.0.20030611170607.00afd378@pophost.aber.ac.uk> Message-ID: <5.1.0.14.0.20030613090258.0419d8b8@pophost.aber.ac.uk> At 21:45 12/06/2003 +0200, you wrote: >On woensdag, jun 11, 2003, at 18:11 Europe/Amsterdam, Leighton Pritchard >wrote: >>import struct >>ImportError: Failure linking new module: : dyld: >>/Users/hywel/Desktop/PyPCRSimGUI.app/Contents/MacOS/PyPCRSimGUI >>Undefined symbols: >>/Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/struct.so >>undefined reference to __PyFloat_Pack4 expected to be defined in Python >>/Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/struct.so >>undefined reference to __PyFloat_Pack8 expected to be defined in Python >>/Users/hywel/Desktop/PyPCRSimGUI.app/Contents/Resources/struct.so >>undefined reference to __PyFloat_Unpack4 expected > >This looks like a mismatch between Python versions: structmodule.so was >linked against one version of the Python framework but the version >installed on the machine is a different one. > >You may want to look at "man dyld": there's a lot of environment variables >you can turn on to make the dynamic loader more verbose. Then you could >compare the output on your machine and the other machine to see if there >are obvious mismatches. Thanks, Jack. Just to keep you up to date: Along the way we also came across a problem on the other machine with the user's path pointing to first the Fink-installed Python and then Apple's original out-of-the-box version - preventing local compilation of the source. Eventually we managed a build on that machine which worked OK, which in the short term was all we needed. *That* compiled app was, of course, not able to run on my machine :( We tried transferring struct.so between packages, but this did not help (both builds then failed). My colleague then installed a more recent beta of MacPython, and my build then worked with no issues. Sadly this happened before I could check the dynamic loader output on his machine... so we may never know what happened :( What is the issue with the clash between frameworks? I was hoping that buildapp with the standalone option set would allow the application to work on any machine regardless of its Python 'installation state'. Is this not the case? Dr Leighton Pritchard AMRSC T44, Cledwyn Building, Institute of Biological Sciences University of Wales, Aberystwyth, UK, SY23 3DD lep@aber.ac.uk (01970) 622353 PGP key 47B4A485: http://www.keyserver.net http://pgp.mit.edu/ From Jack.Jansen at cwi.nl Fri Jun 13 18:05:14 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Fri Jun 13 11:03:29 2003 Subject: [Pythonmac-SIG] Problem using buildapp In-Reply-To: <5.1.0.14.0.20030613090258.0419d8b8@pophost.aber.ac.uk> Message-ID: <6FD81AFA-9DB0-11D7-8831-0030655234CE@cwi.nl> On Friday, Jun 13, 2003, at 16:13 Europe/Amsterdam, Leighton Pritchard wrote: > Along the way we also came across a problem on the other machine with > the user's path pointing to first the Fink-installed Python and then > Apple's original out-of-the-box version - preventing local compilation > of the source. Eventually we managed a build on that machine which > worked OK, which in the short term was all we needed. *That* compiled > app was, of course, not able to run on my machine :( > > We tried transferring struct.so between packages, but this did not > help (both builds then failed). My colleague then installed a more > recent beta of MacPython, and my build then worked with no issues. > Sadly this happened before I could check the dynamic loader output on > his machine... so we may never know what happened :( > > What is the issue with the clash between frameworks? I was hoping that > buildapp with the standalone option set would allow the application to > work on any machine regardless of its Python 'installation state'. Is > this not the case? Don't worry: your problem was not related to framework- versus standard-python, it was related to fink-python versus standard-python. If you take good care to *always* use the correct python to build modules everything should work fine. In other words, even if you have fink Python first in your path, if you build all extension modules you need with the line % /usr/bin/python setup.py build then there should be no problem at all. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From Jack.Jansen at cwi.nl Fri Jun 13 18:20:15 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Fri Jun 13 11:18:29 2003 Subject: [Pythonmac-SIG] Python OSA support is getting better! Message-ID: <88FE435E-9DB2-11D7-8831-0030655234CE@cwi.nl> Folks, if you use Python from CVS there's a change in the OSA stuff that should make life more easy. You can now say f = Finder.Finder() f.get(f.window(0).name) where you used to have to say f = Finder.Finder() f.get(Finder.window(0).name) For properties of the "application" AppleScript class this is even more important: you used to have to say f.get(Finder.Finder_Suite._Prop_name()) which isn't exactly obvious:-) but now f.get(f.name) suffices. But, maybe even more exciting, I think we are now almost at the stage of being able to do f.name.get() Before I hack this in I'd like some feedback, though. Here's what I plan to do: the aetypes.ObjectSpecifier class gets a magic __getattr__ method, which will be invoked when you try to resolve "f.name.get". What __getattr__ does is go up the object chain until it finds a subclass of TalkTo (in our example this will be the "f" object). There it does a lookup of the name wanted ("get"). If it finds this and this thing is callable we create a temporary object that has a reference to the "get" method and to self (f.name). This temporary object has a __call__ method that calls the get method with the object as the first argument and passing the keyword arguments it got too. The one reason I'm slightly reluctant to implement this is that it can give rise to very strange error messages. There is no way our __getattr__ can find out whether the method it found makes sense on the given object, i.e. it will happily allow f.window(0).name.restart() with the same meaning as the clearly silly f.restart(f.window(0).name) Personally I think that the added pythonic paradigm is worth this potential confusion but I'd like to hear your opinions. If we get this in place there is one more thing I'd like to do, and that is allow you to say f.window[0].name in stead of f.window(0).name. But I think that will have to wait until after 2.3, because I will first need to understand OSA iterators, so things like for w in f.windows: print w.name will work too. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From Dan at Grassi.org Fri Jun 13 13:08:31 2003 From: Dan at Grassi.org (Dan Grassi) Date: Fri Jun 13 12:08:36 2003 Subject: [Pythonmac-SIG] PyObjC - custom view In-Reply-To: Message-ID: <47110A12-9DB9-11D7-A38A-000393897DEA@Grassi.org> Ronald , On Friday, June 13, 2003, at 01:49 AM, Ronald Oussoren wrote: > The DotView example that was recently added to the PyObjC CVS is an > example on how to do this. Can you provide a hint of how to make this example work in Project Builder? What kind of project to create, what files to change/delete? All in all I'm very excited about PyObjC. Great work! Dan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 448 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030613/33cfae71/attachment.bin From oussoren at cistron.nl Fri Jun 13 20:48:12 2003 From: oussoren at cistron.nl (Ronald Oussoren) Date: Fri Jun 13 13:50:41 2003 Subject: [Pythonmac-SIG] PyObjC - custom view In-Reply-To: <47110A12-9DB9-11D7-A38A-000393897DEA@Grassi.org> Message-ID: <339DED6E-9DC7-11D7-BF94-0003931CFE24@cistron.nl> On Friday, Jun 13, 2003, at 18:08 Europe/Amsterdam, Dan Grassi wrote: > Ronald , > > On Friday, June 13, 2003, at 01:49 AM, Ronald Oussoren wrote: > >> The DotView example that was recently added to the PyObjC CVS is an >> example on how to do this. > > Can you provide a hint of how to make this example work in Project > Builder? What kind of project to create, what files to change/delete? Create a new "Cocoa-Python Application" and then: - Copy DotView.py to the new project as __main__,py (replacing an existing file) - Remove MyAppDelegate.py (both from the project and from the filesystem) - Copy English.lproj/MainMenu.nib into th new project (again replacing the existing nib) I think that's all you have to do. Ronald -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 823 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030613/f29cd4d3/attachment.bin From just at letterror.com Fri Jun 13 20:52:27 2003 From: just at letterror.com (Just van Rossum) Date: Fri Jun 13 13:52:43 2003 Subject: [Pythonmac-SIG] PyObjC - custom view In-Reply-To: <47110A12-9DB9-11D7-A38A-000393897DEA@Grassi.org> Message-ID: Dan Grassi wrote: > Can you provide a hint of how to make this example work in Project > Builder? What kind of project to create, what files to change/delete? Look at the project builder templates that come with PyObjC. IMO it's simpler to just use the buildapp.py script. Just From Dan at Grassi.org Fri Jun 13 19:55:51 2003 From: Dan at Grassi.org (Dan Grassi) Date: Fri Jun 13 18:55:57 2003 Subject: [Pythonmac-SIG] PyObjC - custom view In-Reply-To: Message-ID: <2E2DD9DD-9DF2-11D7-804D-000393897DEA@Grassi.org> Yeah, I am considering that. I spend most of every day in PB so I am kind of looking for parity. :-) Ronald's suggestions worked fine--I'm gonna like this. Dan On Friday, June 13, 2003, at 01:52 PM, Just van Rossum wrote: > Look at the project builder templates that come with PyObjC. IMO it's > simpler to just use the buildapp.py script. From english at spiritone.com Sun Jun 15 05:26:42 2003 From: english at spiritone.com (Josh English) Date: Sun Jun 15 00:26:44 2003 Subject: [Pythonmac-SIG] File path problem (long post) Message-ID: <3EEBF573.B5CBCC5D@spiritone.com> The Problem so far. This has to do with translating a bunch of xml files into html. There is a project folder Zaphod:Web (Zaphod is not my boot partition. Marvin is, and Python is installed in Marvin). Inside the Zaphod:Web folder there is a folder called "input", so it's path name is 'Zaphod:Web:input:' and inside this folder I have subfolders containing xml files. Here is the files being read: Zaphod:Web:input:code:pbm:pbmdoc.xml Zaphod:Web:nput:code:webmenu:webmenudd.xml The program reads the file at Zaphod:Web:cms.ini which has to pertinent entries: inpath = input outpath = output Basically, the program reads the files in Zaphod:Web:input and should process each file into HTML and put them in a similar file directory under the Zaphod:Web:output directory (which does exist and is created by the program if needed). The files I am looking to get should have the paths: Zaphod:Web:output:code:pbm:pbmdoc.html Zaphod:Web:output:code:webmenu:webmenudd.html Now here's the sticky bit: In the Python Interactive window I can get the following: >>>os.path.join('Zaphod:Wev:xml:code:pbm:pbmdoc.xml','Zaphod:Web:output:code:pbm:pbmdoc.html') 'Zaphod:Web:output:code:pbm:pbmdoc.html' >>>os.path.join('Zaphod:Web:output:code:pbm,pbmdoc.html','Zaphod:Web:input:code:pbm:pbmdoc.xml') 'Zaphod:Web:input:code:pbm:pbmdoc.xml' Typo's notwithstanding, the first example is what I want to get. Now in my code the class object doing all of the work is called SiteUpdater, initialized as mycms = SiteUpdater(1,1) The parameters simply tell the program to process every file in the input directory (and subdirectories) and write a report to the standard output. Here are the four lines of code where I think my problem lies: print file,self.cms.outpath opath = os.path.join(file,self.cms.outpath) opath = os.path.splitext(opath)[0]+'.html' print "Updating",os.path.join(self.cms.inpath,file),"to",opath self.UpdatePage(os.path.join(self.cms.inpath,file),opath) Here is what I get on my report: Zaphod:Web:input:code:pbm:pbmdoc.xml Zaphod:Web:output Updating Zaphod:Web:input:code:pbm:pbmdoc.xml to Zaphod:Web:input:code:pbm:pbmdoc.html Zaphod:Web:input:code:webmenu:webmenudd.xml Zaphod:Web:output Updating Zaphod:Web:input:code:webmenu:webmenudd.xml to Zaphod:Web:input:code:webmenu:webmenudd.html SiteUpdater Report -- Processing Zaphod:Web:input:code:pbm:pbmdoc.xml... ...Done. Processing Zaphod:Web:input:code:webmenu:webmenudd.xml... ...Done. What's happening is that the html files are being written to the same subdirectory as the xml input file sits. As far as I can see I should get the same behaviour that I got in the Python interactive session. When I reverse the second line of the sample code to: opath = os.path.join(self.cms.outpath,file) My report comes out to: Zaphod:Web:input:code:pbm:pbmdoc.xml Zaphod:Web:output Updating Zaphod:Web:input:code:pbm:pbmdoc.xml to Zaphod:Web:input:code:pbm:pbmdoc.html Zaphod:Web:input:code:webmenu:webmenudd.xml Zaphod:Web:output Updating Zaphod:Web:input:code:webmenu:webmenudd.xml to Zaphod:Web:input:code:webmenu:webmenudd.html SiteUpdater Report -- Processing Zaphod:Web:input:code:pbm:pbmdoc.xml... ...Done. Processing Zaphod:Web:input:code:webmenu:webmenudd.xml... ...Done. Hey, Now it's exhibiting the exact same behaviour as before. Earlier I was getting every file to be output to Zaphod:Web:output.html, overwriting the output file for every input file generated. I'm obviously being blind to this problem. I'm running Python 2.2.2 on Mac OS 9.1, which is the latest I have been able to get to run successfully on this machine (all sorts of problems with 9.2 for some reason). Can anyone spot what's going on here? Thanks, Josh English english@spiritone.com From king at dircon.co.uk Sun Jun 15 11:20:51 2003 From: king at dircon.co.uk (Nigel King) Date: Sun Jun 15 05:21:44 2003 Subject: [Pythonmac-SIG] MySQLdb.connect Message-ID: Hi Group, I have Mac OSX 10.2.6, mysql 4.0.13-standard, Python 2.2 and 2.3a2, and MySQLdb MySQL-python-0.9.2. I can't connect to the database running on my computer. Below is the result of the interactive session. The malloc error sometimes only appear after I have pressed return but I always get the TypeError. A little investigation shows that self.converter is None but I can't tell why. Perhaps it is related to the malloc problem. Does anyone have any idea what might have caused it? TIA -- Nigel [Nigel-Kings-G4-Lap:~] nigelk% python Python 2.2 (#1, 07/14/02, 23:25:09) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. Module readline not available. >>> import MySQLdb >>> db=MySQLdb.connect(db="test") Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.2/site-packages/MySQLdb/__init__.py", line 63, in Connect return apply(Connection, args, kwargs) *** malloc[916]: Deallocation of a pointer not malloced: 0x16ae98; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug File "/usr/lib/python2.2/site-packages/MySQLdb/connections.py", line 116, in __init__ self.converter[types.StringType] = self.string_literal *** malloc[916]: Deallocation of a pointer not malloced: 0x16bea8; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug TypeError: object does not support item assignment >>> From Jack.Jansen at cwi.nl Mon Jun 16 11:44:28 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Mon Jun 16 04:42:46 2003 Subject: [Pythonmac-SIG] File path problem (long post) In-Reply-To: <3EEBF573.B5CBCC5D@spiritone.com> Message-ID: You are actually getting the same behavior interactively and non-interactively, it is just not what you expect, apparently. os.path.join(a, b) has logic somewhat similar to: if isabs(b): return b else: return a + ':' + b The details are more involved (see :Lib:macpath.py for the implementation), but basically if b is already absolute it is returned as-is. What you need to do is something like # Strip off the inpath part of the pathname assert(file[:len(self.cms.inpath)] == self.cms.inpath) partial_path = file[len(self.cms.inpath):] # Make sure its relative if partial_path[0] != ':': partial_path = ':' + partial_path # make corresponding output path opath = os.path.join(self.cms.outpath, partial_path) # Give it the correct extension opath = os.path.splitext(opath)[0]+'.html' On Sunday, Jun 15, 2003, at 06:26 Europe/Amsterdam, Josh English wrote: > The Problem so far. > > This has to do with translating a bunch of xml files into html. There > is > a project folder Zaphod:Web (Zaphod is not my boot partition. Marvin > is, > and Python is installed in Marvin). Inside the Zaphod:Web folder there > is a folder called "input", so it's path name is 'Zaphod:Web:input:' > and > inside this folder I have subfolders containing xml files. Here is the > files being read: > > Zaphod:Web:input:code:pbm:pbmdoc.xml > Zaphod:Web:nput:code:webmenu:webmenudd.xml > > The program reads the file at Zaphod:Web:cms.ini which has to > pertinent entries: > inpath = input > outpath = output > > Basically, the program reads the files in Zaphod:Web:input and should > process each file into HTML and put them in a similar file directory > under the Zaphod:Web:output directory (which does exist and is created > by the program if needed). The files I am looking to get should have > the paths: > > Zaphod:Web:output:code:pbm:pbmdoc.html > Zaphod:Web:output:code:webmenu:webmenudd.html > > Now here's the sticky bit: In the Python Interactive window I can get > the following: > >>>> os.path.join('Zaphod:Wev:xml:code:pbm:pbmdoc.xml','Zaphod:Web:output >>>> :code:pbm:pbmdoc.html') > 'Zaphod:Web:output:code:pbm:pbmdoc.html' >>>> os.path.join('Zaphod:Web:output:code:pbm,pbmdoc.html','Zaphod:Web:in >>>> put:code:pbm:pbmdoc.xml') > 'Zaphod:Web:input:code:pbm:pbmdoc.xml' > > Typo's notwithstanding, the first example is what I want to get. > > Now in my code the class object doing all of the work is called > SiteUpdater, initialized as > > mycms = SiteUpdater(1,1) > The parameters simply tell the program to process every file in the > input directory (and subdirectories) and write a report to the standard > output. Here are the four lines of code where I think my problem lies: > > print file,self.cms.outpath > opath = os.path.join(file,self.cms.outpath) > opath = os.path.splitext(opath)[0]+'.html' > print "Updating",os.path.join(self.cms.inpath,file),"to",opath > self.UpdatePage(os.path.join(self.cms.inpath,file),opath) > > Here is what I get on my report: > > Zaphod:Web:input:code:pbm:pbmdoc.xml Zaphod:Web:output > Updating Zaphod:Web:input:code:pbm:pbmdoc.xml to > Zaphod:Web:input:code:pbm:pbmdoc.html > Zaphod:Web:input:code:webmenu:webmenudd.xml Zaphod:Web:output > Updating Zaphod:Web:input:code:webmenu:webmenudd.xml to > Zaphod:Web:input:code:webmenu:webmenudd.html > SiteUpdater Report -- Processing > Zaphod:Web:input:code:pbm:pbmdoc.xml... > ...Done. > Processing Zaphod:Web:input:code:webmenu:webmenudd.xml... > ...Done. > > What's happening is that the html files are being written to the same > subdirectory as the xml input file sits. As far as I can see I should > get the same behaviour that I got in the Python interactive session. > When I reverse the second line of the sample code to: > > opath = os.path.join(self.cms.outpath,file) > > My report comes out to: > > Zaphod:Web:input:code:pbm:pbmdoc.xml Zaphod:Web:output > Updating Zaphod:Web:input:code:pbm:pbmdoc.xml to > Zaphod:Web:input:code:pbm:pbmdoc.html > Zaphod:Web:input:code:webmenu:webmenudd.xml Zaphod:Web:output > Updating Zaphod:Web:input:code:webmenu:webmenudd.xml to > Zaphod:Web:input:code:webmenu:webmenudd.html > SiteUpdater Report -- Processing > Zaphod:Web:input:code:pbm:pbmdoc.xml... > ...Done. > Processing Zaphod:Web:input:code:webmenu:webmenudd.xml... > ...Done. > > Hey, Now it's exhibiting the exact same behaviour as before. Earlier I > was getting every file to be output to Zaphod:Web:output.html, > overwriting the output file for every input file generated. > > I'm obviously being blind to this problem. I'm running Python 2.2.2 on > Mac OS 9.1, which is the latest I have been able to get to run > successfully on this machine (all sorts of problems with 9.2 for some > reason). > > Can anyone spot what's going on here? > > Thanks, > Josh English > english@spiritone.com > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From chris at fisher.forestry.uga.edu Mon Jun 16 13:14:08 2003 From: chris at fisher.forestry.uga.edu (Chris Fonnesbeck) Date: Mon Jun 16 12:14:14 2003 Subject: [Pythonmac-SIG] 2 questions Message-ID: <8F434F8B-A015-11D7-868C-000A956FDAC0@fisher.forestry.uga.edu> I'm wondering if anyone has gotten the following to work on macpython2.3: 1. scipy (particularly the gplt functions that use gnuplot) 2. jython (not the prevalent version that appears to only work in mac classic) Any pointers to either of these would be most helpful. My scipy installation cannot seem to find gnuplot even though it is installed. TIA, cjf From eric.nieuwland at xs4all.nl Mon Jun 16 22:27:47 2003 From: eric.nieuwland at xs4all.nl (Eric Nieuwland) Date: Mon Jun 16 15:27:51 2003 Subject: [Pythonmac-SIG] File path problem (long post) In-Reply-To: Message-ID: <9CAB5570-A030-11D7-9AD4-000393894CEA@xs4all.nl> Just to be picky on conditions I would like to modify Jack's suggestion a bit. I ran into this myself a couple of times and it can be quite tricky to figure it out. After checking that the initial part of the path matches the rest *should be* relative, otherwise the match was a false positive. > # Strip off the inpath part of the pathname > assert(file[:len(self.cms.inpath)] == self.cms.inpath) > partial_path = file[len(self.cms.inpath):] # Assure its relative assert(partial_path[0] == ':') > # make corresponding output path > opath = os.path.join(self.cms.outpath, partial_path) > # Give it the correct extension > opath = os.path.splitext(opath)[0]+'.html' Hmmm, makes me wonder if os.path.mkpath(protoype-path,dir-to-replace,dir-to-substitute) would stand a change to become a standard facility. --eric From chris at fisher.forestry.uga.edu Mon Jun 16 20:36:34 2003 From: chris at fisher.forestry.uga.edu (Chris Fonnesbeck) Date: Mon Jun 16 19:36:42 2003 Subject: [Pythonmac-SIG] compiling gnuplot Message-ID: <5DF5658A-A053-11D7-9D1D-000A956FDAC0@fisher.forestry.uga.edu> Well, in an effort to get gnuplot working seamlessly with python (scipy), I downloaded the cvs version, and attempted a compile. However, despite a clean configuration, I get the following error. Anyone else had the same result? plot3d.c:1031: only 5 args to macro 'STORE_WITH_LOG_AND_UPDATE_RANGE' (6 expected) cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make[3]: *** [plot3d.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Thanks, CJF From Jack.Jansen at cwi.nl Tue Jun 17 12:53:30 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Tue Jun 17 05:51:49 2003 Subject: [Pythonmac-SIG] File path problem (long post) In-Reply-To: <9CAB5570-A030-11D7-9AD4-000393894CEA@xs4all.nl> Message-ID: <8CF63CD0-A0A9-11D7-A0E8-0030655234CE@cwi.nl> On Monday, Jun 16, 2003, at 21:27 Europe/Amsterdam, Eric Nieuwland wrote: > Just to be picky on conditions I would like to modify Jack's > suggestion a bit. I ran into this myself a couple of times and it can > be quite tricky to figure it out. > > After checking that the initial part of the path matches the rest > *should be* relative, otherwise the match was a false positive. Close, but no cigar. The source folder path self.cms.inpath could end in a colon. Sometimes it must end in a colon, if it happens to be a toplevel disk. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From leighton at widdowquinn.fsnet.co.uk Tue Jun 17 11:54:34 2003 From: leighton at widdowquinn.fsnet.co.uk (Leighton Pritchard) Date: Tue Jun 17 06:41:41 2003 Subject: Fwd: [Pythonmac-SIG] 2 questions Message-ID: Begin forwarded message: > From: Leighton Pritchard > Date: Mon Jun 16, 2003 11:41:34 PM Europe/London > To: Chris Fonnesbeck > Subject: Re: [Pythonmac-SIG] 2 questions > > > On Monday, June 16, 2003, at 05:14 PM, Chris Fonnesbeck wrote: > >> I'm wondering if anyone has gotten the following to work on >> macpython2.3: >> >> 1. scipy (particularly the gplt functions that use gnuplot) > > Yes, I have - but only recently. I downloaded the source > (SciPy-0.2.0_alpha_200.4161_src.tar), uncompressed and used sudo > python setup.py install as usual. Actually, I've remembered not 'as usual' - I has to add '/sw/lib' and '/sw/include' to default_lib_dirs = ['/usr/local/lib', '/opt/lib', '/usr/lib'] default_include_dirs = ['/usr/local/include', '/opt/include', '/usr/include'] in scipy_core/scipy_distutils/system_info.py in the source directory. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1131 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030617/5ee42a23/attachment.bin From king at dircon.co.uk Wed Jun 18 13:20:12 2003 From: king at dircon.co.uk (Nigel King) Date: Wed Jun 18 07:20:13 2003 Subject: [Pythonmac-SIG] MySQLdb.connect In-Reply-To: Message-ID: > My first guess: you built the Python MySQLdb extension with another > Python that you're using to run it. You're running with Apple's Python > 2.2, maybe built it with Python 2.3a2? or with fink-Python from /sw/bin? I very carefully (ie got my son who is a Unix software Engineer) compiled under each of the versions and ran the MySQLdb query under each. So I do not think this is the problem. It seems from the lack of interest that nobody else is having the same problem. Please somebody confirm. TIA -- Nigel From andrep at ntlworld.com Thu Jun 19 01:26:30 2003 From: andrep at ntlworld.com (Andre Posumentov) Date: Wed Jun 18 19:26:36 2003 Subject: [Pythonmac-SIG] Re: MySQLdb.connect In-Reply-To: Message-ID: <4ABBDBC4-A1E4-11D7-BA47-000393912B32@ntlworld.com> Hi, Just to confirm that I've also stumbled over Nigel's problem: - Using MySQLdb I get: >>> import MySQLdb >>> db = MySQLdb.connect(db='test') Traceback (most recent call last): File "", line 1, in ? File "MySQLdb/__init__.py", line 63, in Connect return apply(Connection, args, kwargs) File "MySQLdb/connections.py", line 116, in __init__ self.converter[types.StringType] = self.string_literal TypeError: object does not support item assignment >>> *** malloc[836]: Deallocation of a pointer not malloced: 0xf0878; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug >>> - Using _mysql I get: >>> import _mysql >>> db=_mysql.connect() *** malloc[805]: error for object 0x3cdc18: Incorrect checksum for freed object - object was probably modified after being freed; break at szone_error In both cases, the interpreter then dies, with a seg fault. This, using Python 2.2.1, the MySQL 4.0.13 package install, and MySQL-python-0.9.2 Same errors after re-compiling with Python 2.3b1, for what it's worth. More later if I can unearth any useful insights. cheers, Andre P > > 1. MySQLdb.connect (Nigel King) > > From: Nigel King > Date: Wed Jun 18, 2003 12:20:12 pm Europe/London > To: > Subject: [Pythonmac-SIG] MySQLdb.connect > > > >> My first guess: you built the Python MySQLdb extension with another >> Python that you're using to run it. You're running with Apple's Python >> 2.2, maybe built it with Python 2.3a2? or with fink-Python from >> /sw/bin? > > I very carefully (ie got my son who is a Unix software Engineer) > compiled > under each of the versions and ran the MySQLdb query under each. So I > do not > think this is the problem. > > It seems from the lack of interest that nobody else is having the same > problem. Please somebody confirm. > > TIA > -- > Nigel From andrep at ntlworld.com Thu Jun 19 03:29:19 2003 From: andrep at ntlworld.com (Andre Posumentov) Date: Wed Jun 18 21:29:24 2003 Subject: [Pythonmac-SIG] Re: MySQLdb.connect Message-ID: <72D9493C-A1F5-11D7-BA47-000393912B32@ntlworld.com> Hi again, The cause of my problem was out of date header files. The 4.0.13 MySQL package installer puts everything into: /usr/local/mysql/include /usr/local/mysql/lib ...etc.. Check that you don't have conflicting headers from earlier MySQL installs in, say, /usr/include/mysql Setup.py checks both directories, but in the wrong order to save the careless from tripping over their own shoelaces.. Cheers, Andre P > On Thursday, June 19, 2003, at 12:26 am, Andre Posumentov wrote: > >> Hi, >> >> Just to confirm that I've also stumbled over Nigel's problem: >> >> - Using MySQLdb I get: >> >> >>> import MySQLdb >> >>> db = MySQLdb.connect(db='test') >> Traceback (most recent call last): >> File "", line 1, in ? >> File "MySQLdb/__init__.py", line 63, in Connect >> return apply(Connection, args, kwargs) >> File "MySQLdb/connections.py", line 116, in __init__ >> self.converter[types.StringType] = self.string_literal >> TypeError: object does not support item assignment >> >>> >> *** malloc[836]: Deallocation of a pointer not malloced: 0xf0878; >> This could be a double free(), or free() called with the middle of an >> allocated block; Try setting environment variable MallocHelp to see >> tools to help debug >> >>> >> >> - Using _mysql I get: >> >> >>> import _mysql >> >>> db=_mysql.connect() >> *** malloc[805]: error for object 0x3cdc18: Incorrect checksum for >> freed object - object was probably modified after being freed; break >> at szone_error >> >> In both cases, the interpreter then dies, with a seg fault. >> >> This, using Python 2.2.1, the MySQL 4.0.13 package install, and >> MySQL-python-0.9.2 >> Same errors after re-compiling with Python 2.3b1, for what it's worth. >> >> More later if I can unearth any useful insights. >> >> cheers, >> Andre P >> >> >>> >>> 1. MySQLdb.connect (Nigel King) >>> >>> From: Nigel King >>> Date: Wed Jun 18, 2003 12:20:12 pm Europe/London >>> To: >>> Subject: [Pythonmac-SIG] MySQLdb.connect >>> >>> >>> >>>> My first guess: you built the Python MySQLdb extension with another >>>> Python that you're using to run it. You're running with Apple's >>>> Python >>>> 2.2, maybe built it with Python 2.3a2? or with fink-Python from >>>> /sw/bin? >>> >>> I very carefully (ie got my son who is a Unix software Engineer) >>> compiled >>> under each of the versions and ran the MySQLdb query under each. So >>> I do not >>> think this is the problem. >>> >>> It seems from the lack of interest that nobody else is having the >>> same >>> problem. Please somebody confirm. >>> >>> TIA >>> -- >>> Nigel >> > From dan at grassi.org Fri Jun 20 01:14:32 2003 From: dan at grassi.org (Dan Grassi) Date: Fri Jun 20 00:15:07 2003 Subject: [Pythonmac-SIG] PyObjC - sample code project Message-ID: Hi, I put together a sample PyObjC application with a MVC approach. It might be a useful example since I could not find one close to this. It is PB centric for those who would like to go this route. The URL is: http://homepage.mac.com/dgrassi/.cv/dgrassi/Public/FieldGraph.dmg- link.dmg It calculates the field pattern and RMS field of an antenna array with up to three elements. I am very impressed and will get a lot of use from PyObjC -- thanks! Dan PS Is anyone else going to WWDC this year and would getting together be interesting? From just at letterror.com Fri Jun 20 10:56:45 2003 From: just at letterror.com (Just van Rossum) Date: Fri Jun 20 03:57:07 2003 Subject: [Pythonmac-SIG] PyObjC - sample code project In-Reply-To: Message-ID: Dan Grassi wrote: > I put together a sample PyObjC application with a MVC approach. It > might be a useful example since I could not find one close to this. > It is PB centric for those who would like to go this route. The URL > is: > > http://homepage.mac.com/dgrassi/.cv/dgrassi/Public/FieldGraph.dmg- > link.dmg > > It calculates the field pattern and RMS field of an antenna array > with up to three elements. Very nice demo, although I have no clue what an RMS field is... > I am very impressed and will get a lot of use from PyObjC -- thanks! > > Dan > > > PS Is anyone else going to WWDC this year and would getting together > be interesting? For those who are _not_ going: next week is EuroPython (www.europython.org), and there'll be plenty of Mac people around (including Jack, Our Leader). Just From tal at houseind.com Fri Jun 20 10:14:54 2003 From: tal at houseind.com (Tal Leming) Date: Fri Jun 20 09:14:58 2003 Subject: [Pythonmac-SIG] BuildApplication Message-ID: <2EF58568-A321-11D7-8119-000393905A7A@houseind.com> Hello, I have a small tool that I've written that I would like to compile as a standalone application. In the past I have used the IDE "Save as applet" to make applets but this particular thing needs to run on OSX machines that do not have Python. I'm probably overlooking something, but I can't find the "BuildApplication" applet in 2.3b1 OSX. Is it still possible to build an application like that? If so, is there any documentation for doing this in 2.3b1 OSX? Any insights would be greatly appreciated. Thanks, Tal From just at letterror.com Fri Jun 20 17:16:22 2003 From: just at letterror.com (Just van Rossum) Date: Fri Jun 20 10:16:29 2003 Subject: [Pythonmac-SIG] BuildApplication In-Reply-To: <2EF58568-A321-11D7-8119-000393905A7A@houseind.com> Message-ID: Tal Leming wrote: > I have a small tool that I've written that I would like to compile as > a standalone application. In the past I have used the IDE "Save as > applet" to make applets but this particular thing needs to run on OSX > machines that do not have Python. > > I'm probably overlooking something, but I can't find the > "BuildApplication" applet in 2.3b1 OSX. Is it still possible to build > an application like that? If so, is there any documentation for doing > this in 2.3b1 OSX? > > Any insights would be greatly appreciated. The short answer is "yes, no, almost". There is no BuildApplication applet shipping with Python.framework (yet), but the functionality is mostly there (in the form of bundlebuilder.py), except it's missing one crucial feature: support for Python.framework... (I.o.w. it does work for a non-framework build.) A couple of things you can do: 1) Build Python from the source (2.3b1 or CVS). 2) Use OS-9 MacPython (it's fully Carbon aware, and ships with the "old" BuildApplication) 3) Wait until I added support for Python.framework to bundlebuilder.py (this should be fairly soon, at least before the next beta). You can try to prod me to get 3) done sooner... Just From Jack.Jansen at cwi.nl Fri Jun 20 18:19:05 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Fri Jun 20 11:17:16 2003 Subject: [Pythonmac-SIG] BuildApplication In-Reply-To: Message-ID: <881B85BB-A332-11D7-B66E-0030655234CE@cwi.nl> On Friday, Jun 20, 2003, at 16:16 Europe/Amsterdam, Just van Rossum wrote: > 3) Wait until I added support for Python.framework to bundlebuilder.py > (this should be fairly soon, at least before the next beta). > > You can try to prod me to get 3) done sooner... Prod, Prod... :-) -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From just at letterror.com Fri Jun 20 18:34:23 2003 From: just at letterror.com (Just van Rossum) Date: Fri Jun 20 11:34:31 2003 Subject: [Pythonmac-SIG] BuildApplication In-Reply-To: <881B85BB-A332-11D7-B66E-0030655234CE@cwi.nl> Message-ID: Jack Jansen wrote: > Prod, Prod... :-) Working on it... Need some help, though. I've attached a patch to bundlebuilder that I thought should suffice to get it going, but it doesn't. I built an arbitrary standalone app with this new version, and then renamed the original Python.framework (so as to make sure the Python.framework from the app bundle is used, and not the installed one). Now when I launch the built app, it crashes: Exception: EXC_BREAKPOINT (0x0006) Code[0]: 0x00000001Code[1]: 0x8fe01280 Thread 0 Crashed: #0 0x8fe01280 in halt #1 0x8fe0329c in load_library_image #2 0x8fe06134 in load_images_libraries #3 0x8fe026e8 in load_executable_image #4 0x8fe01410 in _dyld_init I have no idea what this means... As you can see in the patch, I only copy a subset of Python.framework; could it be I'm missing something crucial? Btw. the app runs fine if I don't rename the original Python.framework, but this makes me wonder: how do we *ensure* that the private copy is used? I don't want it to even look for /Library/Frameworks/Python.framework if it contains its own copy. Any wisdom? Just -------------- next part -------------- A non-text attachment was scrubbed... Name: bundlebuilder.patch Type: application/octet-stream Size: 1756 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030620/5055e7ed/bundlebuilder.obj From just at letterror.com Fri Jun 20 22:04:05 2003 From: just at letterror.com (Just van Rossum) Date: Fri Jun 20 15:04:25 2003 Subject: [Pythonmac-SIG] BuildApplication In-Reply-To: Message-ID: Ok, I think I've got embedding (a subset of) Python.framework inside app bundles working. In the patch I posted I was naive: I just copied the top level items, whereas the things that really matter are the items the top level items *link* to, ie. I needed to make sure the embedded framework actually contains a Versions/2.3 subdirectory. This works, even if I don't create links at the top level. Does anyone happen to know if it's bad for a framework to *only* contain Versions/2.3/*? Just From bbum at mac.com Fri Jun 20 11:31:24 2003 From: bbum at mac.com (bbum@mac.com) Date: Fri Jun 20 15:45:47 2003 Subject: [Pythonmac-SIG] WWDC In-Reply-To: Message-ID: <043CB926-A345-11D7-B327-000393877AE4@mac.com> On Friday, Jun 20, 2003, at 09:03 US/Pacific, pythonmac-sig-request@python.org wrote: > PS Is anyone else going to WWDC this year and would getting together > be interesting? I will be at WWDC all week w/a PyObjC equipped laptop in hand. b.bum From Jack.Jansen at cwi.nl Fri Jun 20 22:51:01 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Fri Jun 20 15:51:07 2003 Subject: [Pythonmac-SIG] BuildApplication In-Reply-To: Message-ID: <84F85DBF-A358-11D7-BB75-000A27B19B96@cwi.nl> On vrijdag, jun 20, 2003, at 21:04 Europe/Amsterdam, Just van Rossum wrote: > Ok, I think I've got embedding (a subset of) Python.framework inside > app > bundles working. In the patch I posted I was naive: I just copied the > top level items, whereas the things that really matter are the items > the > top level items *link* to, ie. I needed to make sure the embedded > framework actually contains a Versions/2.3 subdirectory. This works, > even if I don't create links at the top level. Does anyone happen to > know if it's bad for a framework to *only* contain Versions/2.3/*? In this case it isn't. A framework is used in two completely different settings: 1. during link time 2. during run time. The way the versioning works is really so simple it makes you laugh: during link time you link against the toplevel dynamic library (and compile against the toplevel Headers folder), *but* when the linker records the name of the dylib you linked against in your output file it first resolves symlinks. Presto, your binary now refers to the Versions/2.3 pathname. If version 2.4 comes along and it still contains a copy of 2.3 old programs continue to run and new programs will be linked against the new version. The only thing I don't understand is why Apple doesn't actually use the versioning themselves. At the 10.1 to 10.2 transition they broke a lot of software that could have continued working. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Jack.Jansen at cwi.nl Sat Jun 21 00:13:22 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Fri Jun 20 17:13:28 2003 Subject: [Pythonmac-SIG] Need help debugging the installer Message-ID: <05FB3DC6-A364-11D7-BB75-000A27B19B96@cwi.nl> Folks, I need help debugging the MacPython binary installer. I think I have everything setup now so that if you install MacPython on a virgin machine, one that has never seen a Python script in its life, it will show a Python icon on a Python file, and it will start PythonLauncher when you double-click such a file. To test this, however, I need a machine that has never been near Python. Needless to say, I have no such machine:-) If someone here does have access to such a machine please let me know, and I'll send you the installer to test. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From israel at sandlotgames.com Fri Jun 20 16:17:29 2003 From: israel at sandlotgames.com (Israel C. Evans) Date: Fri Jun 20 18:18:04 2003 Subject: [Pythonmac-SIG] Need help debugging the installer In-Reply-To: <05FB3DC6-A364-11D7-BB75-000A27B19B96@cwi.nl> Message-ID: That sounds like a tricky thing to ask of this particular crowd. :) > To test this, however, I need a machine that has never been near > Python. Needless to say, I have no such machine:- ~Israel~ From Jack.Jansen at cwi.nl Sat Jun 21 01:29:57 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Fri Jun 20 18:30:07 2003 Subject: [Pythonmac-SIG] Need help debugging the installer In-Reply-To: Message-ID: On zaterdag, jun 21, 2003, at 00:17 Europe/Amsterdam, Israel C. Evans wrote: > That sounds like a tricky thing to ask of this particular crowd. :) I assume that some people here actually have Loved Ones, and I was counting on some even having non-Pythonic Loved Ones with Macintoshes. Or collegues. Or whatever:-) To put at least some content in this message: I wasn't clear about that but I'm looking for someone to test this on OSX 10.2. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From israel at sandlotgames.com Fri Jun 20 17:54:36 2003 From: israel at sandlotgames.com (Israel C. Evans) Date: Fri Jun 20 19:55:08 2003 Subject: [Pythonmac-SIG] Need help debugging the installer In-Reply-To: Message-ID: <8C202924-A37A-11D7-B1BB-000393A47FF2@sandlotgames.com> * sob *.. I have no Loved Ones.... well, no loved ones with a mac. which is even sadder, I suppose. I feel them on the verge of switching though.. almost there... I think the 970 will do it. just reading about the rumors last night makes me want to go buy a wintel pc just to enjoy the feeling of switching again. On Friday, June 20, 2003, at 03:29 PM, Jack Jansen wrote: > > On zaterdag, jun 21, 2003, at 00:17 Europe/Amsterdam, Israel C. Evans > wrote: > >> That sounds like a tricky thing to ask of this particular crowd. :) > > I assume that some people here actually have Loved Ones, and I was > counting on some even having non-Pythonic Loved Ones with Macintoshes. > Or collegues. Or whatever:-) > > To put at least some content in this message: I wasn't clear about > that but I'm looking for someone to test this on OSX 10.2. > -- > - Jack Jansen > http://www.cwi.nl/~jack - > - If I can't dance I don't want to be part of your revolution -- Emma > Goldman - > > > ~Israel~ From mcgowan at alum.mit.edu Sat Jun 21 18:02:04 2003 From: mcgowan at alum.mit.edu (Martin McGowan) Date: Sat Jun 21 17:40:49 2003 Subject: [Pythonmac-SIG] Mac Python Bug? Decimal representaion in lists Message-ID: <3EF4C7CC.6030005@alum.mit.edu> Jack, I'm an absolute newbie to Python, and on my OS X for 4 months. I am an accomplished programmer, however with roots in AT&T Sys V, Posix Standards. I've attached a brief cut-out from following steps on the python.org tutorial (python.org/doc/tut). I believe we have a bug here: + decimals inserted into a list only have "exact" representations for decimals with "exact" binary fractions: .5, .25, .125, ... .75, .375, .1875, ... ( the bug is that any other decimal, while it may round off correctly at 10 decimals is only "approximate" e.g. the representation of 66.6 [ not the string, but the number ] is 66.5999999999994 ) + this is compensated for by the list operators, (l.delete(66.6) finds the entry and deletes it) + the fact my results are different from those in the tutorial suggest the problem may be unique to the mac. This hasn't proven troublesome yet, however I'm not aware of the possible implications. I've searched comp.lang.python, and the macpython-sig archives, for "bug, list bug, and buglist", but didn't find this mentioned. Is this benign? What can you tell me about where to take this if not? Thanks, -- Marty McGowan III -- MMIII 06 21 -------------- next part -------------- bash-2.05a$ MMIII 06 20 bash-2.05a$ bash-2.05a$ python Python 2.2 (#1, 07/14/02, 23:25:09) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> def fib(n): ... """Print a Fibonacci series up to n.""" . . . >>> cheeseshop('brie') -- Do you have any brie ? -- I'm sorry, we're all out of brie ---------------------------------------- >>> a = [66.6, 333, 333, 1, 1234.5] >>> print a.count(333), a.count(66.6), a.count('x') 2 1 0 >>> a.insert(2, -1) >>> a [66.599999999999994, 333, -1, 333, 1, 1234.5] >>> a.append(333) >>> a [66.599999999999994, 333, -1, 333, 1, 1234.5, 333] >>> a.remove(66.6) >>> a [333, -1, 333, 1, 1234.5, 333] >>> a.append(66.6) >>> a [333, -1, 333, 1, 1234.5, 333, 66.599999999999994] >>> a.count(66.6) 1 . . . >>> a.append(55.5) >>> a [-1, 1, 66.599999999999994, 333, 333, 1234.5, 55.5] >>> a.append(33.3) >>> a [-1, 1, 66.599999999999994, 333, 333, 1234.5, 55.5, 33.299999999999997] >>> a.sort() >>> a.append(0.625) >>> a [0.25, 1.1000000000000001, 2.2000000000000002, 3.2999999999999998, 4.4000000000000004, 5.5, 6.5999999999999996, 7.7000000000000002, 0.625] >>> a = [] >>> a.append(0.125) >>> a.append(0.0675) >>> a.sort() >>> a [0.067500000000000004, 0.125] >>> a.append(0.625) >>> a.append(0.0625) >>> a.append(0.03125) >>> a.append(0.09375) >>> a [0.067500000000000004, 0.125, 0.625, 0.0625, 0.03125, 0.09375] >>> a.remove(.0675) >>> a [0.125, 0.625, 0.0625, 0.03125, 0.09375] >>> From Jack.Jansen at cwi.nl Sun Jun 22 00:53:43 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Sat Jun 21 17:53:52 2003 Subject: [Pythonmac-SIG] Re: Mac Python Bug? Decimal representaion in lists In-Reply-To: <3EF4C7CC.6030005@alum.mit.edu> Message-ID: On zaterdag, jun 21, 2003, at 23:02 Europe/Amsterdam, Martin McGowan wrote: > Jack, > I'm an absolute newbie to Python, and on my OS X > for 4 months. I am an accomplished programmer, however > with roots in AT&T Sys V, Posix Standards. > > I've attached a brief cut-out from following steps > on the python.org tutorial (python.org/doc/tut). I believe > we have a bug here: Martin, these numbers are not decimals (if you mean that in what I'll call the "cobol sense") but floating point numbers. Moreover, they're pretty much transparently implemented with the underlying platform floating point numbers (IEEE in case of MacOS on a PowerPC, and 99% of all other machines nowadays). There's been some work on decimal numbers (also referred to as fixed point), but I'm not familiar with it. So you'll have to use Google or PyPI (see www.python.org for the latter) to find a module that could help you here. > I've searched comp.lang.python, and the macpython-sig > archives, for "bug, list bug, and buglist", but didn't > find this mentioned. It is mentioned somewhere, but unfortunately I can't remember where:-( Ah, found it! The tutorial has a section on it, Appendix B. And if you think you find a genuine bug: www.python.org has a link to the bug database, where you can submit it. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From king at dircon.co.uk Sat Jun 21 21:47:01 2003 From: king at dircon.co.uk (Nigel King) Date: Sun Jun 22 04:34:44 2003 Subject: [Pythonmac-SIG] Re: MySQLdb.connect In-Reply-To: <72D9493C-A1F5-11D7-BA47-000393912B32@ntlworld.com> Message-ID: Andre, Thank you very much this was exactly what was wrong. With a little help from my son I am now up and running! Should this have a bugzilla? -- Nigel > From: Andre Posumentov > > The cause of my problem was out of date header files. > > The 4.0.13 MySQL package installer puts everything into: > > /usr/local/mysql/include > /usr/local/mysql/lib ...etc.. > > Check that you don't have conflicting headers from earlier MySQL > installs in, say, /usr/include/mysql > > Setup.py checks both directories, but in the wrong order to save the > careless from tripping over their own shoelaces.. > > Cheers, > Andre P > >> On Thursday, June 19, 2003, at 12:26 am, Andre Posumentov wrote: >> >>> Hi, >>> >>> Just to confirm that I've also stumbled over Nigel's problem: >>> >>> - Using MySQLdb I get: >>> >>>>>> import MySQLdb >>>>>> db = MySQLdb.connect(db='test') >>> Traceback (most recent call last): >>> File "", line 1, in ? >>> File "MySQLdb/__init__.py", line 63, in Connect >>> return apply(Connection, args, kwargs) >>> File "MySQLdb/connections.py", line 116, in __init__ >>> self.converter[types.StringType] = self.string_literal >>> TypeError: object does not support item assignment >>>>>> >>> *** malloc[836]: Deallocation of a pointer not malloced: 0xf0878; >>> This could be a double free(), or free() called with the middle of an >>> allocated block; Try setting environment variable MallocHelp to see >>> tools to help debug >>>>>> >>> >>> - Using _mysql I get: >>> >>>>>> import _mysql >>>>>> db=_mysql.connect() >>> *** malloc[805]: error for object 0x3cdc18: Incorrect checksum for >>> freed object - object was probably modified after being freed; break >>> at szone_error >>> >>> In both cases, the interpreter then dies, with a seg fault. >>> >>> This, using Python 2.2.1, the MySQL 4.0.13 package install, and >>> MySQL-python-0.9.2 >>> Same errors after re-compiling with Python 2.3b1, for what it's worth. >>> >>> More later if I can unearth any useful insights. >>> >>> cheers, >>> Andre P >>> >>> >>>> >>>> 1. MySQLdb.connect (Nigel King) >>>> >>>> From: Nigel King >>>> Date: Wed Jun 18, 2003 12:20:12 pm Europe/London >>>> To: >>>> Subject: [Pythonmac-SIG] MySQLdb.connect >>>> >>>> >>>> >>>>> My first guess: you built the Python MySQLdb extension with another >>>>> Python that you're using to run it. You're running with Apple's >>>>> Python >>>>> 2.2, maybe built it with Python 2.3a2? or with fink-Python from >>>>> /sw/bin? >>>> >>>> I very carefully (ie got my son who is a Unix software Engineer) >>>> compiled >>>> under each of the versions and ran the MySQLdb query under each. So >>>> I do not >>>> think this is the problem. >>>> >>>> It seems from the lack of interest that nobody else is having the >>>> same >>>> problem. Please somebody confirm. >>>> >>>> TIA >>>> -- >>>> Nigel >>> >> > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig From bbum at mac.com Sun Jun 22 13:22:06 2003 From: bbum at mac.com (bbum@mac.com) Date: Sun Jun 22 15:22:29 2003 Subject: [Pythonmac-SIG] Fwd: WWDC: Beer at Thirsty Bear Sunday at 8 PM Message-ID: I'll be here -- and this sounds like a great "pre-WWDC" place to meet. b.bum Begin forwarded message: > Hola, > The time for seeking out beer in the city of San Francisco has come! > For those that are in the SF area and would like to get together for a > beer and tapas tomorrow night (Sunday) I'll be at the Thirsty Bear > (http://www.thirstybear.com/) around 8 PM for some tasty brews. The > Thirsty Beer is a brew pub that also has some excellent tapas dishes, > but more importantly it is within walking distance of the convention > center. So stop by to chat about WO, EOF, Cocoa, Project Wonder and > the Music Store (if you get me started ;) For those that don't know > what I look like I'll be wearing a black mock WWDC turtle neck from > years past and I should be around the bar area (check upstairs as > well). Hope to see you there and if not, not to worry many more > opportunities for beer consumption throughout the week. > > Regards, > Max > > Thirsty Bear > 661 Howard St. > San Francisco, CA 94105 > 415-974-0905 > > Cross Street: > 3rd Street From occam at serv.net Sun Jun 22 18:35:24 2003 From: occam at serv.net (Joseph Grace) Date: Mon Jun 23 04:44:21 2003 Subject: [Pythonmac-SIG] Re: [Pyobjc-dev] Fwd: WWDC: Beer at Thirsty Bear Sunday at 8 PM In-Reply-To: Message-ID: <940E50DE-A512-11D7-B927-003065CDB330@serv.net> I can't make it at 8PM! How about another(?) get-together later in the week during lunch between sessions? = Joe = On Sunday, June 22, 2003, at 12:22 PM, bbum@mac.com wrote: > > I'll be here -- and this sounds like a great "pre-WWDC" place to meet. > > b.bum > > Begin forwarded message: >> Hola, >> The time for seeking out beer in the city of San Francisco has come! >> For those that are in the SF area and would like to get together for >> a beer and tapas tomorrow night (Sunday) I'll be at the Thirsty Bear >> (http://www.thirstybear.com/) around 8 PM for some tasty brews. The >> Thirsty Beer is a brew pub that also has some excellent tapas dishes, >> but more importantly it is within walking distance of the convention >> center. So stop by to chat about WO, EOF, Cocoa, Project Wonder and >> the Music Store (if you get me started ;) For those that don't know >> what I look like I'll be wearing a black mock WWDC turtle neck from >> years past and I should be around the bar area (check upstairs as >> well). Hope to see you there and if not, not to worry many more >> opportunities for beer consumption throughout the week. >> >> Regards, >> Max >> >> Thirsty Bear >> 661 Howard St. >> San Francisco, CA 94105 >> 415-974-0905 >> >> Cross Street: >> 3rd Street > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting > Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly > Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Pyobjc-dev mailing list > Pyobjc-dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > From boyle5 at llnl.gov Mon Jun 23 15:48:49 2003 From: boyle5 at llnl.gov (boyle5@llnl.gov) Date: Mon Jun 23 17:49:24 2003 Subject: [Pythonmac-SIG] Panther - Python and Quartz Message-ID: <79260F7E-A5C4-11D7-AFE9-00039354C4B2@llnl.gov> I have just looked at the description of OS X 10.3 (Panther) at MacCentral ( http://maccentral.macworld.com ). One line caught my attention: " the ability to access Quartz graphics from Python programs" I went through the panther preview at Apple but did not see any mention of what this capability really means. I am sure we will find out in the fullness of time, but if any group has some inside information it would be this one. Just curious, Jim -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 480 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030623/3bf4e08b/attachment.bin From just at letterror.com Tue Jun 24 08:52:20 2003 From: just at letterror.com (Just van Rossum) Date: Tue Jun 24 01:53:38 2003 Subject: [Pythonmac-SIG] Panther - Python and Quartz In-Reply-To: <79260F7E-A5C4-11D7-AFE9-00039354C4B2@llnl.gov> Message-ID: boyle5@llnl.gov wrote: > I have just looked at the description of OS X 10.3 (Panther) at > MacCentral ( http://maccentral.macworld.com ). One line caught my > attention: " the ability to access Quartz graphics from Python > programs" > > I went through the panther preview at Apple but did not see any > mention of what this capability really means. I am sure we will find > out in the fullness of time, but if any group has some inside > information it would be this one. Interesting, especially since we've been having access to (a subset of) Quartz since the introduction of the (Carbon.)CG module, which was around 2.2. Would they mean something else? Just From eppstein at ics.uci.edu Tue Jun 24 00:17:41 2003 From: eppstein at ics.uci.edu (David Eppstein) Date: Tue Jun 24 02:17:52 2003 Subject: [Pythonmac-SIG] Re: Panther - Python and Quartz References: <79260F7E-A5C4-11D7-AFE9-00039354C4B2@llnl.gov> Message-ID: In article , Just van Rossum wrote: > > I have just looked at the description of OS X 10.3 (Panther) at > > MacCentral ( http://maccentral.macworld.com ). One line caught my > > attention: " the ability to access Quartz graphics from Python > > programs" > > > > I went through the panther preview at Apple but did not see any > > mention of what this capability really means. I am sure we will find > > out in the fullness of time, but if any group has some inside > > information it would be this one. > > Interesting, especially since we've been having access to (a subset of) > Quartz since the introduction of the (Carbon.)CG module, which was > around 2.2. Would they mean something else? And would it have something to do with PyObjC guru bbum becoming employed by Apple? Or maybe not, since http://www.pycs.net/bbum/2003/05/20.html says he's doing something other than Python GUI connectivity. -- David Eppstein http://www.ics.uci.edu/~eppstein/ Univ. of California, Irvine, School of Information & Computer Science From brian_l at mac.com Tue Jun 24 01:03:15 2003 From: brian_l at mac.com (Brian Lenihan) Date: Tue Jun 24 03:03:27 2003 Subject: [Pythonmac-SIG] Pysol 4.81 for OS X Message-ID: I converted Markus Oberhumer's excellent solitaire game to a package, so it is now easy to create a Pysol.app. The animations don't work on OS X, but other than that, everything else works including the sound server. I uploaded some .dmgs for Pysol and the sound server here: http://homepage.mac.com/brian_l/ (brian_ell, not brian_one) The .dmgs also come with diffs of the changes I made to the original source. The sound server requires SDL, SDL-mixer and smpeg, which are all available as Fink packages. To install Pysol and build the Pysol .app, do the following: 1) python setup.py install 2) python buildapp.py build You will find the Pysol.app in the build directory. You are free to move it anywhere you want. If anyone has any OS X specific problems with Pysol, please don't bother Markus - he needs to finish writing Pysol 5 ;-) From Jack.Jansen at cwi.nl Tue Jun 24 12:52:21 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Tue Jun 24 05:50:35 2003 Subject: [Pythonmac-SIG] Re: Panther - Python and Quartz In-Reply-To: Message-ID: <8CD00BAD-A629-11D7-BC61-0030655234CE@cwi.nl> I'm as baffled as anyone else here, nobody told me about anything interesting regarding Python and Panther. Google doesn't turn up anything interesting, yet. I've mailed the article author to ask him where he found this bit of information. The only thing I can imagine it could mean is that they're going to ship a framework Python, or some other way to run GUI programs from Python, like opening up the hidden API that allows normal unix programs to connect to the window server. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From tr2002 at jrtr.org Tue Jun 24 08:29:08 2003 From: tr2002 at jrtr.org (Tim Randolph) Date: Tue Jun 24 09:06:58 2003 Subject: [Pythonmac-SIG] Re: Panther - Python and Quartz Message-ID: <1222DF05-A637-11D7-8453-000393904A8A@jrtr.org> It's in Apple's Developer's press release on the WWDC. http://www.apple.com/pr/library/2003/jun/23panther.html It's the last paragraph before the bullet list among other Unix features. And I came to lurk here, because I thought someone would know what was going on. ;-) --Tim From timbuktu at myrealbox.com Tue Jun 24 18:20:25 2003 From: timbuktu at myrealbox.com (Mark Kim) Date: Tue Jun 24 18:20:31 2003 Subject: [Pythonmac-SIG] Quicktime, Carbon and MacPython Message-ID: <3EF8CEA9.7010607@myrealbox.com> Hello all, I'm a developer with Transana (www.transana.org) working on integrating Quicktime into our new Python version of Transana. I'm currently using MacPython 2.2.2 (or 3) on a G4 1.0Ghz with 1GB of RAM running 10.2.6. I'm having a problem with the MovieController. Currently I have disabled it in the MovieTask loop because I have created a second thread to play the loop and the combination causes the interpreter to crash. A rough outline of the code looks like (this is not syntactically correct): Qt.EnterMovies() self.theWindow = Win.CreateNewWindow(6,31,bounds) Qd.SetPort(...) self.theMovie ... = Qt.NewMovieFromFile(....) ... self.MoviePlayer = MoviePlayer(self.theMovie, self.theController) self.MoviePlayer.start() #new thread Within the class MoviePlayer(threading.Thread) while not done and not stop: gotone, evt = Evt.WaitNextEvent(0xffff, 0) etc...etc... looks almost identical to example given in MacPython I'm assuming because I've spawned a second thread and there's a Carbon event, this is causing the crash. Is my assumption correct? Is there a way to spawn a thread and have the MovieController at the same time? Or maybe I'm looking at this completely wrong? Thanks in advance, sorry if this is long, Mark Kim From bob at redivi.com Wed Jun 25 22:30:57 2003 From: bob at redivi.com (Bob Ippolito) Date: Wed Jun 25 21:31:03 2003 Subject: [Pythonmac-SIG] Retroactively adding readline support to OS X Python 2.3b1 Message-ID: Almost equivalent to b.bum's readline-0.0.0 hack, this one downloads readline 4.3, compiles a static libreadline.a, and link the python 2.3 readline.c against that. This avoids any PrivateFrameworks/readline.framework version compatibility issues because it's linked to a static version of readline, so it should be safe to redistribute the resultant binary so long as you comply with the relevant licenses. It should also be safe to redistribute this "source" archive under the same license as Python. It's available at: http://undefined.org/python/readline-0.0.1.tgz It should work for anyone who has Python 2.3b1 or later. It's been reported to work for Python 2.3b1 on OS X 10.2 and the Apple Python provided with developer preview of Panther. -bob From calvin at xmission.com Wed Jun 25 22:45:27 2003 From: calvin at xmission.com (Calvin) Date: Wed Jun 25 23:45:32 2003 Subject: [Pythonmac-SIG] Retroactively adding readline support to OS X In-Reply-To: from "Bob Ippolito" at Jun 25, 2003 09:30:57 PM Message-ID: I just downloaded this and ran it. the build seems to go okay, but I still don't have readline...is there something I'm missing? I've got readline.so in site-packages, but dang i wish I my up key worked. I already had readline 4.3 built into usr/local/ I even copied it into a /sw to trick packagemanager into installing it, but it doesn't seem to make a difference. Any help would be appreciated. -calvin > Almost equivalent to b.bum's readline-0.0.0 hack, this one downloads > readline 4.3, compiles a static libreadline.a, and link the python 2.3 > readline.c against that. This avoids any > PrivateFrameworks/readline.framework version compatibility issues > because it's linked to a static version of readline, so it should be > safe to redistribute the resultant binary so long as you comply with > the relevant licenses. It should also be safe to redistribute this > "source" archive under the same license as Python. > > It's available at: http://undefined.org/python/readline-0.0.1.tgz > > It should work for anyone who has Python 2.3b1 or later. It's been > reported to work for Python 2.3b1 on OS X 10.2 and the Apple Python > provided with developer preview of Panther. > > -bob > From bobsavage at mac.com Thu Jun 26 00:45:01 2003 From: bobsavage at mac.com (Bob Savage) Date: Thu Jun 26 00:45:09 2003 Subject: [Pythonmac-SIG] Re: Panther - Python and Quartz In-Reply-To: <1222DF05-A637-11D7-8453-000393904A8A@jrtr.org> Message-ID: This is very cool. Python actually is an official selling point in the Apple's Press Release for Panther! My guess is the folks at Pixar and ILM have been working behind the scenes with Apple's engineers. More power to 'em. Bob On Tuesday, June 24, 2003, at 06:29 AM, Tim Randolph wrote: > It's in Apple's Developer's press release on the WWDC. > > http://www.apple.com/pr/library/2003/jun/23panther.html > > It's the last paragraph before the bullet list among other Unix > features. > > And I came to lurk here, because I thought someone would know what was > going on. ;-) > > --Tim > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig From rafferty29 at mchsi.com Thu Jun 26 07:59:16 2003 From: rafferty29 at mchsi.com (Rob Bedford) Date: Thu Jun 26 07:59:48 2003 Subject: [Pythonmac-SIG] Re: Panther - Python and Quartz In-Reply-To: Message-ID: <9C99DE16-A7CD-11D7-8657-00039374C97A@mchsi.com> I hope I am wrong but this looks to me like it is saying Python using X11 rather than the far superior (my opinion) framework version. Rob Bedford On Wednesday, June 25, 2003, at 11:45 PM, Bob Savage wrote: > This is very cool. Python actually is an official selling point in the > Apple's Press Release for Panther! > > My guess is the folks at Pixar and ILM have been working behind the > scenes with Apple's engineers. More power to 'em. > > Bob > > > On Tuesday, June 24, 2003, at 06:29 AM, Tim Randolph wrote: > >> It's in Apple's Developer's press release on the WWDC. >> >> http://www.apple.com/pr/library/2003/jun/23panther.html >> >> It's the last paragraph before the bullet list among other Unix >> features. >> >> And I came to lurk here, because I thought someone would know what >> was going on. ;-) >> >> --Tim >> >> >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG@python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From skip at pobox.com Thu Jun 26 09:41:36 2003 From: skip at pobox.com (Skip Montanaro) Date: Thu Jun 26 09:42:00 2003 Subject: [Pythonmac-SIG] Retroactively adding readline support to OS X In-Reply-To: References: Message-ID: <16122.63504.215923.562920@montanaro.dyndns.org> calvin> I just downloaded this and ran it. the build seems to go okay, calvin> but I still don't have readline...is there something I'm calvin> missing? I've got readline.so in site-packages, but dang i wish calvin> I my up key worked. You still need some magic in your PYTHONSTARTUP file. This works for me and gives you history across sessions to boot: try: import readline except ImportError: pass else: readline.parse_and_bind("tab: complete") if hasattr(readline, "read_history_file"): import os histfile = os.path.join(os.environ["HOME"], ".pyhist") try: readline.read_history_file(histfile) except IOError: pass import atexit atexit.register(readline.write_history_file, histfile) At this point you can probably get rid of the hasattr() call unless you're using an older version of Python (2.[01]ish or earlier). Skip From speno at isc.upenn.edu Thu Jun 26 11:35:44 2003 From: speno at isc.upenn.edu (John P Speno) Date: Thu Jun 26 10:35:48 2003 Subject: [Pythonmac-SIG] Python in Panther (2.3 beta 1) Message-ID: <20030626143544.GN1257@isc.upenn.edu> I just downloaded the python package in Darwin 7 (Panther), and it's 2.3 beta 1. You can find it with all the other packages here: http://www.opensource.apple.com/darwinsource/7.0b1/index.html From calvin at xmission.com Thu Jun 26 11:36:48 2003 From: calvin at xmission.com (Calvin) Date: Thu Jun 26 12:36:52 2003 Subject: [Pythonmac-SIG] Retroactively adding readline support to OS X In-Reply-To: <20030626011254.A19933@redivi.com> from "Bob Ippolito" at Jun 26, 2003 01:12:54 AM Message-ID: > Are you sure it's getting installed into the right version of python? Have you tried "import readline" to see what happens? > > It definitely works on a bare Panther with XCode, and it works on a 2.3b1 install on 10.2.6 w/o fink.. but you have to make sure to "sudo /usr/local/bin/python2.3 setup.py install". The short of this is I got readline.0.0.1 install to work, read on for how. FWIW: It's a spanking new installation of python except for fiddling with packagemanager and various attempts at readline installs. Also I get this error on importing readline: Python 2.3b1 (#4, Apr 29 2003, 13:28:17) ... >>> import readline Traceback (most recent call last): File "", line 1, in ? ImportError: Failure linking new module: /sw/lib/libreadline.4.dylib: dyld: python can't open library: /sw/lib/libreadline.4.dylib (No such file or directory, errno = 2) it's the same error the packagemanger gets. What I did: I completely trash python everyything on my machine. [thearthole:/Applications] calvin% sudo rm -rf MacPython-2.3 [thearthole:/usr/local/bin] calvin% sudo rm pyt* [thearthole:/Library/Frameworks] calvin% sudo rm -rf Python.framework/ reinstall from the diskimage...clickable python install, so nice! trash the readline.0.0.1 folder. (probably unnecessary but that sudo rm -rf is so fun!) untar readline.0.0.1 sudo /usr/local/bin/python2.3 setup.py install and now readline works! My conclusion is that readline.0.0.1 install works but not if packagemanager has tried to install readline binary and failed (eg no /sw/lib/ etc). Additionally I reinstalled MySQLdb following the instructions and that installed flawlessly too. so on a clean python mac osx 10.2.6 your realine.0.0.1 install and the mysqldb install work perfectly with MacPython-OSX 2.3b1-2 thanks for your help. -calvin now to get image installed with jpeg libs in /usr/local/lib... From deleeuw at stat.ucla.edu Thu Jun 26 10:49:14 2003 From: deleeuw at stat.ucla.edu (Jan de Leeuw) Date: Thu Jun 26 12:49:20 2003 Subject: [Pythonmac-SIG] native PyQt Message-ID: <1E5864A2-A7F6-11D7-B939-000393BB6D36@stat.ucla.edu> Obvious question: anyone working on a native PyQt using the new free Qt for OS X ? === Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; Editor: Journal of Multivariate Analysis, Journal of Statistical Software US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu homepage: http://gifi.stat.ucla.edu ------------------------------------------------------------------------ ------------------------- No matter where you go, there you are. --- Buckaroo Banzai http://gifi.stat.ucla.edu/sounds/nomatter.au ------------------------------------------------------------------------ ------------------------- From haselw at mac.com Thu Jun 26 23:06:54 2003 From: haselw at mac.com (Winnfried Hasel) Date: Thu Jun 26 16:07:16 2003 Subject: [Pythonmac-SIG] Re:Retroactively adding readline support to OS X In-Reply-To: Message-ID: I followed Bob's instructions to install readline, but when I try to 'import readline' in the interactive shell (python 2.3b1) I get this error message: ImportError: Failure linking new module: /sw/lib/libreadline.4.dylib: dyld: python can't open library: /sw/lib/libreadline.4.dylib (No such file or directory, errno = 2). BTW the same happened, when I tried to install it via the Package Manager of the Python IDE. Any ideas? I'd really love to get this history function to work. Winnfried > > Von: Bob Ippolito > Datum: Do, 26. Jun 2003 03:30:57 Europe/Berlin > An: pythonmac-sig@python.org > Betreff: [Pythonmac-SIG] Retroactively adding readline support to OS X > Python 2.3b1 > > > Almost equivalent to b.bum's readline-0.0.0 hack, this one downloads > readline 4.3, compiles a static libreadline.a, and link the python 2.3 > readline.c against that. This avoids any > PrivateFrameworks/readline.framework version compatibility issues > because it's linked to a static version of readline, so it should be > safe to redistribute the resultant binary so long as you comply with > the relevant licenses. It should also be safe to redistribute this > "source" archive under the same license as Python. > > It's available at: http://undefined.org/python/readline-0.0.1.tgz > > It should work for anyone who has Python 2.3b1 or later. It's been > reported to work for Python 2.3b1 on OS X 10.2 and the Apple Python > provided with developer preview of Panther. > > -bob > > From bob at redivi.com Thu Jun 26 19:57:55 2003 From: bob at redivi.com (Bob Ippolito) Date: Thu Jun 26 18:58:08 2003 Subject: [Pythonmac-SIG] Re:Retroactively adding readline support to OS X In-Reply-To: Message-ID: <9F9771FE-A829-11D7-A5BC-000A95686CD8@redivi.com> Apparently someone screwed up and made *something* dependent on fink that shouldn't be. I'm not sure if this was because you have fink installed, or because whoever compiled your Python did. I don't have fink installed for exactly this sort of reason, and I compiled my own Python from CVS, so I don't know exactly what happened for you. In any case, I've modified my readline hack to explicitly link to the static libreadline.a rather than letting the compiler decide.. so if you were having problems, download it now and give it a try. -bob On Thursday, Jun 26, 2003, at 16:06 America/New_York, Winnfried Hasel wrote: > I followed Bob's instructions to install readline, but when I try to > 'import readline' in the interactive shell (python 2.3b1) I get this > error message: > ImportError: Failure linking new module: /sw/lib/libreadline.4.dylib: > dyld: python can't open library: /sw/lib/libreadline.4.dylib (No such > file or directory, errno = 2). > > BTW the same happened, when I tried to install it via the Package > Manager of the Python IDE. > > Any ideas? I'd really love to get this history function to work. > > Winnfried > >> >> Von: Bob Ippolito >> Datum: Do, 26. Jun 2003 03:30:57 Europe/Berlin >> An: pythonmac-sig@python.org >> Betreff: [Pythonmac-SIG] Retroactively adding readline support to OS >> X Python 2.3b1 >> >> >> Almost equivalent to b.bum's readline-0.0.0 hack, this one downloads >> readline 4.3, compiles a static libreadline.a, and link the python >> 2.3 readline.c against that. This avoids any >> PrivateFrameworks/readline.framework version compatibility issues >> because it's linked to a static version of readline, so it should be >> safe to redistribute the resultant binary so long as you comply with >> the relevant licenses. It should also be safe to redistribute this >> "source" archive under the same license as Python. >> >> It's available at: http://undefined.org/python/readline-0.0.1.tgz >> >> It should work for anyone who has Python 2.3b1 or later. It's been >> reported to work for Python 2.3b1 on OS X 10.2 and the Apple Python >> provided with developer preview of Panther. From calvin at xmission.com Fri Jun 27 10:49:09 2003 From: calvin at xmission.com (Calvin) Date: Fri Jun 27 11:49:16 2003 Subject: [Pythonmac-SIG] Re:Retroactively adding readline support to OS X In-Reply-To: from "Winnfried Hasel" at Jun 26, 2003 10:06:54 PM Message-ID: > I followed Bob's instructions to install readline, but when I try to > 'import readline' in the interactive shell (python 2.3b1) I get this > error message: > ImportError: Failure linking new module: /sw/lib/libreadline.4.dylib: > dyld: python can't open library: /sw/lib/libreadline.4.dylib (No such > file or directory, errno = 2). > Any ideas? I'd really love to get this history function to work. > I had the exact same problem. To get it to work, here is what I did: I completely trash python everyything on my machine. [thearthole:/Applications] calvin% sudo rm -rf MacPython-2.3 [thearthole:/usr/local/bin] calvin% sudo rm pyt* [thearthole:/Library/Frameworks] calvin% sudo rm -rf Python.framework/ I had already moved /usr/lib/python2.2, /usr/include/python2.2, and /usr/bin/py* to a non system directory so it wouldn't ever get invoked. Then I reinstall from the diskimage "MacPython-OSX-2.3b1-2.dmg" ...clickable python install, so nice! Then I trashed the readline.0.0.1 folder. (probably unnecessary but that sudo rm -rf is so fun!) gunzip readline-0.0.1.tar.gz tar -xf readline-0.0.1.tar cd readline-0.0.1 sudo /usr/local/bin/python2.3 setup.py install And readline works! I did this on 2 seperate machines yesterday. Let me know if it doesn't work. REMEMBER: After removing the frameworks libraries you will have to reinstall any python extras you installed. For instance I had to reinstall MySQLdb and my own web development libraries. I Still haven't got PIL with jpeg support installed, but that's another story. -calvin From larry.bugbee at boeing.com Fri Jun 27 12:12:50 2003 From: larry.bugbee at boeing.com (Bugbee, Larry) Date: Fri Jun 27 14:13:05 2003 Subject: [Pythonmac-SIG] jpeg under PIL? Message-ID: <8CFC81BC2CC2A74F88BAB7180F00B779E06984@xch-nw-29.nw.nos.boeing.com> I too am having no joy with jpeg under PIL. Any clues? Larry -----Original Message----- From: Calvin [mailto:calvin@xmission.com] Sent: Friday, June 27, 2003 8:49 AM To: Winnfried Hasel Cc: pythonmac-sig@python.org Subject: Re: [Pythonmac-SIG] Re:Retroactively adding readline support to OS X [snip] I Still haven't got PIL with jpeg support installed, but that's another story. -calvin _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig From bob at redivi.com Fri Jun 27 15:58:55 2003 From: bob at redivi.com (Bob Ippolito) Date: Fri Jun 27 14:59:01 2003 Subject: [Pythonmac-SIG] jpeg under PIL? In-Reply-To: <8CFC81BC2CC2A74F88BAB7180F00B779E06984@xch-nw-29.nw.nos.boeing.com> Message-ID: <66DF9224-A8D1-11D7-AD73-000A95686CD8@redivi.com> curl http://undefined.org/python/darwinjpeg.tgz > darwinjpeg.tgz tar zxvf darwinjpeg.tgz sudo cp darwinjpeg/libjpeg.a /usr/local/lib/ sudo ranlib /usr/local/lib/libjpeg.a sudo mkdir /usr/local/include sudo cp darwinjpeg/j*.h /usr/local/include/ curl http://effbot.org/downloads/Imaging-1.1.4.tar.gz > Imaging-1.1.4.tar.gz tar zxvf Imaging-1.1.4.tar.gz cd Imaging-1.1.4/libImaging ./configure make cd .. sudo python2.3 setup.py build_ext -i sudo cp -r PIL PIL.pth `python2.3 -c "import sys;print filter(lambda x:x.endswith('site-packages'), sys.path)[0]"` cd .. sudo rm -rf darwinjpeg.tgz darwinjpeg Imaging-1.1.4.tar.gz Imaging-1.1.4 That should do the trick, it should work on a bare Panther machine, a Jaguar machine with Python 2.3, and may even work for Apple Python 2.2.0 (of course, replace every python2.3 with just python). It may complain if you have a framework Tcl/Tk installed, but it should've compiled _imaging.so first anyways and will probably function properly if you just ignore the error and copy it over to site-packages anyways. If any of the steps give an error like "directory already exists" or "dib.o has no symbols" or something like that, it's not really an error.. just go on. -bob On Friday, Jun 27, 2003, at 14:12 America/New_York, Bugbee, Larry wrote: > I too am having no joy with jpeg under PIL. Any clues? > > Larry > > > > -----Original Message----- > From: Calvin [mailto:calvin@xmission.com] > Sent: Friday, June 27, 2003 8:49 AM > To: Winnfried Hasel > Cc: pythonmac-sig@python.org > Subject: Re: [Pythonmac-SIG] Re:Retroactively adding readline support > to > OS X > > > [snip] > > > I Still haven't got PIL with jpeg > support installed, but that's another story. > > -calvin > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig From bob at redivi.com Fri Jun 27 17:16:33 2003 From: bob at redivi.com (Bob Ippolito) Date: Fri Jun 27 16:16:41 2003 Subject: [Pythonmac-SIG] Retroactively adding WASTE support to OS X Python 2.3b1 Message-ID: <3EDA4B95-A8DC-11D7-AD73-000A95686CD8@redivi.com> http://undefined.org/python/waste_for_python2.3.tgz -- (I'm lazy, this is the readme) -- This setup.py will retroactively build/install the WASTE module for Python 2.3b1 if you do not already have it. This would happen if you compiled Python 2.3b1 without getting WASTE first, or if Apple did ;) The real reason to install this module would be to use PythonIDE. To install: get waste from http://www.merzwaren.com/bin/waste/waste-21b1.sit unstuff waste-21b1.sit mount the WASTE disk image ( waste-21b1-distribution.img ) sudo python2.3 setup.py install This archive contains code from Python CVS, and all code in this archive is under the same license as Python unless explicitly stated otherwise. To run PythonIDE (test if it worked): (drop the /System if you're using a non-Apple version of Python 2.3b1) pythonw2.3 /System/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/IDE/ PythonIDE.py - bob From calvin at xmission.com Sat Jun 28 00:50:39 2003 From: calvin at xmission.com (Calvin) Date: Sat Jun 28 01:50:45 2003 Subject: [Pythonmac-SIG] jpeg under PIL? In-Reply-To: <66DF9224-A8D1-11D7-AD73-000A95686CD8@redivi.com> from "Bob Ippolito" at Jun 27, 2003 02:58:55 PM Message-ID: > sudo ranlib /usr/local/lib/libjpeg.a ah ranlib. Over a year ago you helped me with this very problem. And as I now have time (it being a weekend and all) to dig through my old notes and email messages you've saved me the trouble by posting the answer. thank you. I did a standard PIL install after the ranlib with no problems. Thank you very much. Is it possible that these recurring problems will be fixed in the future? I almost went back to 2.2 because installing, python, mysql, pil with jpeg, readline, worked so well the last few times I did it. Will readline support be part of 10.3? Why isn't jpeg support just part of standard PIL? I haven't had a problem with MySQLdb since 10.0, but readline and jpeg-PIL keep popping up. just curious. Thanks again. -calvin ps. where is that tip jar? From haselw at mac.com Sat Jun 28 16:33:50 2003 From: haselw at mac.com (Winnfried Hasel) Date: Sat Jun 28 09:34:10 2003 Subject: [Pythonmac-SIG] RE:Retroactively adding readline support to OS X Python 2.3b1 Message-ID: <276B8C8A-A96D-11D7-9CFF-0003930A416A@mac.com> Thanks Calvin, thanks Bob! Readline is working now. As Calvin suggested, I deleted all the Python stuff from Applications and Library/Frameworks, then reinstalled MacPython 2.3b1, and finally ran Bob's readline-script. Without deletion it did not work, even with Bob's modified script. Winnfried From Jack.Jansen at cwi.nl Sat Jun 28 23:28:29 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Sat Jun 28 16:28:36 2003 Subject: [Pythonmac-SIG] Thanks for all the offers for help! Message-ID: <1430C072-A9A7-11D7-B88D-000A27B19B96@cwi.nl> Folks, thanks for all the offers to help me out with debugging the installer. Pascal Oberndoerfer ran the thing, and everything appears fine. I should have told y'all earlier that this had been taken care of, but this week was a bit hectic with EuroPython and all... -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From mcgowan at alum.mit.edu Sun Jun 29 23:55:52 2003 From: mcgowan at alum.mit.edu (Martin McGowan) Date: Sun Jun 29 22:57:11 2003 Subject: [Pythonmac-SIG] Tkinter, first time Message-ID: <5CC6F69A-AAA6-11D7-9E04-000393C3044A@alum.mit.edu> pythonmac-sig, I'm just cracking open python, reading Mike Lutz Programming Python, 2nd edition, and would like to use Tkinter. What should I be doing here? Do bash-2.05a$ python Python 2.2 (#1, 07/14/02, 23:25:09) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import Tkinter Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 35, in ? import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named _tkinter >>> The download page suggest I should have a fully working copy on my Mac OS X? http://www.python.org/topics/tkinter/download.html Thanks, -- Marty McGowan III From mwh at python.net Mon Jun 30 11:39:28 2003 From: mwh at python.net (Michael Hudson) Date: Mon Jun 30 05:39:32 2003 Subject: [Pythonmac-SIG] native PyQt In-Reply-To: <1E5864A2-A7F6-11D7-B939-000393BB6D36@stat.ucla.edu> (Jan de Leeuw's message of "Thu, 26 Jun 2003 09:49:14 -0700") References: <1E5864A2-A7F6-11D7-B939-000393BB6D36@stat.ucla.edu> Message-ID: <2mof0fc3an.fsf@starship.python.net> Jan de Leeuw writes: > Obvious question: anyone working on a native PyQt using the new > free Qt for OS X ? I think so, but I believe holding your breath is not advised. Cheers, M. -- M-x psych[TAB][RETURN] -- try it From mwh at python.net Mon Jun 30 11:41:34 2003 From: mwh at python.net (Michael Hudson) Date: Mon Jun 30 05:41:37 2003 Subject: [Pythonmac-SIG] Python in Panther (2.3 beta 1) In-Reply-To: <20030626143544.GN1257@isc.upenn.edu> (John P Speno's message of "Thu, 26 Jun 2003 10:35:44 -0400") References: <20030626143544.GN1257@isc.upenn.edu> Message-ID: <2mllvjc375.fsf@starship.python.net> John P Speno writes: > I just downloaded the python package in Darwin 7 (Panther), and it's 2.3 > beta 1. That's, um, *interesting*. And cool. Cheers, M. -- nonono, while we're making wild conjectures about the behavior of completely irrelevant tasks, we must not also make serious mistakes, or the data might suddenly become statistically valid. -- Erik Naggum, comp.lang.lisp From andrew.porwitzky at uvm.edu Mon Jun 30 10:19:46 2003 From: andrew.porwitzky at uvm.edu (Andrew J Porwitzky) Date: Mon Jun 30 09:19:50 2003 Subject: [Pythonmac-SIG] MacPython, wxPython, and Gnuplot Message-ID: <852FD886-AAFD-11D7-95C6-000393CC4D9A@uvm.edu> I'm having a problem with MacPython, wxPython and Gnuplot working together. I'm trying to call Gnuplot through wxPython in MacPython. (Mac)Python can't seam to find gnuplot, which was built through fink and is in /sw/bin/gnuplot . Noticing that /sw/bin/ wasn't in the path I put a symbolic link to gnuplot in a location that was in the path and then I tried a path location inside the built app, (something.app/Contents/Resources/), neither worked. First off, I don't understand why this didn't work, but is there a way to set the PATH from inside python? Is there a way to give BuildApplet a path? Have any of you ever heard of any problems like this? Thanks a million, -Andy From Jack.Jansen at cwi.nl Mon Jun 30 17:07:46 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Mon Jun 30 10:05:48 2003 Subject: [Pythonmac-SIG] MacPython, wxPython, and Gnuplot In-Reply-To: <852FD886-AAFD-11D7-95C6-000393CC4D9A@uvm.edu> Message-ID: <39639E4E-AB04-11D7-8E77-0030655234CE@cwi.nl> On Monday, Jun 30, 2003, at 15:19 Europe/Amsterdam, Andrew J Porwitzky wrote: > > I'm having a problem with MacPython, wxPython and Gnuplot working > together. First thing we would need to know is the MacPython version. From the rest I assume it's MacPython 2.3b1, but if it is MacPython-OS9 2.3b1 or MacPython 2.2.X things are completely different (i.e. the you should disregard the rest of this mail). > > I'm trying to call Gnuplot through wxPython in MacPython. (Mac)Python > can't seam to find gnuplot, which was built through fink and is in > /sw/bin/gnuplot . Noticing that /sw/bin/ wasn't in the path I put a > symbolic link to gnuplot in a location that was in the path and then I > tried a path location inside the built app, > (something.app/Contents/Resources/), neither worked. Depending on how you start your application any $PATH modifications you do in .cshrc or .profile will *not* be seen. To be more precise: if your application is started from the Finder you will not see any changes made in those files. So if you've made a symlink in /usr/local/bin and added /usr/local/bin to $PATH in your .cshrc it still won't work. To check whether this is the case: print os.environ["PATH"] somewhere in your program. > First off, I don't understand why this didn't work, but is there a > way to set the PATH from inside python? Yes, simply assign to os.environ: >>> import os >>> os.system("echo $PATH") /sw/bin:/sw/sbin:/Users/jack/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/ usr/sbin:/usr/X11R6/bin 0 >>> os.environ["PATH"] = os.environ["PATH"] + ":/foo" >>> os.system("echo $PATH") /sw/bin:/sw/sbin:/Users/jack/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/ usr/sbin:/usr/X11R6/bin:/foo 0 > Is there a way to give BuildApplet a path? I don't think so. If there is something in bundlebuilder then Just will jump in. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From bob at redivi.com Mon Jun 30 11:05:49 2003 From: bob at redivi.com (Bob Ippolito) Date: Mon Jun 30 10:06:25 2003 Subject: [Pythonmac-SIG] jpeg under PIL? Message-ID: <04A8B9FA-AB04-11D7-B0AE-000A95686CD8@redivi.com> On Saturday, Jun 28, 2003, at 01:50 America/New_York, Calvin wrote: > Is it possible that these recurring problems will be fixed in the > future? > I almost went back to 2.2 because installing, python, mysql, pil with > jpeg, readline, worked so well the last few times I did it. They're not really problems, they're dependencies. The ranlib thing is sort of a problem, but I don't see them getting around to fixing that anytime soon. It's only a small burden to remember to ranlib, unless you're not superuser and you have some poorly installed static libs. > Will readline support be part of 10.3? Why isn't jpeg support just > part > of standard PIL? I haven't had a problem with MySQLdb since 10.0, but > readline and jpeg-PIL keep popping up. AFAIK, Apple is still bastardizing readline into a private framework that only gets installed (maybe?) with the dev tools. Probably due to GNU license issues or the like. Apple also has no good reason to provide you with a libjpeg, since Quicktime and/or Quartz does quite a good job... likely better than the reference jpeg implementation that everyone else uses. I did write a wrapper for QuickTime once that exposed a subset of the libjpeg interface, maybe I'll see if I still have it and clean it up, but that doesn't really solve any problems unless Apple starts distributing the headers and library with OS X. I don't work for Apple or anything, so the chances of that making it into OS X are pretty slim. Personally, I'd be perfectly happy distributing binaries of all this stuff for OS X users that don't want to deal with the mess of compiling things, at least as soon as there's a stable single-source version of Python for OS X that everyone starts using. The problem is that I don't like having to read licenses for every library that goes into it, that part of software development doesn't amuse me, I'm not a lawyer. It'd be a better (read: easier) world if everyone used the LGPL or one of the less restrictive licenses in their code support libraries, but not everyone does, like GNU readline for example. > ps. where is that tip jar? No need to tip me, if you want to spend some money, donate to the PSF ( http://www.python.org/psf/donations.html ).. it's even tax deductible (in the US)! -bob From rowen at cesmail.net Mon Jun 30 15:28:45 2003 From: rowen at cesmail.net (Russell E. Owen) Date: Mon Jun 30 17:41:36 2003 Subject: [Pythonmac-SIG] Re: MacPython, wxPython, and Gnuplot References: <852FD886-AAFD-11D7-95C6-000393CC4D9A@uvm.edu> <39639E4E-AB04-11D7-8E77-0030655234CE@cwi.nl> Message-ID: In article <39639E4E-AB04-11D7-8E77-0030655234CE@cwi.nl>, Jack Jansen wrote: > Depending on how you start your application any $PATH modifications you > do in .cshrc or .profile will *not* be seen. To be more precise: if > your application is started from the Finder you will not see any > changes made in those files. So if you've made a symlink in > /usr/local/bin and added /usr/local/bin to $PATH in your .cshrc it > still won't work. To check whether this is the case: print > os.environ["PATH"] somewhere in your program. Just to expand on this, you can set environment variables such that they are seen by all applications, but you have to do it in .MacOSX/environment.plist. My instructions are available at , link "Environment Variables for Aqua Applications in MacOS X". -- Russell