Skip to content

Update node-gyp dependency version from 6.1.0 to latest #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ancebfer
Copy link

Installation of nodeimu module with Python > 3.10 fails with error:

npm ERR! File "/usr/local/lib/node_modules/node-sense-hat/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 234, in LoadOneBuildFile
npm ERR! build_file_contents = open(build_file_path, 'rU').read()
npm ERR! ^^^^^^^^^^^^^^^^^^^^^^^^^^^
npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gyp

Found with latest Raspios distribution trying to install node-sense-hat module.

This error is documented here and happens in current Linux distributions as they no longer use Python 3.10.

Migration of node-gyp dependency from version 6.1.0 to latest version enables compatibility with Python > 3.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant