Can anyone build www/node right now?

George Mitchell george+freebsd at m5p.com
Sun Jun 28 20:25:12 UTC 2020


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20200628/65e36fd1/attachment.sig>


More information about the freebsd-ports mailing list