
Hi yt Users,
I'm trying to figure out how to get yt working using an x11-based backend on my mac, so that I can forward python windows. For my non-yt python install, which is handled via macports, the trick (gleaned from http://www.astrobetter.com/remote-display-in-python-ask-astrobetter/) was to use macports to recompile the tk package so that it uses x11 rather than quartz, via the command
sudo port upgrade --enforce-variants tk -quartz +x11
This works fine. However, it is not clear to me how to force a similar change in the sandbox python install used by yt. Nor have I been able to get any other x11-based backend to work with yt's python install on my mac. The packages required for the gtk or wx backends refuse to install via pip install, and the Qt backend fails to load with the cryptic error "no module named sip".
I'd appreciate any suggestions.
-- Mark Krumholz

Hi Mark,
I've never encountered the exact problem you're running into. However, I think a workaround would be to reinstall yt using the python installation you've set up via macports. There is more information on a manual yt installation in the yt docs:
http://yt-project.org/doc/advanced/installing.html#manual-installation
Although it looks like those instructions are a bit out of date. On my mac, I use homebrew to set up python and compiled dependencies of yt and then use pip to install all of the pure-python dependencies. I've used this script (http://paste.yt-project.org/show/3084/) in the past to set up a yt installation based on the current development tip. This will clone the main yt development repository to ~/Documents/src.
I don't know if this will work on a macports-based installation of python.
I hope that was helpful. Perhaps others on the list have had luck setting up X11 forwarding using a sandboxed yt installation on a mac.
-Nathan
On 1/27/13 10:38 AM, Mark Krumholz wrote:
Hi yt Users,
I'm trying to figure out how to get yt working using an x11-based backend on my mac, so that I can forward python windows. For my non-yt python install, which is handled via macports, the trick (gleaned from http://www.astrobetter.com/remote-display-in-python-ask-astrobetter/) was to use macports to recompile the tk package so that it uses x11 rather than quartz, via the command
sudo port upgrade --enforce-variants tk -quartz +x11
This works fine. However, it is not clear to me how to force a similar change in the sandbox python install used by yt. Nor have I been able to get any other x11-based backend to work with yt's python install on my mac. The packages required for the gtk or wx backends refuse to install via pip install, and the Qt backend fails to load with the cryptic error "no module named sip".
I'd appreciate any suggestions.
-- Mark Krumholz
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Mark Krumholz
-
Nathan Goldbaum