Debugging pserve using Eclipse?

131 views
Skip to first unread message

Johann MacDonagh

unread,
Feb 7, 2012, 12:12:03 AM2/7/12
to pylons-...@googlegroups.com

I'm getting started with Pyramid development on Windows. I have Python 2.7 installed. I used virtualenv to create a nice sandbox for my Pyramid app. I also created PyDev 2.4 on Eclipse Indigo. I also created a separate PyDev interpreter just for my virutalenv, so it should have access to all the directories.

I set up a new debug configuration.

  • Project: testapp (the only project in the workspace)
  • Main module: ${workspace_loc:testapp/Scripts/pserve-script.py}
  • Args: development.ini
  • Working dir: Other: ${workspace_loc:testapp/testapp}

When I hit Debug, the output is:

pydev debugger: starting
Starting server in PID 2208.
Unhandled exception in thread started by 
Traceback (most recent call last):
  File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.3.0.2011121518\pysrc\pydevd.py", line 200, in __call__
Unhandled exception in thread started by 
Traceback (most recent call last):
    Unhandled exception in thread started by 
Traceback (most recent call last):
  File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.3.0.2011121518\pysrc\pydevd.py", line 200, in __call__
self.original_func(*self.args, **self.kwargs)
Unhandled exception in thread started by 
  File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.3.0.2011121518\pysrc\pydevd.py", line 200, in __call__
    TypeErrorTraceback (most recent call last):
    self.original_func(*self.args, **self.kwargs)
:   File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.3.0.2011121518\pysrc\pydevd.py", line 200, in __call__
self.original_func(*self.args, **self.kwargs)
TypeErrorThreadedTaskDispatcher object argument after ** must be a mapping, not tuple    TypeError: 
self.original_func(*self.args, **self.kwargs)
: ThreadedTaskDispatcher object argument after ** must be a mapping, not tupleTypeErrorThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
serving on http://0.0.0.0:6543
 

Even though it says the server is running, it's not. Nothing is listening on that port.

Any idea on how to fix this? Debugging certainly isn't necessary, but I like having a fully set up development environment. Thanks!

Arndt Droullier

unread,
Feb 7, 2012, 4:57:01 AM2/7/12
to pylons-...@googlegroups.com
Am Montag, den 06.02.2012, 21:12 -0800 schrieb Johann MacDonagh:
> I'm getting started with Pyramid development on Windows. I have Python
> 2.7 installed. I used virtualenv to create a nice sandbox for my
> Pyramid app. I also created PyDev 2.4 on Eclipse Indigo. I also
> created a separate PyDev interpreter just for my virutalenv, so it
> should have access to all the directories.
>

It seems Eclipse is using PyDev 2.3, not 2.4. You could try to remove
and reinstall PyDev.

Johann MacDonagh

unread,
Feb 7, 2012, 6:10:18 PM2/7/12
to pylons-...@googlegroups.com
Oops, I misread my version. I updated to 2.4 but still get the same error:

Unhandled exception in thread started by 
Traceback (most recent call last):
Unhandled exception in thread started by 
Traceback (most recent call last):
  File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydevd.py", line 200, in __call__
  File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydevd.py", line 200, in __call__
    Unhandled exception in thread started by 
Traceback (most recent call last):
    self.original_func(*self.args, **self.kwargs)
  File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydevd.py", line 200, in __call__
self.original_func(*self.args, **self.kwargs)
TypeErrorUnhandled exception in thread started by 
Traceback (most recent call last):
    TypeError:   File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydevd.py", line 200, in __call__
self.original_func(*self.args, **self.kwargs)
: ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple    TypeErrorThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
self.original_func(*self.args, **self.kwargs)
TypeErrorThreadedTaskDispatcher object argument after ** must be a mapping, not tuple: 

Leo

unread,
Feb 20, 2012, 8:21:27 PM2/20/12
to pylons-...@googlegroups.com
Did you ever figure this out?
Reply all
Reply to author
Forward
0 new messages