struggling to setup python with nvim dap - module not found on import - need to setup dap root?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • venv-selector.nvim

    Allows selection of python virtual environment from within neovim

  • by VenvSelect you mean https://github.com/linux-cultist/venv-selector.nvim?

  • nvim-dap-python

    An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.

  • I think nvim-dap doesn't (always?) use neovim current working directory as root, which can cause issues like yours. I'd recommend using https://github.com/mfussenegger/nvim-dap-python along with a local .nvim.lua (:h 'exrc') with the following config:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • dotfiles

    Configs for mostly Neovim and Hyrprland (by igorlfs)

  • Other than what I've shown you, I also use vscode's launch.json, which nvim-dap can load (I don't hard-code my DAP configs). If you want, you can take a look at the rest of my setup here: https://github.com/igorlfs/dotfiles/blob/main/nvim/.config/nvim/lua/plugins/nvim-dap.lua

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Need help setting working directory of my debugger for python in neovim

    4 projects | /r/neovim | 29 May 2023
  • Supercharge Python Development with this Plugin

    2 projects | /r/neovim | 18 Apr 2023
  • Finding the right Virtual Envs with Pyright and DAP.

    1 project | /r/neovim | 30 Jan 2023
  • Plugins/resources for using DAP, linting, formatting packages installed by mason.nvim?

    3 projects | /r/neovim | 27 Jul 2022
  • How to debug python code in neovim

    2 projects | /r/neovim | 1 Jul 2023