Discussion:
[Pydev-users] Debugger not starting in Eclipse
Conrad G T Yoder
2015-08-25 18:13:38 UTC
Permalink
[Using Eclipse Mars (4.5.0) on OS X 10.10.5, with PyDev 4.3.0]

I recently updated by PyDev plugin from 4.2(?) to 4.3.0 and now when I attempt to debug any of my modules, I get the following error in the Console:


pydev debugger: starting (pid: 768)
Could not connect to 127.0.0.1: 49566
Traceback (most recent call last):
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 2275, in <module>
debugger.connect(host, port)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 431, in connect
self.initializeNetwork(s)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 418, in initializeNetwork
self.writer = WriterThread(sock)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd_comm.py", line 379, in __init__
self.cmdQueue = _queue.Queue()
TypeError: __init__() missing 1 required positional argument: 'params'



Did I miss something on the PyDev update that I'm not doing right?

To clarify, this is only a problem with the Debug configuration - the Run config for my modules work correctly. I also uninstalled and then reinstalled PyDev, but that did not fix the problem. Thanks for any input here.

-Conrad


------------------------------------------------------------------------------
Fabio Zadrozny
2015-08-25 18:21:20 UTC
Permalink
Well, my guess here is that you're somehow shadowing the Queue
or queue module from the standard library (depending on whether you're in
Python 2 or 3) with some module of your own (as 'params' is definitely not
required to create a Queue).

Cheers,

Fabio
Post by Conrad G T Yoder
[Using Eclipse Mars (4.5.0) on OS X 10.10.5, with PyDev 4.3.0]
I recently updated by PyDev plugin from 4.2(?) to 4.3.0 and now when I
attempt to debug any of my modules, I get the following error in the
pydev debugger: starting (pid: 768)
Could not connect to 127.0.0.1: 49566
File
"/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py",
line 2275, in <module>
debugger.connect(host, port)
File
"/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py",
line 431, in connect
self.initializeNetwork(s)
File
"/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py",
line 418, in initializeNetwork
self.writer = WriterThread(sock)
File
"/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd_comm.py",
line 379, in __init__
self.cmdQueue = _queue.Queue()
TypeError: __init__() missing 1 required positional argument: 'params'
Did I miss something on the PyDev update that I'm not doing right?
To clarify, this is only a problem with the Debug configuration - the Run
config for my modules work correctly. I also uninstalled and then
reinstalled PyDev, but that did not fix the problem. Thanks for any input
here.
-Conrad
------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
https://lists.sourceforge.net/lists/listinfo/pydev-users
Conrad G T Yoder
2015-08-25 18:34:47 UTC
Permalink
Yes! That did it - I had another module ‘Queue’ in my project. Thought I was going crazy there for a while.

In all my testing, I reverted back to PyDev 4.2.0 (have since gone back to 4.3.0) and now my list of projects/files disappears from the PyDev Package Explorer window as soon as it appears in the PyDev Perspective - ‘Refresh’ing does not help. If I switch to the Java Perspective, then the projects/files appear in Java’s Package Explorer. Suggestions as to how to reset?

-Conrad
Well, my guess here is that you're somehow shadowing the Queue or queue module from the standard library (depending on whether you're in Python 2 or 3) with some module of your own (as 'params' is definitely not required to create a Queue).
Cheers,
Fabio
[Using Eclipse Mars (4.5.0) on OS X 10.10.5, with PyDev 4.3.0]
pydev debugger: starting (pid: 768)
Could not connect to 127.0.0.1: 49566
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 2275, in <module>
debugger.connect(host, port)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 431, in connect
self.initializeNetwork(s)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 418, in initializeNetwork
self.writer = WriterThread(sock)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd_comm.py", line 379, in __init__
self.cmdQueue = _queue.Queue()
TypeError: __init__() missing 1 required positional argument: 'params'
Did I miss something on the PyDev update that I'm not doing right?
To clarify, this is only a problem with the Debug configuration - the Run config for my modules work correctly. I also uninstalled and then reinstalled PyDev, but that did not fix the problem. Thanks for any input here.
-Conrad
------------------------------------------------------------------------------
Fabio Zadrozny
2015-08-25 18:41:53 UTC
Permalink
Try changing your top-level elements in the pydev package explorer (focus
it > Ctrl+F10 > Top Level Elements).

Cheers,

Fabio
Yes! That did it - I had another module ‘Queue’ in my project. Thought I
was going crazy there for a while.
In all my testing, I reverted back to PyDev 4.2.0 (have since gone back to
4.3.0) and now my list of projects/files disappears from the PyDev Package
Explorer window as soon as it appears in the PyDev Perspective -
‘Refresh’ing does not help. If I switch to the Java Perspective, then the
projects/files appear in Java’s Package Explorer. Suggestions as to how to
reset?
-Conrad
Well, my guess here is that you're somehow shadowing the Queue or queue
module from the standard library (depending on whether you're in Python 2
or 3) with some module of your own (as 'params' is definitely not required
to create a Queue).
Cheers,
Fabio
[Using Eclipse Mars (4.5.0) on OS X 10.10.5, with PyDev 4.3.0]
I recently updated by PyDev plugin from 4.2(?) to 4.3.0 and now when I
attempt to debug any of my modules, I get the following error in the
pydev debugger: starting (pid: 768)
Could not connect to 127.0.0.1: 49566
File
"/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py",
line 2275, in <module>
debugger.connect(host, port)
File
"/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py",
line 431, in connect
self.initializeNetwork(s)
File
"/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py",
line 418, in initializeNetwork
self.writer = WriterThread(sock)
File
"/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd_comm.py",
line 379, in __init__
self.cmdQueue = _queue.Queue()
TypeError: __init__() missing 1 required positional argument: 'params'
Did I miss something on the PyDev update that I'm not doing right?
To clarify, this is only a problem with the Debug configuration - the
Run config for my modules work correctly. I also uninstalled and then
reinstalled PyDev, but that did not fix the problem. Thanks for any input
here.
-Conrad
------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
https://lists.sourceforge.net/lists/listinfo/pydev-users
Conrad G T Yoder
2015-08-25 19:03:00 UTC
Permalink
Order has been restored - thank you. We now return you to your regularly scheduled programming.

-Conrad
Try changing your top-level elements in the pydev package explorer (focus it > Ctrl+F10 > Top Level Elements).
Cheers,
Fabio
Yes! That did it - I had another module ‘Queue’ in my project. Thought I was going crazy there for a while.
In all my testing, I reverted back to PyDev 4.2.0 (have since gone back to 4.3.0) and now my list of projects/files disappears from the PyDev Package Explorer window as soon as it appears in the PyDev Perspective - ‘Refresh’ing does not help. If I switch to the Java Perspective, then the projects/files appear in Java’s Package Explorer. Suggestions as to how to reset?
-Conrad
Well, my guess here is that you're somehow shadowing the Queue or queue module from the standard library (depending on whether you're in Python 2 or 3) with some module of your own (as 'params' is definitely not required to create a Queue).
Cheers,
Fabio
[Using Eclipse Mars (4.5.0) on OS X 10.10.5, with PyDev 4.3.0]
pydev debugger: starting (pid: 768)
Could not connect to 127.0.0.1: 49566
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 2275, in <module>
debugger.connect(host, port)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 431, in connect
self.initializeNetwork(s)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 418, in initializeNetwork
self.writer = WriterThread(sock)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd_comm.py", line 379, in __init__
self.cmdQueue = _queue.Queue()
TypeError: __init__() missing 1 required positional argument: 'params'
Did I miss something on the PyDev update that I'm not doing right?
To clarify, this is only a problem with the Debug configuration - the Run config for my modules work correctly. I also uninstalled and then reinstalled PyDev, but that did not fix the problem. Thanks for any input here.
-Conrad
------------------------------------------------------------------------------
Conrad G T Yoder
2015-08-25 12:33:08 UTC
Permalink
[Using Eclipse Mars (4.5.0) on OS X 10.10.5, with PyDev 4.3.0]

I recently updated by PyDev plugin from 4.2(?) to 4.3.0 and now when I attempt to debug any of my modules, I get the following error in the Console:


pydev debugger: starting (pid: 768)
Could not connect to 127.0.0.1: 49566
Traceback (most recent call last):
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 2275, in <module>
debugger.connect(host, port)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 431, in connect
self.initializeNetwork(s)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd.py", line 418, in initializeNetwork
self.writer = WriterThread(sock)
File "/Applications/Eclipse.app/Contents/Eclipse/plugins/org.python.pydev_4.3.0.201508182223/pysrc/pydevd_comm.py", line 379, in __init__
self.cmdQueue = _queue.Queue()
TypeError: __init__() missing 1 required positional argument: 'params'



Did I miss something on the PyDev update that I'm not doing right?

To clarify, this is only a problem with the Debug configuration - the Run config for my modules work correctly. I also uninstalled and then reinstalled PyDev, but that did not fix the problem. Thanks for any input here.

-Conrad


------------------------------------------------------------------------------
Loading...