[yt-users] Problem importing yt.mods

Matthew Turk matthewturk at gmail.com
Mon May 5 06:27:35 PDT 2014


Hi Saqib,

On Mon, May 5, 2014 at 7:58 AM, Saqib Nawaz <saqib_dola at yahoo.com> wrote:
>
> hello everyone,
>
> I am new to enzo. I am trying to make a phase plot from a.py script.
> but I am getting following errors.
>
> from: can't read /var/mail/yt.mods
> ./a.py: line 4: syntax error near unexpected token `('
> ./a.py: line 4: `pf = load("IsolatedGalaxy/galaxy0030")'
>
> Is yt is not activated right? yt_install.log file is also attached.
>
> thanks in advance,
> Saqib

It's not clear to me how you're running the script, but it almost
looks like you're running it through bash.  You need to run it through
Python, like:

python2.7 your_script_filename.py

-Matt

>
>
>
>
> _______________________________________________
> 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