#67518 closed defect (fixed)

py27-protobuf3 @4.21.12: error: use of undeclared identifier 'PyUnicode_AsUTF8AndSize'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Jōshin <git@…>
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: py27-protobuf3

Description

https://build.macports.org/builders/ports-11_x86_64-builder/builds/115758/steps/install-port/logs/stdio

google/protobuf/pyext/extension_dict.cc:235:7: error: use of undeclared identifier 'PyUnicode_AsUTF8AndSize'
  if (PyString_AsStringAndSize(arg, &name, &name_size) < 0) {
      ^
google/protobuf/pyext/extension_dict.cc:55:16: note: expanded from macro 'PyString_AsStringAndSize'
               PyUnicode_AsUTF8AndSize(ob, (sizep)))) == nullptr \
               ^
1 error generated.

Change History (4)

comment:1 Changed 18 months ago by jmroot (Joshua Root)

That function is only available in Python 3.3 and later.

comment:2 Changed 13 months ago by jmroot (Joshua Root)

Apparently the last version with 2.7 support was 3.17.3, so the 27 subport could be reverted to that. However, there appears to be only one port (ola) that needs py27-protobuf3.

comment:4 Changed 10 months ago by Jōshin <git@…>

Owner: set to Jōshin <git@…>
Resolution: fixed
Status: newclosed

In c9ffe46f3a314c6ad63ca52791b7204604b60cc8/macports-ports (master):

py27-protobuf3: revert to last compatible version

Closes: #67518

Note: See TracTickets for help on using tickets.