Skip to content

onthespot: 0.5 -> 1.0.4#356878

Closed
ryand56 wants to merge 2 commits into
NixOS:masterfrom
ryand56:update/onthespot
Closed

onthespot: 0.5 -> 1.0.4#356878
ryand56 wants to merge 2 commits into
NixOS:masterfrom
ryand56:update/onthespot

Conversation

@ryand56

@ryand56 ryand56 commented Nov 18, 2024

Copy link
Copy Markdown
Member

Changes to a maintained fork of onthespot.
https://github.com/justin025/onthespot/releases/tag/v1.0.4

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ryand56
ryand56 force-pushed the update/onthespot branch 2 times, most recently from 60f972d to 509090a Compare November 18, 2024 06:10
@ryand56
ryand56 marked this pull request as ready for review November 18, 2024 06:16
@ryand56
ryand56 requested a review from onny November 18, 2024 07:16
@onny

onny commented Nov 18, 2024

Copy link
Copy Markdown
Contributor

Looks nice, thank you!

Would be nice if you could split up the commit into several ones like onthespot: modernize package, onthespot: add XYZ as maintainer etc

@ofborg ofborg Bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Nov 18, 2024
@ryand56
ryand56 force-pushed the update/onthespot branch 2 times, most recently from 1ba5fe4 to aa3c2a8 Compare November 18, 2024 20:07
Comment thread pkgs/by-name/on/onthespot/package.nix Outdated
@onny

onny commented Nov 20, 2024

Copy link
Copy Markdown
Contributor

When trying to run the client I get

