With this, you can also compare the different rendering apps and discover which one you like more. If you are running Octave and wish to change the GNUTERM there, you can do so with the setenv function, like so. You can read more about setting environment variables on StackOverflow. Set GNUTERM to x11 when you want to do your graphing in X11 and set GNUTERM to aqua when you want to do your graphing in AquaTerm. The way you control this is through the environment variable, GNUTERM. If you have installed the X11 variant, you can also choose to do the rendering from within X11. I like AquaTerm because the graphs look really smooth and nice, like you would expect on a Mac :) AquaTerm is basically a vector renderer which Octave can use to plot its graphs. When you install Octave via MacPorts, AquaTerm also gets installed. To get a full list, run: port variants octave-devel This ensures that both of those are in sync.įeel free to add other variants if you like, like X11 support or offline documentation. I added the gcc45 variant because one of the dependencies, atlas, needs gcc45 to compile. To install Octave, run the following from the terminal: sudo port install octave-devel +gcc45Īnd then wait.as there are a lot of things that need being compiled. With octave, I found the scaling of elements on the graph to be different sizes and that bugged me. In my brief testing with the two, the biggest difference for me was that the graphs plotted in octave-devel looked more like their OS counterparts. That being said, it's still pretty easy to get Octave up and running in both Snow Leopard and Lion.Īt the time of this post, here's two version of Octave to choose from: octave (version 3.2.4) and octave-devel (version 3.4.3). Most of the time, installing things with MacPorts is pretty easy however, I have found that GNU Octave can be a little tricky. If they are different Python executables, then the student should either adjust their PATH login environment variable so that it adds the directory that contains the right Python first.Installing Octave on OSX with MacPorts Sunday, November 6, 2011 If SymPy doesn’t work in either, then they haven’t installed it right, and I can’t help much with that. If they are the same, then I see no reason why SymPy shouldn’t work in both instances. Have them run at the Octave command prompt system('python3 -c "import sys print(sys.executable)"') Next check the same thing in their Octave session. Let’s say the student has a working Python and SymPy.įirst have them run a Python session with SymPy, and check what the Python executable is with import sys As a Linux user, helping you, a Windows user, to help your macOS student, is a bit like the telephone game, isn’t it? But I am a Linux user, I don’t have a deep insight into the best way to install or configure these things on macOS. I can give you general tips to give to your student. Symbolic 2.9.0 (as shown in the output above) Valid_sym_assumptions at line 38 column 10Įrror: ipc_popen2: something wrong? timed out starting pythonĭowngrade to sympy-1.5 with pip3 and it works again. Waiting.warning: readblock: timeout of 30 exceeded, breaking out Use import įile "/usr/local/lib/python3.8/dist-packages/sympy/_init_.py", line 677, in _getattr_ĪttributeError: module '' has noattribute 'integer_types' Importing with 'from sympy import *' has beenĭeprecated since SymPy 1.6. Symbolic pkg v2.9.0: /usr/local/lib/python3.8/dist-packages/sympy/_init_.py:672: SymPyDeprecationWarning: Symbolic is not compatible with sympy 1.6 Python interpreter than the one we found? Please try “setenv” asĭescribed above to change your python interpreter. If you do have SymPy installed, maybe it’s installed for a different Unfortunately status was non-zero: probably Python cannot import sympy.ĭo you have SymPy installed? If not, please try to install it and ModuleNotFoundError: No module named ‘sympy’ SymPy is a Python library used by Symbolic for almost all features.Īttempting to run python3 -c “import sympy print(sympy. Let’s check what version of Python we are calling…Īttempting to run python3 -c “import sys print(sys.version)” For example, to use Python 2, tryĪttempting to run python3 -c “print(“Python says hello”)” Need to, you can select a different one using the PYTHON environment The Python interpreter is currently: “python3”.Ĭomputers may have more than one Python interpreter installed. Python and SymPy are needed for most features of the Symbolic package. Note: Macports adds export DISPLAY:0.0 for Mac. Hello, I was waiting for my class today to send you the result of sympref diagnose: (if X11 is installed, typing xterm in a terminal window opens an X11 window).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |