ekalinin / nodeenv

Virtual environment for Node.js & integrator with virtualenv
http://ekalinin.github.io/nodeenv/
Other
1.71k stars 212 forks source link

Remove usage of `pipes` #341

Closed bersbersbers closed 6 months ago

bersbersbers commented 1 year ago

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 commented 1 year ago

Just came across another one:

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

eccles commented 1 year ago

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

The 'Install prebuilt node..' hangs forever

rffontenelle commented 8 months ago

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