Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The value of <code>PYTHONPATH</code> does not indicate which <code>python</code> executable to run. Rather, it is a way to augment in which directories a <code>python</code> executable looks for modules during import operations. Apple ships versions of Python with OS X; the path to those interpreters are in <code>/usr/bin</code>. From the paths in your traceback (<code>/Library/Frameworks</code>), you appear to have installed a newer Python 2.7, possibly downloaded from python.org. By default, that python probably has symlinks to it installed in <code>/usr/local/bin</code>; its canonical <code>bin</code> directory is in the framework, at <code>/Library/Frameworks/Python.framework/Versions/2.7/bin</code>. While your shell path, <code>$PATH</code>, may have been set up to include that bin directory at the front of the search path so that the newer python is found in a shell, that probably doesn't work for Xcode. In other words, Xcode is using the system Python, not the newer Python you installed. You'll likely need to change some variables in your Xcode project so that the that path is searched first for that Python (or use an absolute path to the interpreter). You should remove the <code>PYTHONPATH</code> environment variable pointing at the <code>site-library</code>. Each Python will, by default, automatically search its <code>site-library</code>. More information is <a href="http://docs.python.org/using/cmdline.html#environment-variables" rel="nofollow">here</a>.</p> <p>UPDATE: You may have a more basic issue here. I have no experience with <code>PEAK</code> or <code>PEAK-rules</code> but note that there are two separate distributions listed in the Python Package Index. If you just want to use PEAK rules, it appears that you need to install <em>just</em> the <a href="http://pypi.python.org/pypi/PEAK-Rules/" rel="nofollow">PEAK-rules</a> distribution and <em>not</em> the <a href="http://pypi.python.org/pypi/PEAK/" rel="nofollow">PEAK</a> one listed in PyPI. To use with the system Python, try this:</p> <pre><code>umask 022 sudo /usr/bin/easy_install-2.7 -m peak # "uninstall" peak if installed sudo /usr/bin/easy_install-2.7 peak-rules # install peak-rules </code></pre> <p>If you want to use the newer non-system Python, just install and use a copy of <code>easy_install</code> (google for <code>PyPI distribute</code>) or <code>pip</code> for it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload