Whenever I try to debug Django's manage.py
from Eclipse I get:
pydev debugger: warning: psyco not available for speedups (the debugger will still work correctly, but a bit slower)
pydev debugger: starting
Traceback (most recent call last):
File "/proj/virtualenvs/testing/infocards/manage.py", line 15, in <module>
execute_manager(settings)
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/core/management/commands/runserver.py", line 67, in handle
self.run(*args, **options)
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/core/management/commands/runserver.py", line 76, in run
autoreload.main(self.inner_run, args, options)
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/utils/autoreload.py", line 131, in main
reloader(main_func, args, kwargs)
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/utils/autoreload.py", line 104, in python_reloader
reloader_thread()
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/utils/autoreload.py", line 83, in reloader_thread
ensure_echo_on()
File "/proj/virtualenvs/testing/lib/python2.6/site-packages/django/utils/autoreload.py", line 77, in ensure_echo_on
attr_list = termios.tcgetattr(fd)
termios.error: (22, 'Invalid argument')
Validating models...
Running python manage.py runserver
from the command line works fine.
Googling around I found that the termios.error: (22, 'Invalid argument')
error is because python is trying to read from stdin but cannot from inside the Eclipse environment.
[Edit]: I forgot to mention that I am running PyDev and the latest 1.3 version of Django.
[Edit]: @Blake, @izhak. I Eclipse I have defined the Python included in my virtualenv (/proj/virtualenvs/testing as you can see from the output). From the command line I use the same Python version as I have activated the virtualenv.