[nix-shell:~/.cache/nixpkgs-review/pr-356878]$ ./results/onthespot/bin/onthespot-cli 
Traceback (most recent call last):
  File "/nix/store/4z48icnrwszkr2yrb3k6cgmakb3iivbd-onthespot-1.0.2/bin/..onthespot-cli-wrapped-wrapped", line 6, in <module>
    from onthespot.cli import main
  File "/nix/store/4z48icnrwszkr2yrb3k6cgmakb3iivbd-onthespot-1.0.2/lib/python3.12/site-packages/onthespot/__init__.py", line 7, in <module>
    from .gui.mainui import MainWindow
  File "/nix/store/4z48icnrwszkr2yrb3k6cgmakb3iivbd-onthespot-1.0.2/lib/python3.12/site-packages/onthespot/gui/mainui.py", line 9, in <module>
    from ..utils import is_latest_release, open_item
  File "/nix/store/4z48icnrwszkr2yrb3k6cgmakb3iivbd-onthespot-1.0.2/lib/python3.12/site-packages/onthespot/utils.py", line 8, in <module>
    from librespot.core import Session
  File "/nix/store/6xpywqzd46wcw111pk7642ixnfbx0jnk-python3.12-librespot-0.0.9/lib/python3.12/site-packages/librespot/__init__.py", line 3, in <module>
    from librespot.proto.Keyexchange_pb2 import BuildInfo, Platform, Product, ProductFlags
  File "/nix/store/6xpywqzd46wcw111pk7642ixnfbx0jnk-python3.12-librespot-0.0.9/lib/python3.12/site-packages/librespot/proto/Keyexchange_pb2.py", line 31, in <module>
    _descriptor.EnumValueDescriptor(
  File "/nix/store/qs1dq3148cidflfqkl7nlg8qij0m77ja-python3.12-protobuf-5.28.3/lib/python3.12/site-packages/google/protobuf/descriptor.py", line 920, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

@ryand56

ryand56 commented Nov 20, 2024

Copy link
Copy Markdown
Member Author

That's weird, I did set that environment variable.

@ofborg
ofborg Bot requested a review from onny November 20, 2024 21:42
Comment thread pkgs/by-name/on/onthespot/package.nix Outdated
Comment thread pkgs/by-name/on/onthespot/package.nix Outdated
Comment thread pkgs/by-name/on/onthespot/package.nix Outdated
@ryand56
ryand56 force-pushed the update/onthespot branch 2 times, most recently from 39a18fa to cadc95a Compare November 25, 2024 01:55
@ryand56 ryand56 changed the title onthespot: 0.5 -> 1.0.2 onthespot: 0.5 -> 1.0.3 Nov 25, 2024
@ryand56 ryand56 changed the title onthespot: 0.5 -> 1.0.3 onthespot: 0.5 -> 1.0.4 Dec 14, 2024
@github-actions github-actions Bot removed the 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. label Dec 14, 2024
@ofborg ofborg Bot added the 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. label Dec 14, 2024
@ryand56
ryand56 marked this pull request as draft December 15, 2024 05:46
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 4, 2025
@ryand56 ryand56 removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 4, 2025
@github-actions github-actions Bot removed the 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. label Jan 4, 2025
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 3, 2025
@eclairevoyant eclairevoyant mentioned this pull request Sep 26, 2025
13 tasks
@eclairevoyant

Copy link
Copy Markdown
Contributor

I see that this fork has had releases since, does v1.2.4 still work? If so I'll remove it from my PR #446400

@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 26, 2025
@ryand56

ryand56 commented Sep 26, 2025

Copy link
Copy Markdown
Member Author

Just went ahead and updated, but this needs pywidevine. Looks like it was being added in #432872

@ryand56

ryand56 commented Sep 26, 2025

Copy link
Copy Markdown
Member Author

After adding all those dependencies, still broken:

Traceback (most recent call last):
  File "/nix/store/14l51qx5yip5dlzp41xaavisz59z25yg-onthespot-1.1.2/bin/..onthespot-cli-wrapped-wrapped", line 6, in <module>
    from onthespot.cli import main
  File "/nix/store/14l51qx5yip5dlzp41xaavisz59z25yg-onthespot-1.1.2/lib/python3.12/site-packages/onthespot/cli.py", line 12, in <module>
    from .accounts import FillAccountPool, get_account_token
  File "/nix/store/14l51qx5yip5dlzp41xaavisz59z25yg-onthespot-1.1.2/lib/python3.12/site-packages/onthespot/accounts.py", line 3, in <module>
    from .api.apple_music import apple_music_login_user, apple_music_get_token
  File "/nix/store/14l51qx5yip5dlzp41xaavisz59z25yg-onthespot-1.1.2/lib/python3.12/site-packages/onthespot/api/apple_music.py", line 9, in <module>
    from pywidevine import PSSH, Cdm, Device
  File "/nix/store/3693d8x3pfmgr8g2my7xwy7xqvh05s5y-python3.12-pywidevine-1.8.0/lib/python3.12/site-packages/pywidevine/__init__.py", line 1, in <module>
    from .cdm import *
  File "/nix/store/3693d8x3pfmgr8g2my7xwy7xqvh05s5y-python3.12-pywidevine-1.8.0/lib/python3.12/site-packages/pywidevine/cdm.py", line 21, in <module>
    from pywidevine.device import Device, DeviceTypes
  File "/nix/store/3693d8x3pfmgr8g2my7xwy7xqvh05s5y-python3.12-pywidevine-1.8.0/lib/python3.12/site-packages/pywidevine/device.py", line 25, in <module>
    class _Structures:
  File "/nix/store/3693d8x3pfmgr8g2my7xwy7xqvh05s5y-python3.12-pywidevine-1.8.0/lib/python3.12/site-packages/pywidevine/device.py", line 36, in _Structures
    "version" / Const(Int8ub, 2),
                ^^^^^^^^^^^^^^^^
  File "/nix/store/8fal0zpgxky1pi546ygyryy2wgqnmcfb-python3.12-construct-2.10.70/lib/python3.12/site-packages/construct/core.py", line 2838, in __init__
    super().__init__(subcon)
  File "/nix/store/8fal0zpgxky1pi546ygyryy2wgqnmcfb-python3.12-construct-2.10.70/lib/python3.12/site-packages/construct/core.py", line 792, in __init__
    raise TypeError("subcon should be a Construct field")
TypeError: subcon should be a Construct field

I think we should drop this. It's relying on broken dependencies.

@ryand56 ryand56 closed this Sep 26, 2025
@eclairevoyant

eclairevoyant commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

Thanks for looking into it and confirming 🎉

@ryand56
ryand56 deleted the update/onthespot branch September 26, 2025 19:49
@henrispriet henrispriet mentioned this pull request Oct 6, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants