Skip to content

The version of protobuf in use does not match the version of protobuf in use in Apache arrow #1425

@dbaxa

Description

@dbaxa

The version of protobuf in [use - 3.5.1] (

set(PROTOBUF_VERSION "3.5.1")
) does not match the version of protobuf in use in Apache arrow - 21.3 this can cause incompatibility issues such as when pyarrow is used at the same time as pyorc[0][1].

[0] noirello/pyorc#10

[1]

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/ec2-user/code/example-repo/example-thing/bin/cli.py", line 55, in <module>
    cli_group(prog_name="pipenv run sc")
  File "/Users/ec2-user/.local/share/virtualenvs/example-repo-aG8AhNTx/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ec2-user/.local/share/virtualenvs/example-repo-aG8AhNTx/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/ec2-user/.local/share/virtualenvs/example-repo-aG8AhNTx/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ec2-user/.local/share/virtualenvs/example-repo-aG8AhNTx/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ec2-user/.local/share/virtualenvs/example-repo-aG8AhNTx/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ec2-user/.local/share/virtualenvs/example-repo-aG8AhNTx/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ec2-user/.local/share/virtualenvs/example-repo-aG8AhNTx/lib/python3.11/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ec2-user/code/example-repo/example-thing/commands/cards.py", line 178, in save
    output.save_as_orc(filename)
  File "/Users/ec2-user/code/example-repo/example-thing/core/classes/output.py", line 246, in save_as_orc
    with pyorc.Writer(
  File "/Users/ec2-user/.local/share/virtualenvs/example-repo-aG8AhNTx/lib/python3.11/site-packages/pyorc-0.9.0-py3.11-macosx-13-arm64.egg/pyorc/writer.py", line 86, in __exit__
  File "/Users/ec2-user/.local/share/virtualenvs/example-repo-aG8AhNTx/lib/python3.11/site-packages/pyorc-0.9.0-py3.11-macosx-13-arm64.egg/pyorc/writer.py", line 91, in close
RuntimeError: CHECK failed: (bytes_produced_by_serialization) == (byte_size_before_serialization): Byte size calculation and serialization were inconsistent.  This may indicate a bug in protocol buffers or it may be caused by concurrent modification of orc.proto.RowIndex.
Python(9491,0x1ecba8140) malloc: *** error for object 0x600002c1c188: pointer being freed was not allocated
Python(9491,0x1ecba8140) malloc: *** set a breakpoint in malloc_error_break to debug
Process 9491 stopped
* thread #2, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001915e6868 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x1915e6868 <+8>:  b.lo   0x1915e6888               ; <+40>
    0x1915e686c <+12>: pacibsp 
    0x1915e6870 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x1915e6874 <+20>: mov    x29, sp
Target 0: (Python) stopped.

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