New yt installation problem

Hi After failure with the canonical install script I foloowed instruction for the manual installation procedure. This method gave me success. However, invoking the "iyt" gives me following warning (seems not a clean run). The good news is that ignoring this warning, I could plot Enzo data using pylab.plot. Here one important point I noticed is that, in earlier version, I had to use pylab.show() command to plot on the screen after declaration of pylab.xlabel, pylab.ylabel and pylab.plot commands. Here, as soon as I use pylab.xlabel, I find graphics window on the screen which adpts all the subsequient command and hence do not require any pylab.show(). For the warning, I checked all path is given in .cshrc. In ~/.ipython/ipy_user_conf.py file, the problem is given by "o = ip.options" line. Any handle? regs Abhijit
IndentationError Traceback (most recent call last) /usr/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload) 61 reload(sys.modules[modname]) 62 else: ---> 63 __import__(modname) 64 65 IndentationError: unindent does not match any outer indentation level (ipy_user_conf.py, line 52) WARNING: Loading of ipy_user_conf failed. Welcome to yt! In [1]:

Hi Abhijit, Sorry to hear that upgrade didn't work; very puzzling. Glad to hear, however, that the fresh install worked for you! The error with ipy_user_conf.py is confusing. That's a file that should ship with IPython, and which we don't make any modifications to. Could you post a slightly longer excerpt? It seems that the issue might be with the level of indentation. Or, even attach ~/.ipython/ipy_user_conf.py? Thanks, Matt On Sun, Jun 27, 2010 at 1:24 PM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:

Hi Matt, Here is the ipy_user_conf file. Best Abhijit ________________________________ From: Matthew Turk <matthewturk@gmail.com> To: Discussion of the yt analysis package <yt-users@lists.spacepope.org> Sent: Mon, 28 June, 2010 2:44:31 AM Subject: Re: [yt-users] New yt installation problem Hi Abhijit, Sorry to hear that upgrade didn't work; very puzzling. Glad to hear, however, that the fresh install worked for you! The error with ipy_user_conf.py is confusing. That's a file that should ship with IPython, and which we don't make any modifications to. Could you post a slightly longer excerpt? It seems that the issue might be with the level of indentation. Or, even attach ~/.ipython/ipy_user_conf.py? Thanks, Matt On Sun, Jun 27, 2010 at 1:24 PM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Abhijit, If you remove a single space from the front of line 33, which currently has 5 spaces, so that it only has 4, it should work. This is the line that says "import ipy_profile_sh". Best, Matt On Tue, Jun 29, 2010 at 7:58 AM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:

Hi Matt I did it. Now the error is different and I am pasting the warning message. Best Abhijit
System command list not initialized, probably the first run... running %rehashx to refresh the command list. Run %rehashx again to refresh command list (after installing new software etc.) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /usr/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload) 61 reload(sys.modules[modname]) 62 else: ---> 63 __import__(modname) 64 65 /home/vega/.ipython/ipy_user_conf.py in <module>() 112 ip.ex('execfile("%s")' % os.path.expanduser(fname)) 113 --> 114 main() 115 116 /home/vega/.ipython/ipy_user_conf.py in main() 31 # uncomment if you want to get ipython -p sh behaviour 32 # without having to use command line switches ---> 33 import ipy_profile_sh 34 35 # Configure your favourite editor? /usr/local/lib/python2.6/site-packages/IPython/Extensions/ipy_profile_sh.py in <module>() 268 ip.IP.runlines = _runlines 269 --> 270 main() 271 272 /usr/local/lib/python2.6/site-packages/IPython/Extensions/ipy_profile_sh.py in main() 131 132 ip.set_hook('input_prefilter', slash_prefilter_f) --> 133 extend_shell_behavior(ip) 134 135 class LastArgFinder: /usr/local/lib/python2.6/site-packages/IPython/Extensions/ipy_profile_sh.py in extend_shell_behavior(ip) 172 ip.IP.__sig__ = 0xa005 173 # mark the IPSHELL with this signature --> 174 ip.IP.user_ns['__builtins__'].__dict__['__sig__'] = ip.IP.__sig__ 175 176 from IPython.Itpl import ItplNS AttributeError: 'dict' object has no attribute '__dict__' WARNING: Loading of ipy_user_conf failed. Welcome to yt! [~/.ipython]|1> ________________________________ From: Matthew Turk <matthewturk@gmail.com> To: Discussion of the yt analysis package <yt-users@lists.spacepope.org> Sent: Tue, 29 June, 2010 8:44:54 PM Subject: Re: [yt-users] New yt installation problem Hi Abhijit, If you remove a single space from the front of line 33, which currently has 5 spaces, so that it only has 4, it should work. This is the line that says "import ipy_profile_sh". Best, Matt On Tue, Jun 29, 2010 at 7:58 AM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Abhijit, This looks just like incompatible IPython upgrades, or something along those lines. If you move the ~/.ipython directory out of the way, it will re-initialize the default shell scripts, and that should be clear -- I'd suggest "mv ~/.ipython ~/.ipython_old" and then that might work. Otherwise, I think things should still work, independent of the IPython installation. :) Best, Matt On Tue, Jun 29, 2010 at 8:24 AM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:

Hi Matt Simply Fantastic advice. I moved the ipython dir to some other name and ran "iyt" which re-installed the .ipython dir and now there is no error. Thanks a lot. Best Abhi ________________________________ From: Matthew Turk <matthewturk@gmail.com> To: Discussion of the yt analysis package <yt-users@lists.spacepope.org> Sent: Tue, 29 June, 2010 9:10:09 PM Subject: Re: [yt-users] New yt installation problem Hi Abhijit, This looks just like incompatible IPython upgrades, or something along those lines. If you move the ~/.ipython directory out of the way, it will re-initialize the default shell scripts, and that should be clear -- I'd suggest "mv ~/.ipython ~/.ipython_old" and then that might work. Otherwise, I think things should still work, independent of the IPython installation. :) Best, Matt On Tue, Jun 29, 2010 at 8:24 AM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Abhijit, Sorry to hear that upgrade didn't work; very puzzling. Glad to hear, however, that the fresh install worked for you! The error with ipy_user_conf.py is confusing. That's a file that should ship with IPython, and which we don't make any modifications to. Could you post a slightly longer excerpt? It seems that the issue might be with the level of indentation. Or, even attach ~/.ipython/ipy_user_conf.py? Thanks, Matt On Sun, Jun 27, 2010 at 1:24 PM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:

Hi Matt, Here is the ipy_user_conf file. Best Abhijit ________________________________ From: Matthew Turk <matthewturk@gmail.com> To: Discussion of the yt analysis package <yt-users@lists.spacepope.org> Sent: Mon, 28 June, 2010 2:44:31 AM Subject: Re: [yt-users] New yt installation problem Hi Abhijit, Sorry to hear that upgrade didn't work; very puzzling. Glad to hear, however, that the fresh install worked for you! The error with ipy_user_conf.py is confusing. That's a file that should ship with IPython, and which we don't make any modifications to. Could you post a slightly longer excerpt? It seems that the issue might be with the level of indentation. Or, even attach ~/.ipython/ipy_user_conf.py? Thanks, Matt On Sun, Jun 27, 2010 at 1:24 PM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Abhijit, If you remove a single space from the front of line 33, which currently has 5 spaces, so that it only has 4, it should work. This is the line that says "import ipy_profile_sh". Best, Matt On Tue, Jun 29, 2010 at 7:58 AM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:

Hi Matt I did it. Now the error is different and I am pasting the warning message. Best Abhijit
System command list not initialized, probably the first run... running %rehashx to refresh the command list. Run %rehashx again to refresh command list (after installing new software etc.) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /usr/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload) 61 reload(sys.modules[modname]) 62 else: ---> 63 __import__(modname) 64 65 /home/vega/.ipython/ipy_user_conf.py in <module>() 112 ip.ex('execfile("%s")' % os.path.expanduser(fname)) 113 --> 114 main() 115 116 /home/vega/.ipython/ipy_user_conf.py in main() 31 # uncomment if you want to get ipython -p sh behaviour 32 # without having to use command line switches ---> 33 import ipy_profile_sh 34 35 # Configure your favourite editor? /usr/local/lib/python2.6/site-packages/IPython/Extensions/ipy_profile_sh.py in <module>() 268 ip.IP.runlines = _runlines 269 --> 270 main() 271 272 /usr/local/lib/python2.6/site-packages/IPython/Extensions/ipy_profile_sh.py in main() 131 132 ip.set_hook('input_prefilter', slash_prefilter_f) --> 133 extend_shell_behavior(ip) 134 135 class LastArgFinder: /usr/local/lib/python2.6/site-packages/IPython/Extensions/ipy_profile_sh.py in extend_shell_behavior(ip) 172 ip.IP.__sig__ = 0xa005 173 # mark the IPSHELL with this signature --> 174 ip.IP.user_ns['__builtins__'].__dict__['__sig__'] = ip.IP.__sig__ 175 176 from IPython.Itpl import ItplNS AttributeError: 'dict' object has no attribute '__dict__' WARNING: Loading of ipy_user_conf failed. Welcome to yt! [~/.ipython]|1> ________________________________ From: Matthew Turk <matthewturk@gmail.com> To: Discussion of the yt analysis package <yt-users@lists.spacepope.org> Sent: Tue, 29 June, 2010 8:44:54 PM Subject: Re: [yt-users] New yt installation problem Hi Abhijit, If you remove a single space from the front of line 33, which currently has 5 spaces, so that it only has 4, it should work. This is the line that says "import ipy_profile_sh". Best, Matt On Tue, Jun 29, 2010 at 7:58 AM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Abhijit, This looks just like incompatible IPython upgrades, or something along those lines. If you move the ~/.ipython directory out of the way, it will re-initialize the default shell scripts, and that should be clear -- I'd suggest "mv ~/.ipython ~/.ipython_old" and then that might work. Otherwise, I think things should still work, independent of the IPython installation. :) Best, Matt On Tue, Jun 29, 2010 at 8:24 AM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:

Hi Matt Simply Fantastic advice. I moved the ipython dir to some other name and ran "iyt" which re-installed the .ipython dir and now there is no error. Thanks a lot. Best Abhi ________________________________ From: Matthew Turk <matthewturk@gmail.com> To: Discussion of the yt analysis package <yt-users@lists.spacepope.org> Sent: Tue, 29 June, 2010 9:10:09 PM Subject: Re: [yt-users] New yt installation problem Hi Abhijit, This looks just like incompatible IPython upgrades, or something along those lines. If you move the ~/.ipython directory out of the way, it will re-initialize the default shell scripts, and that should be clear -- I'd suggest "mv ~/.ipython ~/.ipython_old" and then that might work. Otherwise, I think things should still work, independent of the IPython installation. :) Best, Matt On Tue, Jun 29, 2010 at 8:24 AM, Dr. ABHIJIT BHATTACHARYYA <b_abhijit2k@yahoo.co.in> wrote:
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Dr. ABHIJIT BHATTACHARYYA
-
Matthew Turk