Open MAKOMO opened 1 year ago
I'll have to do some more debugging, but I did get a working bundle when using a script with
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
as part of the import statements. That's without using protobuf in the packages option.
Did you use an editable install for protobuf ("pip install -e protobuf")? That's unlikely, but I just noticed that py2app's (or rather modulegraph's) support for editable installs is broken due to changes in pip.
I can confirm that without using the packages option the libs are correctly added to python311.zip. However, I couldn't get this signed as _upd/
contains the shared object file _message.abi3.so
in the zip. That's why I went for the packages option.
I installed regular via
# pip protobuf
My app imports a compiled protobuf specification
from proto import Spec_pb2
which itself does the following imports
Current py2app fails to include the Google protobuf subpackage even if I instruct to bundle it (as well as the dependent
google._upb
module) as whole package.On building I get the following error:
The fix is to add missing init.py files to the Google packages
Does this relate to py2app doesn't work with subpackages