Ocatave Symbolic "Python cannot import SymPy"
<p>After installing octave, sympy (through anaconda), and the symbolic package, I'm trying to run this line in octave as part of a script:</p>

<pre><code>syms nn nb x
</code></pre>

<p>When I do I get this message:</p>

<pre><code>warning: the 'syms' function belongs to the symbolic package from Octave Forge
which you have installed but not loaded.  To load the package, run `pkg
load symbolic' from the Octave prompt.
</code></pre>

<p>After:</p>

<pre><code>pkg load symbolic
syms nn nb x
</code></pre>

<p>I get:</p>

<pre><code>Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "sympy/__init__.py", line 27, in &lt;module&gt;
    raise ImportError("It appears 2to3 has been run on the codebase. Use "
 ImportError: It appears 2to3 has been run on the codebase. Use Python 3 or get the original source code.
OctSymPy v2.4.0: this is free software without warranty, see source.
Initializing communication with SymPy using a popen2() pipe.
error: Python cannot import SymPy: have you installed SymPy?
error: called from
     assert_have_python_and_sympy at line 37 column 5
     python_ipc_popen2 at line 78 column 5
     python_ipc_driver at line 57 column 13
     python_cmd at line 166 column 9
     sym at line 365 column 5
     syms at line 162 column 9
</code></pre>

<p>I'm using OSX El Capitan and I installed Octave through homebrew. </p>

<p>If I'm being honest, I have no clue what is going on here... Is it that octave is unable to properly communicate with sympy? If so I'm guessing there might be a simple way to fix this? If this isn't it what should I do? I'm open to restarting the process.</p>

<p>I'd like to apologize for any formatting issues ahead of time, this is my first time asking. I didn't see any questions covering this but if I missed something obvious, I'm sorry again. </p>

<p>Thank you!</p>

<p>It looks like you have an old version of SymPy. Try upgrading to the newest version (1.0 at the time of writing). </p>

python osx octave sympy