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


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

XCode and Python

Started bySebastian M Cheung <minscheung@googlemail.com>
First post2015-06-11 15:07 -0700
Last post2015-06-12 11:36 -0700
Articles 4 — 3 participants

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


Contents

  XCode and Python Sebastian M Cheung <minscheung@googlemail.com> - 2015-06-11 15:07 -0700
    Re: XCode and Python Sebastian M Cheung <minscheung@googlemail.com> - 2015-06-11 15:09 -0700
      Re: XCode and Python "C.D. Reimer" <chris@cdreimer.com> - 2015-06-11 15:30 -0700
      Re: XCode and Python Ned Deily <nad@acm.org> - 2015-06-12 11:36 -0700

#92503 — XCode and Python

FromSebastian M Cheung <minscheung@googlemail.com>
Date2015-06-11 15:07 -0700
SubjectXCode and Python
Message-ID<7c1d1120-5afb-431c-9f90-457f5694c87c@googlegroups.com>
For some reason I cannot build now in XCode:

$ xcodebuild -find python
/Users/sebc/anaconda/bin/python

$python
Python 2.7.10 |Anaconda 2.2.0 (x86_64)| (default, May 28 2015, 17:04:42) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org

But XCode now simply say error

env: python: No such file or directory
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 127

I couldn't find anything relating XCode for iPhone related to Python build? I am using
anaconda Python

Anyone? 

[toc] | [next] | [standalone]


#92504

FromSebastian M Cheung <minscheung@googlemail.com>
Date2015-06-11 15:09 -0700
Message-ID<90a23bdc-7703-4397-b83a-92718ae10c48@googlegroups.com>
In reply to#92503
On Thursday, June 11, 2015 at 11:07:59 PM UTC+1, Sebastian M Cheung wrote:
> For some reason I cannot build now in XCode:
> 
> $ xcodebuild -find python
> /Users/sebc/anaconda/bin/python
> 
> $python
> Python 2.7.10 |Anaconda 2.2.0 (x86_64)| (default, May 28 2015, 17:04:42) 
> [GCC 4.2.1 (Apple Inc. build 5577)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> Anaconda is brought to you by Continuum Analytics.
> Please check out: http://continuum.io/thanks and https://binstar.org
> 
> But XCode now simply say error
> 
> env: python: No such file or directory
> Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 127
> 
> I couldn't find anything relating XCode for iPhone related to Python build? I am using
> anaconda Python
> 
> Anyone?

Or I need to configure something in Xcode?

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


#92505

From"C.D. Reimer" <chris@cdreimer.com>
Date2015-06-11 15:30 -0700
Message-ID<mailman.409.1434061832.13271.python-list@python.org>
In reply to#92504
On 6/11/2015 3:09 PM, Sebastian M Cheung via Python-list wrote:
> Or I need to configure something in Xcode? 

Perhaps this link might help determine if the problem is with Xcode 
and/or Python.

http://stackoverflow.com/questions/5276967/python-in-xcode-6

Chris R.

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


#92545

FromNed Deily <nad@acm.org>
Date2015-06-12 11:36 -0700
Message-ID<mailman.432.1434134187.13271.python-list@python.org>
In reply to#92504
In article <90a23bdc-7703-4397-b83a-92718ae10c48@googlegroups.com>,
 Sebastian M Cheung via Python-list <python-list@python.org> wrote:
> On Thursday, June 11, 2015 at 11:07:59 PM UTC+1, Sebastian M Cheung wrote:
> > For some reason I cannot build now in XCode:
> > 
> > $ xcodebuild -find python
> > /Users/sebc/anaconda/bin/python
> > 
> > $python
> > Python 2.7.10 |Anaconda 2.2.0 (x86_64)| (default, May 28 2015, 17:04:42) 
> > [GCC 4.2.1 (Apple Inc. build 5577)] on darwin
> > Type "help", "copyright", "credits" or "license" for more information.
> > Anaconda is brought to you by Continuum Analytics.
> > Please check out: http://continuum.io/thanks and https://binstar.org
> > 
> > But XCode now simply say error
> > 
> > env: python: No such file or directory
> > Command 
> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolcha
> > in/usr/bin/clang failed with exit code 127
> > 
> > I couldn't find anything relating XCode for iPhone related to Python build? 
> > I am using
> > anaconda Python
> > Anyone?
> Or I need to configure something in Xcode?

Wild guess: did you by any chance delete the Apple-supplied system 
python?  What is the result of:
$ /usr/bin/python -c 'import sys;print(sys.version)'

-- 
 Ned Deily,
 nad@acm.org

[toc] | [prev] | [standalone]


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


csiph-web