Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] another python update issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1556
Location: switzerland

PostPosted: Wed Jun 05, 2024 6:01 am    Post subject: [solved] another python update issue Reply with quote

HI, I got this error while trying to update python on my system

Code:
[gentoo|6.6.30|~] emerge -uUDavN @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 3.56 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "dev-libs/libpeas:0[python_single_target_python3_10(-)?,python_single_target_python3_11(-)?]" has unmet requirements.
- dev-libs/libpeas-1.36.0::gentoo USE="gtk python -glade -gtk-doc -lua -test -vala" ABI_X86="(64)" LUA_SINGLE_TARGET="lua5-1 -luajit" PYTHON_SINGLE_TARGET="python3_11 python3_12 -python3_10"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 python_single_target_python3_12 ) )

  The above constraints are a subset of the following complete expression:
    lua? ( exactly-one-of ( lua_single_target_luajit lua_single_target_lua5-1 ) ) python? ( exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 python_single_target_python3_12 ) )

(dependency required by "media-video/pitivi-2023.03-r2::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


At the moment I put mysql-workbench and pitivi in package.mask because they don't still support python 12

Code:

[gentoo|6.6.30|~] more /etc/portage/package.mask/python_upgrade
=dev-db/mysql-workbench-8.0.36
=media-video/pitivi-2023.03-r2


what I have to do? I'm trying do the second step of the saver update process explained in the news


Code:

[gentoo|6.6.30|~] more /etc/portage/package.use/python
*/* PYTHON_TARGETS: -* python3_11 python3_12
*/* PYTHON_SINGLE_TARGET: -* python3_12


Thanks a lot in advance
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***


Last edited by luna80 on Thu Jun 06, 2024 9:24 am; edited 1 time in total
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1029
Location: Somewhere in Denmark

PostPosted: Wed Jun 05, 2024 7:49 am    Post subject: Reply with quote

You will need to wait till media-video/pitivi gets updated to support python3_12 or remove python3_12 single target and set python3_11 single target for dev-libs/libpeas in /etc/portage/package.use
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1556
Location: switzerland

PostPosted: Wed Jun 05, 2024 7:57 am    Post subject: Reply with quote

I already tried to do that but I got the same error, nothing change
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2418

PostPosted: Wed Jun 05, 2024 9:14 am    Post subject: Reply with quote

freke wrote:
You will need to wait till media-video/pitivi gets updated to support python3_12 or remove python3_12 single target and set python3_11 single target for dev-libs/libpeas in /etc/portage/package.use


I'm not sure you can have packages with different single target. I think it should be set globally for all.

luna80 wrote:
I already tried to do that but I got the same error, nothing change


As I said above I think single target should be set globally for all packages. Or you might need to defer the upgrade. Did you check if there's a bug for that already? If not, you can file one.

Best Regards,
Georgi
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1556
Location: switzerland

PostPosted: Wed Jun 05, 2024 10:50 am    Post subject: Reply with quote

logrusx wrote:
Did you check if there's a bug for that already? If not, you can file one.

Best Regards,
Georgi


Uh, I checked now...both mysql-workbench and pitivi aren't updated with python 3.12

now...how can I do to go back to previous step of the upgrade? or it's better I stay in this temporary step and wait for upgrade of pitivi and mysql-workbench?
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2418

PostPosted: Wed Jun 05, 2024 10:57 am    Post subject: Reply with quote

luna80 wrote:
logrusx wrote:
Did you check if there's a bug for that already? If not, you can file one.

Best Regards,
Georgi


Uh, I checked now...both mysql-workbench and pitivi aren't updated with python 3.12

now...how can I do to go back to previous step of the upgrade? or it's better I stay in this temporary step and wait for upgrade of pitivi and mysql-workbench?


I'm not sure what to advise you. Maybe see if it isn't too much work to use the defer upgrade procedure from the news item. You should be able to just put hose entries in package.use and update the world.

Honestly, If I were you, I would wait for somebody else to state their opinions too. I feel going back is too much work. Maybe try setting only the PYTHON_SINGLE_TARGET to python3_11 and decide if you're up for the downgrade.

p.s. isn't mysql-workbench a binary distribution? I used to use it, but nowadays I use mycli. From what I remember, it was a binary distribution and if I'm correct you're going to need to wait upstream to update it to python 3.12...

Best Regards,
Georgi
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1556
Location: switzerland

PostPosted: Thu Jun 06, 2024 9:24 am    Post subject: Reply with quote

for the moment I solved so

Code:

┌─[diana@gentoo] - [6.6.30] : [~]
└─[$] more /etc/portage/package.use/python

*/* PYTHON_TARGETS: -* python3_11 python3_12
*/* PYTHON_SINGLE_TARGET: -* python3_12

dev-db/mysql-workbench python_single_target_python3_11
media-video/pitivi python_single_target_python3_11
dev-libs/libpeas python_single_target_python3_11 -python_single_target_python3_12
media-sound/rhythmbox python_single_target_python3_11 -python_single_target_python3_12


Searching I found a way to set single python target per package

libpeas is used by rhytmbox too...for this I had to set python target to 3 _11 for this too

I will check from time to time to know when python 3_12 is available for mysql-worckbench and pitivi

after that I will finish the python update steps
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1029
Location: Somewhere in Denmark

PostPosted: Thu Jun 06, 2024 9:31 am    Post subject: Reply with quote

luna80 wrote:
for the moment I solved so

Code:

┌─[diana@gentoo] - [6.6.30] : [~]
└─[$] more /etc/portage/package.use/python

*/* PYTHON_TARGETS: -* python3_11 python3_12
*/* PYTHON_SINGLE_TARGET: -* python3_12

dev-db/mysql-workbench python_single_target_python3_11
media-video/pitivi python_single_target_python3_11
dev-libs/libpeas python_single_target_python3_11 -python_single_target_python3_12
media-sound/rhythmbox python_single_target_python3_11 -python_single_target_python3_12


Searching I found a way to set single python target per package

libpeas is used by rhytmbox too...for this I had to set python target to 3 _11 for this too

I will check from time to time to know when python 3_12 is available for mysql-worckbench and pitivi

after that I will finish the python update steps


Python3_12 will probably be available when hte ebuilds are updated - you can set it to python3_11 for that specific version only if you want; ie.
Code:
=dev-db/mysql-workbench-8.0.36 python_single_target_python3_11
Then it will revert to try the default 3_12 when a new version comes.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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