[yt-users] Issue with "yt serve command"
k.grisdale at surrey.ac.uk
k.grisdale at surrey.ac.uk
Thu Sep 5 08:03:05 PDT 2013
Hi Matt,
Thanks for the quick reply and help. As I said I am very new to python and so am unsure how to apply the PR. Do I just go to the ext direct_repl.py file on my computer and make the same changes that you have made or do I need to do something different?
Thanks
Kearn
On 5 Sep 2013, at 15:37, Matthew Turk <matthewturk at gmail.com>
wrote:
> Hi Kearn,
>
> There was a recent change to matplotlib that set the default backend
> to be OSX, which won't work with the yt installation of Python. We've
> updated our install script to work around this. I've issued a PR to
> fix the behavior you're seeing, which I believe should be isolated to
> the "yt serve" command. Here's the PR:
>
> https://bitbucket.org/yt_analysis/yt/pull-request/585/hotfix-for-when-matplotlib-default-backend/diff
>
> I think it should be good to go, but someone else will have to accept.
>
> -Matt
>
> On Thu, Sep 5, 2013 at 9:40 AM, <k.grisdale at surrey.ac.uk> wrote:
>> Hi,
>>
>> I am a new user to both python and yt. I have installed yt on a MacBook Pro running os x 10.8.4.
>>
>> I installed yt by following the steps on yt-project.org. The install went without displaying any errors. When the install completed it gave me several instructions, first the source command and then to use the "yt serve" command.
>>
>> However when I type in the "yt serve" command after the source command I get the message below in the terminal and nothing else happens.
>>
>> I have installed python separately using home-brew and the command "$ brew install python --framework"
>>
>> I am using the b118390aa42c version of yt.
>>
>> Can anyone suggest how I can get yt serve to work.
>>
>> Thanks
>>
>> Kearn
>>
>>
>> Traceback (most recent call last):
>> File "/Applications/Code/yt/yt-x86_64/bin/yt", line 9, in <module>
>> load_entry_point('yt==2.5.5', 'console_scripts', 'yt')()
>> File "/Applications/Code/yt/yt-x86_64/src/yt-hg/yt/utilities/command_line.py", line 1696, in run_main
>> args.func(args)
>> File "/Applications/Code/yt/yt-x86_64/src/yt-hg/yt/utilities/command_line.py", line 94, in run
>> self(args)
>> File "/Applications/Code/yt/yt-x86_64/src/yt-hg/yt/utilities/command_line.py", line 1561, in __call__
>> hr = ExtDirectREPL(reasonjs_path, use_pyro=args.use_pyro)
>> File "/Applications/Code/yt/yt-x86_64/src/yt-hg/yt/gui/reason/extdirect_repl.py", line 249, in __init__
>> reason_pylab()
>> File "/Applications/Code/yt/yt-x86_64/src/yt-hg/yt/gui/reason/extdirect_repl.py", line 193, in reason_pylab
>> import pylab, matplotlib
>> File "/Applications/Code/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-macosx-10.4-x86_64.egg/pylab.py", line 1, in <module>
>> from matplotlib.pylab import *
>> File "/Applications/Code/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-macosx-10.4-x86_64.egg/matplotlib/pylab.py", line 269, in <module>
>> from matplotlib.pyplot import *
>> File "/Applications/Code/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-macosx-10.4-x86_64.egg/matplotlib/pyplot.py", line 98, in <module>
>> _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
>> File "/Applications/Code/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-macosx-10.4-x86_64.egg/matplotlib/backends/__init__.py", line 25, in pylab_setup
>> globals(),locals(),[backend_name])
>> File "/Applications/Code/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-macosx-10.4-x86_64.egg/matplotlib/backends/backend_macosx.py", line 21, in <module>
>> from matplotlib.backends import _macosx
>> RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends.
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
More information about the yt-users
mailing list