Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I debug pserve using Eclipse?
    primarykey
    data
    text
    <p>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. </p> <p>I set up a new debug configuration.</p> <ul> <li><strong>Project</strong>: testapp (the only project in the workspace)</li> <li><strong>Main module</strong>: ${workspace_loc:testapp/Scripts/pserve-script.py}</li> <li><strong>Args</strong>: development.ini</li> <li><strong>Working dir</strong>: Other: ${workspace_loc:testapp/testapp}</li> </ul> <p>When I hit Debug, the output is:</p> <blockquote> <p>pydev debugger: starting Starting server in PID 2208.<br> Unhandled exception in thread started by<br> Traceback (most recent call last):<br> 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<br> Traceback (most recent call last):<br> Unhandled exception in thread started by<br> Traceback (most recent call last):<br> 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)<br> Unhandled exception in thread started by<br> 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__<br> TypeErrorTraceback (most recent call last):<br> self.original_func(*self.args, **self.kwargs) :<br> 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)<br> TypeErrorThreadedTaskDispatcher object argument after ** must be a mapping, not tuple<br> TypeError: self.original_func(*self.args, **self.kwargs) : ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple<br> TypeErrorThreadedTaskDispatcher object argument after ** must be a mapping, not tuple :<br> ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple<br> serving on <a href="http://0.0.0.0:6543" rel="nofollow">http://0.0.0.0:6543</a></p> </blockquote> <p>Even though it says the server is running, it's not. Nothing is listening on that port.</p> <p>Any idea on how to fix this? Debugging certainly isn't necessary, but I like having a fully set up development environment. Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload