PyDev.Debugger icon indicating copy to clipboard operation
PyDev.Debugger copied to clipboard

AttributeError: 'NoneType' object has no attribute 'path'

Open cybertk opened this issue 5 years ago • 2 comments

Failed to run pydevd v1.4.0 from command line, full error is shown below

pydevd --port 20010 --client debug-server --file /opt/to/script
warning: Debugger speedups using cython not found. Run '"/usr/bin/python" "/usr/local/lib/python2.7/dist-packages/setup_cython.py" build_ext --inplace' to build.
Traceback (most recent call last):
  File "/usr/local/bin/pydevd", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/pydevd.py", line 1752, in main
    debugger.connect(host, port)
  File "/usr/local/lib/python2.7/dist-packages/pydevd.py", line 1050, in run
    if sys.path[0] != '' and m is not None and m.__file__.startswith(sys.path[0]):
AttributeError: 'NoneType' object has no attribute 'path'

cybertk avatar Nov 12 '18 15:11 cybertk

Can you reproduce this reliably?

fabioz avatar Dec 13 '18 18:12 fabioz

@fabioz It's 100% reproducible with the given command, the Debug Server is PyCharm Professional 2018.1.4

cybertk avatar Dec 27 '18 09:12 cybertk