Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] pkgdev stablereq error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
leejm516
n00b
n00b


Joined: 05 Aug 2024
Posts: 5
Location: Busan, South Korea

PostPosted: Fri Feb 07, 2025 1:52 pm    Post subject: [Solved] pkgdev stablereq error Reply with quote

Hi!

I found how to add stable request (https://wiki.gentoo.org/wiki/Stable_request) recently and want to add stable reqs to several testing-period packages I am using.
Unfortunately, pkgdev is always unsuccessful with an error shown below, for example.

Code:

~/repo/gentoo $ pkgdev bugs -s =sys-devel/binutils-2.44
Checking =sys-devel/binutils-2.44 on 'amd64 arm arm64 hppa ppc ppc64 sparc x86'
Check for open bugs matching current graph? [Yes/No] (default: No): no
Continue and create 1 stablereq bugs? [Yes/No] (default: No): y
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.12/pkgdev", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/__init__.py", line 48, in main
    run(os.path.basename(sys.argv[0]))
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/__init__.py", line 40, in run
    sys.exit(tool())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/snakeoil/cli/tool.py", line 81, in __call__
    ret = self.main()
          ^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/cli.py", line 23, in main
    return super().main()
           ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/snakeoil/cli/tool.py", line 191, in main
    self.handle_exec_exception(e)
  File "/usr/lib/python3.12/site-packages/snakeoil/cli/tool.py", line 176, in main
    exitstatus = func(self.options, self.out, self.err)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/pkgdev_bugs.py", line 815, in main
    d.file_bugs(options.api_key, frozenset(enabled).difference(disabled), blocks)
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/pkgdev_bugs.py", line 734, in file_bugs
    node.file_bug(api_key, auto_cc_arches, block_bugs, self.modified_repo, observe)
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/pkgdev_bugs.py", line 332, in file_bug
    data=json.dumps(request_data).encode("utf-8"),
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/encoder.py", line 200, in encode
    chunks = self.iterencode(o, _one_shot=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/encoder.py", line 258, in iterencode
    return _iterencode(o, 0)
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/encoder.py", line 180, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type DelayedValue is not JSON serializable


What can I do to resolve this error?
Thanks!


Last edited by leejm516 on Sun Feb 09, 2025 1:17 am; edited 1 time in total
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 469

PostPosted: Sat Feb 08, 2025 5:02 pm    Post subject: Reply with quote

You should look at the pkgdev issue tracker and report the bug.
As for the stable-req, the wiki page you linked mentions manually opening a stable-req on gentoo's bug tracker.
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 542

PostPosted: Sat Feb 08, 2025 5:07 pm    Post subject: Reply with quote

What happens if you type "Yes" instead of "y"?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2142

PostPosted: Sun Feb 09, 2025 12:42 am    Post subject: Reply with quote

It might be that you need to generate and set an API key. Of course, it should give a nicer error if that is the problem.
Back to top
View user's profile Send private message
leejm516
n00b
n00b


Joined: 05 Aug 2024
Posts: 5
Location: Busan, South Korea

PostPosted: Sun Feb 09, 2025 1:15 am    Post subject: Reply with quote

sMueggli wrote:
What happens if you type "Yes" instead of "y"?


It seems that pkgdev both accepts y and Yes :D
Back to top
View user's profile Send private message
leejm516
n00b
n00b


Joined: 05 Aug 2024
Posts: 5
Location: Busan, South Korea

PostPosted: Sun Feb 09, 2025 1:16 am    Post subject: Reply with quote

sam_ wrote:
It might be that you need to generate and set an API key. Of course, it should give a nicer error if that is the problem.


Ah, ok. I am not familiar with bugzilla and I didn't know of the api key. Now I generated one and pkgdev works fine. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum