Skip to content

Error building 12.13.1-proposal branch with Python 3: gyp-mac-tool: cannot use a string pattern on a byte-like object #30454

Closed
@cakoose

Description

@cakoose

I read that Node 12.13.1 is adding preliminary/experimental support for building with Python 3 (#30352). Filing this in case it's useful for that effort.

Node: 12.13.1-proposal branch (481b503)
MacOS 10.14.6
Python: 3.8.0

$ make -j4
...
Traceback (most recent call last):
  File "./gyp-mac-tool", line 711, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./gyp-mac-tool", line 31, in main
    exit_code = executor.Dispatch(args)
  File "./gyp-mac-tool", line 46, in Dispatch
    return getattr(self, method)(*args[1:])
  File "./gyp-mac-tool", line 268, in ExecFilterLibtool
    if not libtool_re.match(line) and not libtool_re5.match(line):
TypeError: cannot use a string pattern on a bytes-like object
...

(I'm not blocked; I'm able to build with Python 2.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions