Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3218
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ernest@willowfalls.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'skip:# 20': 0.03; 'subject:" ': 0.03; 'scipy': 0.05; 'fine,': 0.07; 'happily': 0.07; 'modules.': 0.07; 'python': 0.07; '"hello': 0.09; '"run': 0.09; 'command.': 0.09; 'importerror:': 0.09; 'thu': 0.09; 'pm,': 0.11; 'wrote:': 0.14; '"#!': 0.16; 'logout': 0.16; 'macosx': 0.16; 'python2.5': 0.16; 'skip:/ 50': 0.16; 'subject:command': 0.16; 'libraries': 0.16; 'traceback': 0.16; '(most': 0.16; 'shell': 0.19; 'command': 0.19; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'work,': 0.20; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'trying': 0.23; 'last):': 0.23; 'version.': 0.23; 'pointing': 0.25; 'script': 0.26; "i'm": 0.26; 'url:mailman': 0.27; 'thanks': 0.29; 'installed': 0.29; 'error': 0.29; 'problem': 0.29; 'skip:" 30': 0.29; 'subject:not': 0.29; 'fine.': 0.29; 'named': 0.30; 'cc:addr:python.org': 0.31; 'points': 0.31; '"python"': 0.31; 'menu,': 0.31; 'ran': 0.31; 'subject:working': 0.31; 'all,': 0.31; 'import': 0.32; 'source': 0.32; 'url:listinfo': 0.33; 'module': 0.33; 'lines': 0.34; 'file': 0.35; 'print': 0.35; '2.6': 0.35; 'suggested': 0.35; 'running': 0.36; 'charset:us-ascii': 0.36; 'some': 0.37; 'case': 0.37; 'url:python': 0.37; 'run': 0.37; '2.5': 0.38; 'apr': 0.38; 'but': 0.38; 'url:org': 0.38; 'comes': 0.39; 'where': 0.39; 'header:Mime- Version:1': 0.39; 'works': 0.40; "it's": 0.40; 'might': 0.40; 'give': 0.61; 'header:Message-Id:1': 0.62; 'here': 0.65; 'received:perfora.net': 0.68; 'exit;': 0.84; 'jon': 0.84; 'menu.': 0.84; 'received:74.208.4.194': 0.84; 'saying:': 0.84; 'troubles': 0.84 |
| Subject | Re: TextWrangler "run" command not working properly |
| Mime-Version | 1.0 (Apple Message framework v1084) |
| Content-Type | text/plain; charset=us-ascii |
| From | Ernest Obusek <ernest@willowfalls.net> |
| In-Reply-To | <382709dd-5e3f-4b07-a642-4ce141ef442b@18g2000prd.googlegroups.com> |
| Date | Thu, 14 Apr 2011 17:14:49 -0400 |
| Content-Transfer-Encoding | quoted-printable |
| References | <oakwood-DAC806.22525414042011@news.free.fr> <382709dd-5e3f-4b07-a642-4ce141ef442b@18g2000prd.googlegroups.com> |
| To | Jon Clements <joncle@googlemail.com> |
| X-Mailer | Apple Mail (2.1084) |
| X-Provags-ID | V02:K0:HQZhA6DGLvWahCq/EHbO8LnNinOnVV/yhS+iFzBuYO5 DxugrjsknRQiC8VHBJZ2YiY7UQfPWMmcmiNKd6LVfOQ7Q6Zyps 69AWrUiTushFUCQZHETc3GDEg1DSf/FJL37uGuTORFaxq2Vmso Rmue7jRe9oSiWYeAn51V3XsKX1gtdC5bSaTNGmATEx/hfZgLJJ SA1DywMPZIPHGUXBZ9vWA== |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.371.1302815698.9059.python-list@python.org> (permalink) |
| Lines | 77 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1302815698 news.xs4all.nl 41114 [::ffff:82.94.164.166]:58965 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:3218 |
Show key headers only | View raw
I'm not a python expert, but you might trying running 'print sys.path' inside your script and run that from TextWrangler to see where it's looking for modules. - Ernest On Apr 14, 2011, at 5:01 PM, Jon Clements wrote: > On Apr 14, 9:52 pm, Fabio <oakw...@email.it> wrote: >> Hi to all, >> I have troubles with TextWrangler "run" command in the "shebang" (#!) >> menu. >> I am on MacOSX 10.6.7. >> I have the "built-in" Python2.5 which comes installed by "mother Apple". >> Then I installed Python2.6, and left 2.5 untouched (I was suggested to >> leave it on the system, since "something might need it"). >> >> I ran the "Update Shell Profile.command", and now if I launch "python" >> in the terminal it happily launches the 2.6 version. >> Then I installed some libraries (scipy and matplotlib) on this newer 2.6 >> version. >> They work, and everything is fine. >> >> Then, I started to use TexWrangler, and I wanted to use the "shebang" >> menu, and "run" command. >> I have the "#! first line" pointing to the 2.6 version. >> It works fine, as long as I don't import the libraries, in which case it >> casts an error saying: >> >> ImportError: No module named scipy >> >> Maybe for some reason it points to the old 2.5 version. >> But I might be wrong and the problem is another... >> >> I copy here the first lines in the terminal window if i give the "run in >> terminal" command >> >> Last login: Thu Apr 14 22:38:26 on ttys000 >> Fabio-Mac:~ fabio$ >> /var/folders/BS/BSS71XvjFKiJPH3Wqtx90k+++TM/-Tmp-/Cleanup\ At\ >> Startup/untitled\ text-324506443.860.command ; exit; >> Traceback (most recent call last): >> File "/Users/fabio/Desktop/test.py", line 3, in <module> >> import scipy as sp >> ImportError: No module named scipy >> logout >> >> [Process completed] >> >> where the source (test.py) contains just: >> >> #!/usr/bin/python2.6 >> >> import scipy as sp >> >> print "hello world" >> >> Any clue? >> >> Thanks >> >> Fabio > > http://www.velocityreviews.com/forums/t570137-textwrangler-and-new-python-version-mac.html > ? > -- > http://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[Mac OSX] TextWrangler "run" command not working properly Fabio <oakwood@email.it> - 2011-04-14 22:52 +0200
Re: TextWrangler "run" command not working properly Jon Clements <joncle@googlemail.com> - 2011-04-14 14:01 -0700
Re: TextWrangler "run" command not working properly Ernest Obusek <ernest@willowfalls.net> - 2011-04-14 17:14 -0400
Re: TextWrangler "run" command not working properly Fabio <oakwood@email.it> - 2011-04-17 14:07 +0200
Re: TextWrangler "run" command not working properly Fabio <oakwood@email.it> - 2011-04-15 10:51 +0200
Re: TextWrangler "run" command not working properly Brian Blais <bblais@bryant.edu> - 2011-04-15 05:57 -0400
csiph-web