Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2020 22:37:10 +0200
From:      "Dutch Daemon - FreeBSD Forums Administrator" <dutchdaemon@freebsd.org>
To:        George Mitchell <george+freebsd@m5p.com>, <freebsd-ports@freebsd.org>
Subject:   Re: Can anyone build www/node right now?
Message-ID:  <172fca5e4f0.2790.b36d34a15fda208b80f54b6ad54d9e04@freebsd.org>
In-Reply-To: <a5ce383d-7a22-0b69-fb85-27f3b94d9711@m5p.com>
References:  <66e8ea52-da15-72ef-ce21-efc4d265cd3a@FreeBSD.org> <a5ce383d-7a22-0b69-fb85-27f3b94d9711@m5p.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On June 28, 2020 22:25:31 George Mitchell <george+freebsd@m5p.com> wrote:

> On 2020-06-28 16:07, DutchDaemon - FreeBSD Forums Administrator wrote:
>> [...]
>> Traceback (most recent call last):
>>
>>  File "tools/genv8constants.py", line 23, in <module>
>>
>>    bufsize=-1, stdout=subprocess.PIPE, text=True).stdout
>>
>> TypeError: __init__() got an unexpected keyword argument 'text'
>> [...]
>
> You appear not to have a recent enough version of Python installed.
> The "text" keyword argument to the Popen constructor was added in
> Python 3.7, and it isn't available at all in Python 2.  The patch
> file patch-tools_genv8constants.py in /usr/ports/www/node/files
> explicitly adds a "text" keyword argument to the call to Popen.
> Can you check your default version of Python?
>
> www/node/Makefile specifies it USES=python:build, which should
> probably be changed to python3 given the patch.       -- George

In absence of a make.conf in the jail it pulled in python36-3.6.11 as the 
default. If node depends on 3.7, that should be declared a hard dependency. 
I can try it with 3.7.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?172fca5e4f0.2790.b36d34a15fda208b80f54b6ad54d9e04>