pyproj
pyproj copied to clipboard
Pyproj conflict with another package google.protobuf.text_format
Code Sample, a copy-pastable example if possible
A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you:
- http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports
- https://stackoverflow.com/help/minimal-reproducible-example
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
Related #801
You are using an old python and pyproj version. Are you able to upgrade to the latest stable versions and verify the issue still exists?
hi, thanks for getting back, I tried to change the version to pyproj==3.7.1 and python==3.10 but the issue is still there
I am unable to reproduce. Tried on macOS with Python 3.10-13, using venv and pip install protobuf pyproj, then
python
from google.protobuf import text_format
import pyproj
Tried on Ubuntu 22/Python 3.10/Pyproj 3.6.1 (using system packages);
Windows x64, Python 3.10, (venv, pip install protobuf pyproj): all with no error