remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
http://nodemon.io/
MIT License
26.23k stars 1.72k forks source link

Nodemon doesn't use local python venv #2086

Closed MonkeeMan1 closed 1 year ago

MonkeeMan1 commented 1 year ago

Expected behaviour

Nodemon ideally would use the local venv for running python

Actual behaviour

Nodemon does not use the local python venv and therefore ends up using the wrong versions of my package. This means I cannot use nodemon for python due to me having venvs for each project to allow me to not override specific packages as I have many different projects running on my machine with different libaries versions.

Steps to reproduce

  1. install python/nodemon
  2. python -m venv ./venv
  3. run python venv ./.venv/scripts/activate
  4. pip install (a package which you do not have installed globally)
  5. nodemon main.py you will see an error which states you do not have the libary/package installed (you do have it installed in your venv, but not globally) and nodemon does not use the venv.
github-actions[bot] commented 1 year ago

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. Thank you for contributing <3

github-actions[bot] commented 1 year ago

Automatically closing this issue due to lack of activity