Skip to content

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