Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #42556 > unrolled thread

Installation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/

Started bykramer65 <kramerh@gmail.com>
First post2013-04-02 03:22 -0700
Last post2013-04-02 16:09 -0700
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Installation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/ kramer65 <kramerh@gmail.com> - 2013-04-02 03:22 -0700
    Re: Installation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/ Jason Swails <jason.swails@gmail.com> - 2013-04-02 09:50 -0400
    Re: Installation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/ Ned Deily <nad@acm.org> - 2013-04-02 16:09 -0700

#42556 — Installation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/

Fromkramer65 <kramerh@gmail.com>
Date2013-04-02 03:22 -0700
SubjectInstallation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/
Message-ID<2c4f00a8-ec73-409c-84da-dea0059b630d@googlegroups.com>
Hello people,


I installed python 2.7 on Mac OSX 10.6.8 with no problems  and it is working fine. When I try to install Kivy however (www.kivy.org), I get an error saying:

/usr/local/bin/kivy: line 24: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: No such file or directory
/usr/local/bin/kivy: line 24: exec: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: cannot execute: No such file or directory

Upon inspection the there are folders named 2.3, 2.5 and 2.6 in the Versions folder, but indeed no folder named "2.7". When I log into the interactive python command line however, it clearly says I've got python 2.7.3 installed.

Does anybody know what the problem might be here?


Kind regards,
kramer

[toc] | [next] | [standalone]


#42563

FromJason Swails <jason.swails@gmail.com>
Date2013-04-02 09:50 -0400
Message-ID<mailman.40.1364910656.17481.python-list@python.org>
In reply to#42556

[Multipart message — attachments visible in raw view] — view raw

On Tue, Apr 2, 2013 at 6:22 AM, kramer65 <kramerh@gmail.com> wrote:

> Hello people,
>
>
> I installed python 2.7 on Mac OSX 10.6.8 with no problems  and it is
> working fine. When I try to install Kivy however (www.kivy.org), I get an
> error saying:
>

How did you install Python 2.7?  How did you install Kivy?  Note that Kivy
states 10.7 or 10.8 is required.

My suggestion is to use MacPorts to build Python 2.7 (or something similar,
like HomeBrew or Fink), then build Kivy from source, rather than using the
Mac installer.  The Mac installer for Kivy would be reasonable in expecting
Python 2.7 to be installed in the standard Frameworks directory since it
requires Python 2.7.

Another option is to grok the MacPorts Portfile for Python 2.7 to figure
out how they compile it using the Mac Framework and emulate that process
when you build Python 2.7 from source (but don't install to /opt/local).

If all else fails, upgrade to 10.7 ;).

Good luck,
Jason

[toc] | [prev] | [next] | [standalone]


#42612

FromNed Deily <nad@acm.org>
Date2013-04-02 16:09 -0700
Message-ID<mailman.28.1364944190.3114.python-list@python.org>
In reply to#42556
In article 
<CAEk9e3q=K9Kjd58fkUooUvzzmbm62s21qcmFjAyuGpQOhk70vA@mail.gmail.com>,
 Jason Swails <jason.swails@gmail.com> wrote:

> On Tue, Apr 2, 2013 at 6:22 AM, kramer65 <kramerh@gmail.com> wrote:
> 
> > Hello people,
> >
> >
> > I installed python 2.7 on Mac OSX 10.6.8 with no problems  and it is
> > working fine. When I try to install Kivy however (www.kivy.org), I get an
> > error saying:
> >
> 
> How did you install Python 2.7?  How did you install Kivy?  Note that Kivy
> states 10.7 or 10.8 is required.

> 
> /> /usr/local/bin/kivy: line 24: 
> > /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: No 
> > such file or directory
> > /usr/local/bin/kivy: line 24: exec: 
> > /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: 
> > cannot execute: No such file or directory
> > 
> > Upon inspection the there are folders named 2.3, 2.5 and 2.6 in the 
> > Versions 
> > folder, but indeed no folder named "2.7". When I log into the interactive 
> > python command line however, it clearly says I've got python 2.7.3 
> > installed.

/System/Library/Frameworks is the location for Apple-supplied system 
Pythons.  OS X 10.6 ships with complete versions of Python 2.6 and 2.5 
(and the shared libs for 2.3).  So you won't find a 2.7 folder there in 
10.6.8.  In OS X 10.7 and 10.8, Apple ships 2.7, 2.6, and 2.5.

If you used one of the python.org installers to install 2.7, it will be 
installed into /Library/Frameworks and, by default, symlinks will be 
installed in /usr/local/bin for python, python2.7, etc.  Since 
/usr/local/bin/kivy appears to be a script of some sort, examine it and 
see exactly what command is on line 24.  The solution might be as simple 
as editing a line there to remove the "/System" part.

> Another option is to grok the MacPorts Portfile for Python 2.7 to figure
> out how they compile it using the Mac Framework and emulate that process
> when you build Python 2.7 from source (but don't install to /opt/local).

I'm not sure what you are proposing there.  But you should never attempt 
to install anything into /System/Library: that's part of OS X and 
controlled by Apple.

-- 
 Ned Deily,
 nad@acm.org

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web