View previous topic :: View next topic |
Author |
Message |
leejm516 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Aug 2024 Posts: 5 Location: Busan, South Korea
|
Posted: Fri Feb 07, 2025 1:52 pm Post subject: [Solved] pkgdev stablereq error |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bstaletic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2014 Posts: 469
|
Posted: Sat Feb 08, 2025 5:02 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
sMueggli Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 03 Sep 2022 Posts: 542
|
Posted: Sat Feb 08, 2025 5:07 pm Post subject: |
|
|
What happens if you type "Yes" instead of "y"? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sam_ Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/7738740495f7d1acc45bdb.jpg)
Joined: 14 Aug 2020 Posts: 2142
|
Posted: Sun Feb 09, 2025 12:42 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
leejm516 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Aug 2024 Posts: 5 Location: Busan, South Korea
|
Posted: Sun Feb 09, 2025 1:15 am Post subject: |
|
|
sMueggli wrote: | What happens if you type "Yes" instead of "y"? |
It seems that pkgdev both accepts y and Yes ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
leejm516 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Aug 2024 Posts: 5 Location: Busan, South Korea
|
Posted: Sun Feb 09, 2025 1:16 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|