Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pssh-box.py in Docker container -> ModuleNotFoundError: No module named 'google' #1436

Closed
emarsden opened this issue Sep 30, 2024 · 1 comment · Fixed by #1438 or #1408
Closed

pssh-box.py in Docker container -> ModuleNotFoundError: No module named 'google' #1436

emarsden opened this issue Sep 30, 2024 · 1 comment · Fixed by #1438 or #1408
Assignees
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@emarsden
Copy link

System info

Operating System: Debian 13
Shaka Packager Version: HEAD

Issue and steps to reproduce the problem

Running the pssh-box.py utility from the latest version of the Docker image (and for all version tags > 3.0) leads to an error

% podman run --rm docker.io/google/shaka-packager:latest pssh-box.py --from-base64 "AAAAnnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAH4IARIQNeHmMAKWzF5NJTqHEIQDChoMaW5rYWVudHdvcmtzIlpuZWV0LXBnLWRyLXNvdW1lbi1tYW5uYS0xMDgwLWxpdmUtdmVyc2lvbi02LWdlbmVyYWwtcGh5aXNvbG9neS1uZXctcnItNi0wLWhpbmRpOTgxMTQtOTAxMjk="
Traceback (most recent call last):
  File "/usr/bin/pssh-box.py", line 46, in <module>
    import widevine_pssh_data_pb2
  File "/usr/bin/pssh-box-protos/widevine_pssh_data_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google'

With version 2.5.1 this worked as expected:

% podman run --rm docker.io/google/shaka-packager:v2.5.1 pssh-box.py --from-base64 "AAAAnnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAH4IARIQNeHmMAKWzF5NJTqHEIQDChoMaW5rYWVudHdvcmtzIlpuZWV0LXBnLWRyLXNvdW1lbi1tYW5uYS0xMDgwLWxpdmUtdmVyc2lvbi02LWdlbmVyYWwtcGh5aXNvbG9neS1uZXctcnItNi0wLWhpbmRpOTgxMTQtOTAxMjk="
Trying to pull docker.io/google/shaka-packager:v2.5.1...
PSSH Box v0
  System ID: Widevine edef8ba9-79d6-4ace-a3c8-27dcd51d21ed
  PSSH Data (size: 126):
    Widevine Data:
      Key IDs (1):
        35e1e630-0296-cc5e-4d25-3a871084030a
      Provider: inkaentworks
      Content ID: 6E6565742D70672D64722D736F756D656E2D6D616E6E612D313038302D6C6976652D76657273696F6E2D362D67656E6572616C2D70687969736F6C6F67792D6E65772D72722D362D302D68696E646939383131342D3930313239
@joeyparrish
Copy link
Member

Confirmed via docker (replaced "podman" with "docker" in above commands.

@joeyparrish joeyparrish self-assigned this Oct 1, 2024
@joeyparrish joeyparrish added type: bug Something isn't working correctly priority: P2 Smaller impact or easy workaround labels Oct 1, 2024
@github-actions github-actions bot added this to the v3.3 milestone Oct 1, 2024
joeyparrish added a commit to joeyparrish/shaka-packager that referenced this issue Oct 2, 2024
This embeds the full python protobuf library into the output in
pssh-box-protos, which is used by installation targets and Docker
images.  Without this, the installed pssh-box.py tool would depend on
a separate installation of the python protobuf library.

Closes shaka-project#1436
cosmin pushed a commit that referenced this issue Oct 24, 2024
🤖 I have created a release *beep* *boop*
---


##
[3.2.1](v3.2.0...v3.2.1)
(2024-10-02)


### Bug Fixes

* Add Missing Dash Roles to RoleFromString function
([#1418](#1418))
([#1419](#1419))
([9cb00e9](9cb00e9))
* Break header installation for the shared library
([#1407](#1407))
([b5c2cb8](b5c2cb8)),
closes
[#1406](#1406)
* Embed full python protobuf library
([#1438](#1438))
([f07fd0d](f07fd0d)),
closes
[#1436](#1436)

---
This PR was generated with [Release
Please](/~https://github.com/googleapis/release-please). See
[documentation](/~https://github.com/googleapis/release-please#release-please).
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Dec 1, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
2 participants