Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Blender PYTHON_SINGLE_TARGET problem
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
Jim5678
n00b
n00b


Joined: 23 Jan 2024
Posts: 11

PostPosted: Sun Aug 18, 2024 1:36 pm    Post subject: Blender PYTHON_SINGLE_TARGET problem Reply with quote

Hi,
I've been trying to update my system and I'm stuck with this problem. I'm wondering if I should just set the Python version to use as described here to get past the Blender blocker https://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS

If I try an
Code:
emerge -uDN world
no packages are updated even after a eix-sync.

It tells me to
Code:
emerge @preserved-rebuild
but then I hit this blocker. I've not declared PYTHON_SINGLE_TARGET in my /etc/portage/make.conf.

Code:

hawaiian# emerge @preserved-rebuild   

 * IMPORTANT: 1 news items need reading for repository 'mva'.
 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

 * Last emerge --sync was 33d 9h 47m 37s ago.
Calculating dependencies \

!!! Problem resolving dependencies for media-gfx/blender:3.6 from @preserved-rebuild
... done!
Dependency resolution took 1.21 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "media-gfx/blender:3.6" has unmet requirements.
- media-gfx/blender-3.6.8::gentoo USE="X bullet color-management cycles dds embree ffmpeg fftw fluid gmp nanovdb nls oidn openexr openmp openpgl opensubdiv openvdb pdf potrace pugixml pulseaudio sdl sndfile tbb tiff wayland -alembic -collada (-cuda) -cycles-bin-kernels -debug -doc -jack -jemalloc -jpeg2k -man -ndof -openal -optix -osl -test -valgrind" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 -python3_11"

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

  The above constraints are a subset of the following complete expression:
    exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 ) alembic? ( openexr ) cuda? ( cycles ) cycles? ( openexr tiff ) fluid? ( tbb ) openvdb? ( tbb ) optix? ( cuda ) osl? ( cycles ) test? ( color-management )

(dependency required by "@preserved-rebuild" [argument])


Any help gratefully received,

[Administrator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Jim5678
n00b
n00b


Joined: 23 Jan 2024
Posts: 11

PostPosted: Sun Aug 18, 2024 1:38 pm    Post subject: Reply with quote

Just got the sync to work, but need help with the preserved-rebuild problem.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4845
Location: Bavaria

PostPosted: Sun Aug 18, 2024 1:40 pm    Post subject: Reply with quote

What is the output of:
Code:
grep -r --exclude-dir=savedconfig --exclude-dir=repos.conf "" /etc/portage

?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22392

PostPosted: Sun Aug 18, 2024 2:07 pm    Post subject: Reply with quote

You have blender-3.6.8 installed. emerge @preserved-rebuild wants to reinstall that specific version. That version does not support python3.12. You (probably) are set to python_single_target_python3_12 by your profile. Therefore, you get an error. Your options are:
  • Switch to a newer version of blender, which supports python3.12.
  • Configure Portage to use an older version of Python for blender (and its dependencies, if any). I recommend against changing anything more than necessary to use the older Python. Enable the older Python only for things where Portage instructs you to do so, rather than enabling it everywhere.
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