<DIV>Thanks all</DIV> <DIV> </DIV> <DIV>I have to add</DIV> <DIV>#!pythonw </DIV> <DIV># -*- coding: Latin-1 -*-</DIV> <DIV> </DIV> <DIV>at beginging of the file macerrors to get rid of warning message </DIV> <DIV> </DIV> <DIV>What was the difference when I try to install module say I have module.py on Macintosh? </DIV> <DIV> </DIV> <DIV>from distutils.core import setup</DIV> <DIV>setup(name="MyModule", version="1.0" py_modules=["module.py"])</DIV> <DIV> </DIV> <DIV> </DIV> <DIV>Is above enough to set up the module? Where are "module.py" should be in current dir? </DIV> <DIV> </DIV> <DIV>Thanks </DIV> <DIV> </DIV> <DIV><BR><BR><B><I>Bob Ippolito <bob@redivi.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>On Dec 9, 2005, at 3:19 PM, Zhi Peng wrote:<BR><BR>> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/ <BR>>
python2.3/plat-mac/macerrors.py<BR>> on line 326, but no encoding declared; see<BR>> http://www.python.org/peps/pep-0263.html for details<BR>> import macerrors<BR>><BR>> But if I erased "from appscript import *" then it will<BR>> be fine. I think there is problem in appscript<BR><BR>No, it's a (harmless) bug in Python 2.3<BR><BR>Python 2.3.5 (#1, Mar 20 2005, 20:38:20)<BR>[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin<BR>Type "help", "copyright", "credits" or "license" for more information.<BR>>>> import macerrors<BR>__main__:1: DeprecationWarning: Non-ASCII character '\x80' in file / <BR>System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ <BR>plat-mac/macerrors.py on line 326, but no encoding declared; see <BR>http://www.python.org/peps/pep-0263.html for details<BR><BR>Just ignore it, edit the file and remove the offending character <BR>(it's in the comment), or use Python 2.4 instead.<BR><BR>-bob<BR><BR></BLOCKQUOTE>
<DIV><BR></DIV><p>
        
                <hr size=1>Yahoo! Shopping<br>
Find Great Deals on Holiday Gifts at <a href="http://us.rd.yahoo.com/mail_us/footer/shopping/*http://shopping.yahoo.com/;_ylc=X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHNsawNob2xpZGF5LTA1
">Yahoo! Shopping</a>