Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91498
| Path | csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <lac@openend.se> |
| 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; 'python,': 0.02; 'subject:Python': 0.05; 'skip:/ 10': 0.07; '-------': 0.09; 'directions': 0.09; 'get.': 0.09; 'lines:': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'runtime': 0.09; 'subtle': 0.09; 'terminate.': 0.09; 'cc:addr :python-list': 0.10; 'thread': 0.10; 'python': 0.11; 'python.': 0.11; '2.7': 0.13; 'files.': 0.13; 'up-to-date': 0.13; 'packages.': 0.15; "apple's": 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'earlier:': 0.16; 'fatal': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'googled': 0.16; 'message- id:@fido.openend.se': 0.16; 'outdated': 0.16; 'py2app': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'skip:/ 70': 0.16; 'subject:Mac': 0.16; 'subject:after': 0.16; 'subject:install': 0.16; 'which,': 0.16; 'laura': 0.18; 'resolved': 0.18; 'tend': 0.18; 'typing': 0.18; 'working.': 0.18; 'versions': 0.20; 'first,': 0.20; 'cc:addr:python.org': 0.21; 'cc:2**1': 0.22; 'do.': 0.22; 'fixing': 0.22; 'noted': 0.22; 'leave': 0.23; '2015': 0.23; 'third-party': 0.23; 'this:': 0.23; 'file.': 0.24; 'seems': 0.24; 'install': 0.25; 'question': 0.26; 'linux': 0.26; 'not,': 0.27; 'skip:( 20': 0.28; 'appear': 0.29; '(it': 0.29; 'closer': 0.29; 'received:se': 0.29; 'array': 0.29; 'cc:no real name:2**1': 0.29; 'certainly': 0.31; 'fri,': 0.31; 'url:mailman': 0.31; 'code': 0.31; 'date:': 0.32; 'says': 0.32; 'framework': 0.32; 'getting': 0.33; 'url:python': 0.33; '-0700': 0.33; 'choosing': 0.33; 'safely': 0.33; 'utility': 0.33; 'open': 0.33; 'running': 0.34; 'message.': 0.34; 'url:listinfo': 0.35; 'could': 0.35; 'done': 0.35; 'installing': 0.35; 'instance': 0.35; 'path': 0.35; 'really': 0.35; "isn't": 0.35; 'but': 0.36; 'url:org': 0.36; 'there': 0.36; 'possible': 0.36; '(and': 0.36; 'apple': 0.36; "let's": 0.36; 'stock': 0.36; 'subject:': 0.36; 'forwarded': 0.37; 'so,': 0.37; 'two': 0.37; 'should': 0.37; 'operating': 0.37; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'mac': 0.37; 'python.org': 0.38; 'files': 0.38; 'end': 0.39; 'application': 0.39; 'does': 0.39; 'build': 0.40; 'sure': 0.40; 'subject:the': 0.40; 'some': 0.40; 'your': 0.60; 'back': 0.61; 'skip:u 10': 0.62; 'header:Message-Id:1': 0.62; 'skip:n 10': 0.63; 'results': 0.66; 'backup': 0.66; 'restore': 0.70; 'answer.': 0.72; 'jul': 0.72; 'received:89': 0.80; '2.7.1': 0.84; '4.2.1': 0.84; 'accurately': 0.84; 'located.': 0.84 |
| To | rockingv@icloud.com |
| cc | python-list@python.org, lac@openend.se |
| From | Laura Creighton <lac@openend.se> |
| Subject | Re: Fixing Python install on the Mac after running 'CleanMyMac' (fwd) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-ID | <31590.1432929378.1@fido> |
| Date | Fri, 29 May 2015 21:56:18 +0200 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Fri, 29 May 2015 21:56:21 +0200 (CEST) |
| 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.206.1432929394.5151.python-list@python.org> (permalink) |
| Lines | 85 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1432929394 news.xs4all.nl 2898 [2001:888:2000:d::a6]:49005 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:91498 |
Show key headers only | View raw
Good news, we are getting closer to understanding what to do.
This in from Ned. I will continue after the message:
------- Forwarded Message
Return-Path: <python-list-bounces+lac=openend.se@python.org>
From: Ned Deily <nad@acm.org>
Subject: Re: Fixing Python install on the Mac after running 'CleanMyMac'
Date: Fri, 29 May 2015 10:28:19 -0700
Lines: 63
> Might that appear to work at first, but leave some subtle issues which are
> not at first apparent? I don't know how intertwined Apple's Python instance
> is in the day-to-day operation of the operating system (it certainly seems
> to be on some Linux distros), but it's possible that some Apple-specific
> package isn't available at part of the stock Python 2.7 distribution.
Installing a python.org Python (/usr/local/bin/python*) is independent
of and does not interfere with use of the Apple-supplied system Pythons
(/usr/bin/python*). Apple does ship various third-party Python packages
("distributions") with its system Python, like numpy, but they tend to
be old and outdated versions and there are a few Apple-only packages.
But, should that issue arise, that can be resolved by choosing the right
path (/usr/local/bin vs /usr/bin) or removing /usr/local/bin from $PATH.
The thing is the original message in this thread had this:
> They are getting:
> Utility has encountered a fatal error, and will now terminate. A
> Python runtime could not be located. You may need to install a
> framework build of Python or edit the PyRuntimeLocations array in this
> applications info.plist file. Then there are two oblong circles. One
> says Open Console. The other says Terminate.
But ... I just did what I should have done earlier: googled for that
message. And I find that the message is coming from a py2app-built
application (and it seems I answered the question 3 years ago!):
http://stackoverflow.com/questions/10184974/py2app-is-not-copying-the-pyt
hon-framework-to-the-new-app-while-using-virutalenv
The py2app glue code could be looking for Pythons in various spots
including the system Python. So, let's make sure the system Python is
still working. On the most up-to-date 10.7 Lion system (10.7.5), typing
the following two commands should give results the same as those shown
(->):
/usr/bin/python2.7 -c 'import sys;print(sys.version)'
- -> 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
- -> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
/usr/bin/python2.7 -c 'import numpy;print(numpy.__file__)'
- ->
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/pytho
n/numpy/__init__.py
If not, then it really may be necessary to restore system files which,
as I noted before, is most safely and accurately done by following
Apple's directions to restore the system from the recovery partition and
a good backup of user files.
- --
Ned Deily,
nad@acm.org
- --
https://mail.python.org/mailman/listinfo/python-list
------- End of Forwarded Message
So please type
/usr/bin/python2.7 -c 'import sys;print(sys.version)'
and tell me what you get as an answer.
Then type
/usr/bin/python2.7 -c 'import numpy;print(numpy.__file__)'
and again tell me what you get.
But if it isn't as Ned expects, then you may have to go back to
your backups.
Laura
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Fixing Python install on the Mac after running 'CleanMyMac' (fwd) Laura Creighton <lac@openend.se> - 2015-05-29 21:56 +0200
Re: Fixing Python install on the Mac after running 'CleanMyMac' (fwd) kacyjones@lclark.edu - 2015-09-20 20:00 -0700
Re: Fixing Python install on the Mac after running 'CleanMyMac' (fwd) Ned Deily <nad@acm.org> - 2015-09-26 10:00 -0400
csiph-web