nodeenv icon indicating copy to clipboard operation
nodeenv copied to clipboard

Remove usage of `pipes`

Open bersbersbers opened this issue 1 year ago • 2 comments

I am getting

C:\Python\Lib\site-packages\nodeenv.py:26: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13

due to

https://github.com/ekalinin/nodeenv/blob/4ae75e3c3dfabee705405e0ef4e7459721fb17c4/nodeenv.py#L26

bersbersbers avatar Aug 30 '23 21:08 bersbersbers

Just came across another one:

pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

bersbersbers avatar Aug 30 '23 22:08 bersbersbers

Same here - this occurred when I attempted to add support for python 3.12:

task: [check] ./scripts/builder.sh python3 -m pyright --stats archivist /usr/local/lib/python3.12/site-packages/nodeenv.py:26: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13 import pipes /usr/local/lib/python3.12/site-packages/nodeenv.py:48: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import parse_version

  • Install prebuilt node (21.0.0) .

The 'Install prebuilt node..' hangs forever

eccles avatar Oct 18 '23 09:10 eccles

FWIW, it is deprecated since Python 3.11 and the subprocess module is the recommended as replacement

rffontenelle avatar Mar 08 '24 18:03 rffontenelle