Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94926
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <goldwinde@hotmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.044 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.00; 'executable': 0.07; 'editor.': 0.09; 'extension.': 0.09; 'says.': 0.09; 'similar,': 0.09; 'specifying': 0.09; 'python': 0.10; 'instead.': 0.15; '"python': 0.16; '/usr/bin/env': 0.16; 'bypassing': 0.16; 'investigate': 0.16; 'received:65.55.116.7': 0.16; 'script?': 0.16; 'wrote:': 0.16; 'shell': 0.18; 'language': 0.19; '>>>': 0.20; 'everyone!': 0.22; 'properties': 0.24; 'header:User- Agent:1': 0.26; 'figure': 0.27; '(e.g.': 0.27; 'skip:# 10': 0.27; '(my': 0.29; 'url:key': 0.29; 'there.': 0.30; 'books': 0.30; 'url:mailman': 0.30; 'statement': 0.32; 'point': 0.33; 'problem': 0.33; 'url:python': 0.33; 'quotes': 0.33; 'url:listinfo': 0.34; 'file': 0.34; 'gives': 0.35; 'could': 0.35; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'instead': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'method': 0.37; 'mac': 0.37; 'skip:8 10': 0.37; 'version': 0.38; 'thank': 0.38; 'files': 0.38; 'whatever': 0.39; 'subject:the': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'still': 0.40; 'some': 0.40; 'your': 0.60; 'default': 0.61; 'video': 0.62; 'more': 0.63; 'necessarily': 0.63; 'safe': 0.63; 'finally': 0.70; 'picture': 0.70; 'book,': 0.72; 'clicking': 0.75; '>how': 0.84; '>if': 0.84; '>you': 0.84; 'solved.': 0.84; 'subject:you': 0.85; 'subject:find': 0.91 |
| X-TMN | [Frh+cUhE9TVJRY18Uroc7g4iwCrpxxMT] |
| X-Originating-Email | [goldwinde@hotmail.com] |
| User-Agent | Microsoft-MacOutlook/14.4.7.141117 |
| Date | Mon, 3 Aug 2015 18:30:30 +0800 |
| Subject | Re: I'm a newbie and you helped me find the answer... |
| From | Dwight Hotmail <GoldWinde@hotmail.com> |
| To | Python Python <python-list@python.org> |
| Thread-Topic | I'm a newbie and you helped me find the answer... |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="EUC-KR" |
| Content-Transfer-Encoding | quoted-printable |
| X-OriginalArrivalTime | 03 Aug 2015 10:32:36.0372 (UTC) FILETIME=[B6E2BD40:01D0CDD7] |
| X-Mailman-Approved-At | Mon, 03 Aug 2015 12:35:57 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1178.1438598158.3674.python-list@python.org> (permalink) |
| Lines | 68 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1438598158 news.xs4all.nl 2855 [2001:888:2000:d::a6]:46600 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 5485 |
| X-Received-Body-CRC | 1753741860 |
| Xref | csiph.com comp.lang.python:94926 |
Show key headers only | View raw
Thank you, Jussi.
Problem finally solved.
I am using Coderunner 2 as my editor. It has a language setting. I had set
it as Python instead of Python 3.
Duh!
Thank you again, everyone!
With appreciation,
Dwight
Dwight@GoldWinde.com
www.goldwinde.com
Author of the book, "Courage: the Choice that Makes the Difference--Your
Key to a Thousand Doors"
You can find all my books at http://www.couragebooks.key.to/
1-206-923-9554 (USA Telephone)
1-206-350-0129 (voice mail and fax U.S.A.)
86-153-9867-5712 (China Telephone)
goldwindedwight (Skype)
goldwinde (Wechat)
+8615398675712 (Whatsapp)
www.3forliving.key.to (daily living video playlist)
http://www.couragebooks.key.to/ (my books)
On 8/3/15, 5:49 PM, "Jussi Piitulainen" <jpiitula@ling.helsinki.fi> wrote:
>Dwight GoldWinde quotes himself:
>>
>>> Okay, thank you, Dave, so I got the following info: type $(which
>>> python3)
>>> /Library/Frameworks/Python.framework/Versions/3.4/bin/python3 is
>>> /Library/Frameworks/Python.framework/Versions/3.4/bin/python3
>>>
>>> But I can¹t figure out what short of ³usr² statement
>>> (e.g. #!/usr/bin/env python3) I need to point it there. Whatever I
>>> tried, still gives me version 2.
>
>How are you launching your script? If your method involves clicking some
>pretty picture or something similar, you may be bypassing /usr/bin/env
>altogether and relying on some association of file types in Mac OS. Then
>you need to investigate file properties in Finder, or something like
>that. It should be safe to change the association for that individual
>script but not necessarily for all files with the same extension.
>
>If your method is to type "python scriptname" at the shell prompt, you
>are definitely bypassing /usr/bin/env and specifying the default python
>as the one to use. Solution: type "python3 scriptname" instead. (A more
>advanced solution: make scriptname executable and type "./scriptname"
>instead. This one uses /usr/bin/env to find the interpreter.)
>
>(You could try "#!/usr/bin/env aintgotnosuch" as your script's hashbang
>line to see if it even matters what that line says. Check first that you
>don't happen to have a program named "aintgotnosuch" in your path.)
>--
>https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: I'm a newbie and you helped me find the answer... Dwight Hotmail <GoldWinde@hotmail.com> - 2015-08-03 18:30 +0800
csiph-web