Version-Release number of selected component: 1:npm-6.13.4-1.12.16.1.1.fc31 Additional info: reporter: libreport-2.12.0 cgroup: 0::/user.slice/user-1000.slice/user/gnome-terminal-server.service cmdline: /usr/bin/python /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py binding.gyp -f make -I /home/kb1000/MGit/js/node_modules/deasync/build/config.gypi -I /usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I /home/kb1000/.cache/node-gyp/12.16.1/include/node/common.gypi -Dlibrary=shared_library -Dvisibility=default -Dnode_root_dir=/home/kb1000/.cache/node-gyp/12.16.1 -Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp -Dnode_lib_file=/home/kb1000/.cache/node-gyp/12.16.1/<(target_arch)/node.lib -Dmodule_root_dir=/home/kb1000/MGit/js/node_modules/deasync -Dnode_engine=v8 --depth=. --no-parallel --generator-output build -Goutput_dir=. crash_function: ExpandVariables exception_type: TypeError executable: /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py interpreter: python-unversioned-command-3.7.6-2.fc31.noarch kernel: 5.5.6-201.fc31.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: #1 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py:914] ExpandVariables #2 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py:1315] ProcessVariablesAndConditionsInList #3 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py:1296] ProcessVariablesAndConditionsInDict #4 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py:1311] ProcessVariablesAndConditionsInList #5 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py:1296] ProcessVariablesAndConditionsInDict #6 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py:417] LoadTargetBuildFile #7 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py:2779] Load #8 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py:139] Load #9 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py:523] gyp_main #10 [/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py:547] main
Created attachment 1668674 [details] File: backtrace
Created attachment 1668675 [details] File: cpuinfo
Created attachment 1668676 [details] File: environ
Created attachment 1668677 [details] File: mountinfo
Created attachment 1668678 [details] File: namespaces
Created attachment 1668679 [details] File: open_fds
Can you please provide some additional details around what you were attempting to do here? It appears that you were trying to build npm itself and hit a bug with its support for Python 3 to build.
*** Bug 1813652 has been marked as a duplicate of this bug. ***
OK, I'm making a bit of a guess here, but I think what's happening is that node-gyp is incorrectly assuming that if python is invoked from /usr/bin/python, it must be python 2 (but on F31+ it's actually python 3). I'm adding a patch to /etc/npmrc that will set the default python interpreter explicitly to /usr/bin/python3 to hopefully work around this.
I'm sorry for not responding earlier, but I didn't try to build npm itself, but try to install node-sass 4.13.1 using yarn from https://classic.yarnpkg.com/en/docs/install/#centos-stable . It pulled in deasync 0.1.19, this happened during the build of that package. Would yarn be fixed too by that patch?
nodejs-12.16.1-3.fc32 has been pushed to the Fedora 32 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7a79b4da6a
FEDORA-2020-7a79b4da6a has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.