Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Building protobuf in python from source can potentially break other packages in google name space. #21706

Copy link
Copy link
Open
@anagor

Description

@anagor
Issue body actions

What version of protobuf and what language are you using?
Version: v30.2
Language: Python

What operating system (Linux, Windows, ...) and version?
Linux x86_64

What runtime / compiler are you using (e.g., python version or gcc version)
Python 3.11

What did you do?
Steps to reproduce the behavior:
Doing pip install protobuf works correctly, i.e. download and install whl file
However doing the same by building from source: pip install --no-binary :all: protobuf
also installs google/__init__/py file, which for distibutions that install python protobuf system package by building it from source breaks any locally installed packages in the same "google" space, as their modules can no longer be found.
For example:
after building and installing from pypi provided source
running the following results in an error

$ pip install google-auth --user
$ python
>>> import google.auth
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'google.auth'

What did you expect to see
I should be able to faithfully build from source and get the same result as using binary provided whl file.

Metadata

Metadata

Assignees

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.