I am on MacOSX Snow Leopard and I’m using python 2.6.5 installed with macports. I’m inside a virtualenv.
I can’t run python manage.py shell after installing IPython but I can run IPython standalone.
I figured out that the following line is what causes the issue:
(status, result) = commands.getstatusoutput("otool -L %s | grep libedit" % _rl.__file__ )
This happens because for a strange reason, the method getstatusoutput is not available when i launch python manage.py shell but it’s available when I launch ipython. I can import the commands module in both cases.
I tried looking at the sys.path during the execution of both, but there are no differences.
Are they the same
commands? Tryprint commands.__file__in each. You may find that your project has a module called “commands” which shadows the stdlib module.