You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be fixed in the next dependencies update (maybe to solve #235 when the upgrade to Meteor3 is ready?), so I am leaving this as a documentation ticket in case someone encounter the same problem. Please let me know if there is a better place for it or if it is already documented elsewhere.
Description
The following error is shown when starting the Meteor app using meteor --settings settings-dev.json on a system with Python 3.11 and above. It is due to an incompatibility between node-gyp and this specific version of Python.
line 234, in LoadOneBuildFile
build_file_contents = open(build_file_path, 'rU').read()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid mode: 'rU' while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
How to solve it
Installing Python version 3.10 on the system (using pyenv for example) and forcing node-gyp to use it will solve it. If using pyenv, the path to Python can be provided to node-gyp by using the following command:
This should be fixed in the next dependencies update (maybe to solve #235 when the upgrade to Meteor3 is ready?), so I am leaving this as a documentation ticket in case someone encounter the same problem. Please let me know if there is a better place for it or if it is already documented elsewhere.
Description
The following error is shown when starting the Meteor app using
meteor --settings settings-dev.json
on a system with Python 3.11 and above. It is due to an incompatibility between node-gyp and this specific version of Python.How to solve it
Installing Python version 3.10 on the system (using pyenv for example) and forcing node-gyp to use it will solve it. If using pyenv, the path to Python can be provided to node-gyp by using the following command:
Sources
https://stackoverflow.com/questions/74715990/node-gyp-err-invalid-mode-ru-while-trying-to-load-binding-gyp
pact-foundation/pact-js#1087
The text was updated successfully, but these errors were encountered: