Skip to content

Pyproj conflict with another package google.protobuf.text_format #1500

@yanghui-zhuang-ai

Description

@yanghui-zhuang-ai

Code Sample, a copy-pastable example if possible

A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you:

from google.protobuf import text_format
import pyproj

Problem description

These two lines above alone would give me "Segmentation fault (core dumped)" when I tried to run it (build is fine tho).
If we switch the two lines then it can work.

[this should explain why the current behavior is a problem and why the expected output is a better solution.]

Expected Output

Run without error.

Environment Information

  • Output from: pyproj -v
$ pyproj -v
pyproj info:
    pyproj: 3.6.1
      PROJ: 9.3.0
  data dir: /home/yanghui_zhuang/.local/lib/python3.9/site-packages/pyproj/proj_dir/share/proj
user_data_dir: /home/yanghui_zhuang/.local/share/proj
PROJ DATA (recommended version): 1.15
PROJ Database: 1.2
EPSG Database: v10.094 [2023-08-08]
ESRI Database: ArcGIS Pro 3.1 [2023-19-01]
IGNF Database: 3.1.0 [2019-05-24]

System:
    python: 3.9.22 (main, Apr  9 2025, 08:54:15)  [GCC 13.3.0]
executable: /usr/bin/python3.9
   machine: Linux-6.11.0-25-generic-x86_64-with-glibc2.39

Python deps:
   certifi: 2023.7.22
    Cython: None
setuptools: 65.5.1
       pip: 24.0

And this is the protobuf info

$ pip show protobuf
Name: protobuf
Version: 3.20.3
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: 
Author-email: 
License: BSD-3-Clause
Location: /home/yanghui_zhuang/.local/lib/python3.9/site-packages
Requires: 
Required-by: google-api-core, google-cloud-pubsub, googleapis-common-protos, grpc-google-iam-v1, grpcio-status, proto-plus

Installation method

  • conda, pip wheel, from source, etc...

Conda environment information (if you installed with conda):


Environment (conda list):
$ conda list proj


Details about conda and system ( conda info ):
$ conda info

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions