[LLVMbugs] [Bug 11661] New: set-xcode-analyzer fails if Python 2.7 is installed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Dec 27 13:02:21 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11661
Bug #: 11661
Summary: set-xcode-analyzer fails if Python 2.7 is installed
Product: clang
Version: 3.0
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: e28eta at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
This is with checker-258, on OS X 10.6.8.
I have python 2.7 installed as a dependency of something else through MacPorts.
When I run set-xcode-analyzer, it fails with an import error:
$ ./set-xcode-analyzer
Traceback (most recent call last):
File "./set-xcode-analyzer", line 9, in <module>
from AppKit import *
ImportError: No module named AppKit
Searching the web for this particular error or to find the download for AppKit
fails, because it apparently comes bundled with the OS. I finally found it with
a `locate`
I don't know the best way to solve this. I changed the first line of the script
to run python2.6 instead of python, and that worked for my machine. I don't
think the same fix would work for everyone.
Maybe just some documentation that users need to use a python that came bundled
with their OS? Or a way to detect and print a helpful tip to the user when the
script fails?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list