mediasoup: Installation fails on arch linux

When installing on my arch linux system with both python2 and python3 installed, I get the following error:

bf@xxx> npm i --save mediasoup 

> mediasoup@0.8.0 postinstall /foo/bar/node_modules/mediasoup
> make Release

cd worker &&  ./scripts/configure.py -R mediasoup-worker
  File "./scripts/configure.py", line 48
    print 'Error running GYP'
                            ^
SyntaxError: Missing parentheses in call to 'print'
make: *** [Makefile:19: Release] Error 1

It looks like PYTHON?=$(type -p python2 || echo python) in Makefile returns an empty string. When I do type -p python2 || echo python in bash it returns /usr/bin/python2. The shell from which I am using npm is fish.

Can anybody help me?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 54 (28 by maintainers)

Most upvoted comments

mmm, I think I got it!

Please, try just this:

PYTHON := $(shell type -p python2 || echo python)

Just asked in StackOverflow, let’s see.