Hello everybody,
I have a Selenium project and I wan’t to debug this, but the debugger throws the following error in both debuggers:
my launch.json :
{ "version": "0.2.0", "configurations": [ { "name": "Python Debugger: venv Current File", "type": "debugpy", "request": "launch", "program": "${file}", "console": "integratedTerminal", "python": "${workspaceFolder}/venv/bin/python", "env": { "PYTHONPATH": "${workspaceFolder}"} }, { "name": "test main.py", "type": "debugpy", "request": "launch", "program": "/home/amnesia/repo/b_scraper/main.py", "console": "integratedTerminal", "python": "${workspaceFolder}/venv/bin/python", "env": { "PYTHONPATH": "${workspaceFolder}"} }, ] }{ "version": "0.2.0", "configurations": [ { "name": "Python Debugger: venv Current File", "type": "debugpy", "request": "launch", "program": "${file}", "console": "integratedTerminal", "python": "${workspaceFolder}/venv/bin/python", "env": { "PYTHONPATH": "${workspaceFolder}"} }, { "name": "test main.py", "type": "debugpy", "request": "launch", "program": "/home/amnesia/repo/b_scraper/main.py", "console": "integratedTerminal", "python": "${workspaceFolder}/venv/bin/python", "env": { "PYTHONPATH": "${workspaceFolder}"} }, ] }
the errror:
driver Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'driver' is not defined
I think the debugger should already use my venv, but maybe there is a different problem with my launch.json…
submitted by /u/dkes11
[link] [comments]
r/learnpython Hello everybody, I have a Selenium project and I wan’t to debug this, but the debugger throws the following error in both debuggers: my launch.json : { “version”: “0.2.0”, “configurations”: [ { “name”: “Python Debugger: venv Current File”, “type”: “debugpy”, “request”: “launch”, “program”: “${file}”, “console”: “integratedTerminal”, “python”: “${workspaceFolder}/venv/bin/python”, “env”: { “PYTHONPATH”: “${workspaceFolder}”} }, { “name”: “test main.py”, “type”: “debugpy”, “request”: “launch”, “program”: “/home/amnesia/repo/b_scraper/main.py”, “console”: “integratedTerminal”, “python”: “${workspaceFolder}/venv/bin/python”, “env”: { “PYTHONPATH”: “${workspaceFolder}”} }, ] }{ “version”: “0.2.0”, “configurations”: [ { “name”: “Python Debugger: venv Current File”, “type”: “debugpy”, “request”: “launch”, “program”: “${file}”, “console”: “integratedTerminal”, “python”: “${workspaceFolder}/venv/bin/python”, “env”: { “PYTHONPATH”: “${workspaceFolder}”} }, { “name”: “test main.py”, “type”: “debugpy”, “request”: “launch”, “program”: “/home/amnesia/repo/b_scraper/main.py”, “console”: “integratedTerminal”, “python”: “${workspaceFolder}/venv/bin/python”, “env”: { “PYTHONPATH”: “${workspaceFolder}”} }, ] } the errror: driver Traceback (most recent call last): File “<string>”, line 1, in <module> NameError: name ‘driver’ is not defined I think the debugger should already use my venv, but maybe there is a different problem with my launch.json… submitted by /u/dkes11 [link] [comments]
Hello everybody,
I have a Selenium project and I wan’t to debug this, but the debugger throws the following error in both debuggers:
my launch.json :
{ "version": "0.2.0", "configurations": [ { "name": "Python Debugger: venv Current File", "type": "debugpy", "request": "launch", "program": "${file}", "console": "integratedTerminal", "python": "${workspaceFolder}/venv/bin/python", "env": { "PYTHONPATH": "${workspaceFolder}"} }, { "name": "test main.py", "type": "debugpy", "request": "launch", "program": "/home/amnesia/repo/b_scraper/main.py", "console": "integratedTerminal", "python": "${workspaceFolder}/venv/bin/python", "env": { "PYTHONPATH": "${workspaceFolder}"} }, ] }{ "version": "0.2.0", "configurations": [ { "name": "Python Debugger: venv Current File", "type": "debugpy", "request": "launch", "program": "${file}", "console": "integratedTerminal", "python": "${workspaceFolder}/venv/bin/python", "env": { "PYTHONPATH": "${workspaceFolder}"} }, { "name": "test main.py", "type": "debugpy", "request": "launch", "program": "/home/amnesia/repo/b_scraper/main.py", "console": "integratedTerminal", "python": "${workspaceFolder}/venv/bin/python", "env": { "PYTHONPATH": "${workspaceFolder}"} }, ] }
the errror:
driver Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'driver' is not defined
I think the debugger should already use my venv, but maybe there is a different problem with my launch.json…
submitted by /u/dkes11
[link] [comments]