View previous topic :: View next topic |
Author |
Message |
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Wed Jul 02, 2014 12:00 pm Post subject: Installing blender 2.71 |
|
|
Hi everybody.
I am trying to install blender 2.71, and it seems to require python 3.4. I did:
Code: |
/etc/make.conf:
USE_PYTHON="2.7 3.3 3.4"
PYTHON_TARGETS="python2_7 python3_3 python3_4"
/etc/portage/package.use:
media-gfx/blender python_single_target_python3_4 cycles
/etc/portage/package.keywords:
media-gfx/blender ~amd64
|
and run into an error:
Code: |
emerge: there are no ebuilds to satisfy ">=dev-python/chardet-2.2.1[python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)]".
(dependency required by "dev-python/requests-2.3.0" [ebuild])
(dependency required by "media-gfx/blender-2.71" [ebuild])
(dependency required by "blender" [argument])
|
I am lost.
my emerge --info: http://pastebin.com/sU2PHUnv |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Wed Jul 02, 2014 12:55 pm Post subject: |
|
|
I fail to understand, why in the following python3_4 is disabled:
Code: | # emerge -av1 chardet
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-python/chardet-2.2.1 PYTHON_TARGETS="python2_7 python3_3 (-pypy) (-python2_6) -python3_2 (-python3_4)" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No]
|
|
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Wed Jul 02, 2014 1:25 pm Post subject: |
|
|
Something is not right. I ran python-updater, and:
Code: |
>>> Emerging (3 of 3) sys-libs/libcap-ng-0.7.3
* libcap-ng-0.7.3.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* ERROR: sys-libs/libcap-ng-0.7.3::gentoo failed (setup phase):
* USE_PYTHON variable contains invalid value '3.4'
*
* Call stack:
* ebuild.sh, line 93: Called pkg_setup
* libcap-ng-0.7.3.ebuild, line 29: Called python_pkg_setup
* python.eclass, line 430: Called _python_calculate_PYTHON_ABIS
* python.eclass, line 775: Called die
* The specific snippet of code:
* die "USE_PYTHON variable contains invalid value '${PYTHON_ABI}'"
*
* If you need support, post the output of `emerge --info '=sys-libs/libcap-ng-0.7.3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-libs/libcap-ng-0.7.3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-libs/libcap-ng-0.7.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/libcap-ng-0.7.3/temp/die.env'.
* Working directory: '/usr/lib64/portage/pym'
* S: '/var/tmp/portage/sys-libs/libcap-ng-0.7.3/work/libcap-ng-0.7.3'
>>> Failed to emerge sys-libs/libcap-ng-0.7.3, Log file:
>>> '/var/tmp/portage/sys-libs/libcap-ng-0.7.3/temp/build.log'
|
|
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Wed Jul 02, 2014 4:53 pm Post subject: |
|
|
I don't think pythin 3.4 is ready to be the system python yet. I would leave it on 3.3, but I could easily be wrong about this.
As for installing blender, I would specifically enable the python versions in /etc/portage/package.use like so Code: | media-gfx/blender cycles ffmpeg sdl tiff python_single_target_python3_4 python_targets_python3_4 | This is my entry. You may want different flagsm but as you can see the last two flags set the python versions.
Enabling python targets and python single targets to the newest versions in make.conf doest seem to be a good move. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Wed Jul 02, 2014 5:00 pm Post subject: |
|
|
Do you run blender 2.71? I tried equivalent entries in package.use with no luck. Can you show your emerge -pv blender? |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Wed Jul 02, 2014 5:58 pm Post subject: |
|
|
Certainlly Code: | [ebuild R ] media-gfx/blender-2.71 USE="boost bullet cycles dds elbeem ffmpeg game-engine nls openexr openmp opennl sdl sse sse2 tiff -collada -colorio -debug -doc -fftw -jack -jpeg2k -ndof -openal -openimageio -player -redcode -sndfile" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4" 0 kB |
I just noticed that your error on libcat says USE_PYTHON variable contains invalid value '3.4' this indicates to me that 3.4 isn't even implemented yet. You may want to set '2.7 3.3' or simply comment it out entirely.
As to why chardet has python3_4 disabled in your output, the use flag is forced to be disabled. That is what the parentheses mean. You can't change that flag. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
defer- Tux's lil' helper
Joined: 11 Jun 2007 Posts: 140 Location: Finland
|
Posted: Wed Jul 02, 2014 11:54 pm Post subject: |
|
|
The Doctor wrote: | I don't think pythin 3.4 is ready to be the system python yet. I would leave it on 3.3, but I could easily be wrong about this.
As for installing blender, I would specifically enable the python versions in /etc/portage/package.use like so Code: | media-gfx/blender cycles ffmpeg sdl tiff python_single_target_python3_4 python_targets_python3_4 | This is my entry. You may want different flagsm but as you can see the last two flags set the python versions.
Enabling python targets and python single targets to the newest versions in make.conf doest seem to be a good move. |
I wonder if something like:
Code: | PYTHON_DEPEND="3.4" |
would be better for the blender ebuild than the current:
Code: | PYTHON_COMPAT=( python3_4 ) |
_________________ https://github.com/defer-
Last edited by defer- on Thu Jul 10, 2014 10:46 pm; edited 1 time in total |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Thu Jul 03, 2014 11:19 am Post subject: |
|
|
The Doctor wrote: | Code: | media-gfx/blender cycles ffmpeg sdl tiff python_single_target_python3_4 python_targets_python3_4 |
|
Thank you, this seems to work... I thought I tried this, but I am not sure. Another way I found was to unmask use flags python_single_target_python3_4 and python_targets_python3_4 globally. Which is new for me - for a long time of running gentoo I didn't know that use flags can be masked |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Sun Jul 06, 2014 1:34 pm Post subject: |
|
|
I managed to install blender on my machine at work, but now on my home machine:
package.use:
Code: | media-gfx/blender cycles python_single_target_python3_4 python_targets_python3_4 |
package.keywords:
Code: | media-gfx/blender ~amd64
=sci-libs/suitesparseconfig-4.2* ~amd64
=sci-libs/ldl-2.1* ~amd64
=dev-python/requests-2.3* ~amd64
=dev-python/numpy-1.8* ~amd64
=dev-lang/python-exec-2.9999 **
=dev-python/setuptools-5* ~amd64
dev-lang/python:3.4 ~amd64 |
emerge --info: http://pastebin.com/tFUYBTzE
emerge attempt:
Code: | # emerge -av blender
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by media-gfx/blender-2.71
# required by blender (argument)
>=dev-python/numpy-1.8.1 python_targets_python3_4
# required by media-gfx/blender-2.71
# required by blender (argument)
>=dev-python/requests-2.3.0 python_targets_python3_4
Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.
emerge: there are no ebuilds to satisfy ">=dev-python/chardet-2.2.1[python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)]".
(dependency required by "dev-python/requests-2.3.0" [ebuild])
(dependency required by "media-gfx/blender-2.71" [ebuild])
(dependency required by "blender" [argument])
|
What am I missing? |
|
Back to top |
|
|
radio_flyer Guru
Joined: 04 Nov 2004 Posts: 317 Location: Northern California
|
Posted: Sun Jul 06, 2014 7:39 pm Post subject: |
|
|
Blender is always a pain on a stable system. It thrives on pushing everything, particularly python, to just beyond the bleeding edge.
I avoid playing with USE_PYTHON, PYTHON_TARGETS or PYTHON_SINGLE_TARGET in my make.conf as my understanding is that that functionality is not ready for prime-time on a stable system at this time. Since python is so critical to portage, I prefer to enable the bleeding-edge python stuff for only those applications that can't live without it (like blender).
On my system, I do this by following the instructions in the wiki for unmasking unstable python on stable systems at the bottom of this page:
https://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS
Basically, unmask the bleeding-edge python in /etc/portage/profile/use.stable.mask (make sure eapi=5), and un-keyword it in /etc/portage/package.accept_keywords. (Replace 3_3 with 3_4 on the current wiki example.)
I then enable the appropriate 'python_single_target_python3_4' and 'python_targets_python3_4' USE flags in /etc/portage/package.use on blender, numpy and the rest of blender's current gang, and unmask those files in /etc/portage/package.accept_keywords as instructed by portage. Rinse and repeat every time blender 'upgrades'. |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Mon Jul 07, 2014 11:51 am Post subject: |
|
|
Thank you. This works |
|
Back to top |
|
|
Sunray n00b
Joined: 06 Aug 2003 Posts: 4
|
Posted: Thu Jul 10, 2014 3:18 pm Post subject: |
|
|
Thanks! Works! |
|
Back to top |
|
|
gmadsciencelab n00b
Joined: 22 Mar 2014 Posts: 4
|
|
Back to top |
|
|
SirKha n00b
Joined: 29 Sep 2004 Posts: 6
|
Posted: Thu Jul 24, 2014 12:44 pm Post subject: |
|
|
Hi, I was having the same problem and found this thread somewhat useful. Instead of globally unmasking the python3_4 in /etc/portage/profile/use.stable.mask, though, I just added the ~amd64 flags to dev-lang/chardet. Even though the package is stable, this allowed me to add the python_targets_python3_4 useflag to that package. I also added the ~amd64 flag to dev-lang/python-exec so that I could avoid having to unmask dev-lang/python-exec-2.999. _________________ Today is the day. |
|
Back to top |
|
|
autofyrsto n00b
Joined: 16 Aug 2014 Posts: 11
|
Posted: Sat Aug 16, 2014 4:31 pm Post subject: |
|
|
Thanks, SirKha. Adding keyword ~x86 to dev-lang/chardet worked for me on my Compaq nc6230.
I would have expected emerge to return a message like: "The following keyword changes are necessary to proceed: dev-lang/chardet ~x86", but that seems not to have happened with this version of Blender. |
|
Back to top |
|
|
Navar Guru
Joined: 20 Aug 2012 Posts: 353
|
Posted: Wed Oct 15, 2014 9:10 pm Post subject: |
|
|
Note: In my case, it is with blender-2.72-r1.
Khumarahn wrote: | I fail to understand, why in the following python3_4 is disabled:
Code: | # emerge -av1 chardet
[ebuild R ] dev-python/chardet-2.2.1 PYTHON_TARGETS="python2_7 python3_3 (-pypy) (-python2_6) -python3_2 (-python3_4)" 0 kB
|
|
Good question. The chardet-2.2.1.ebuild is pretty brief, in particular:
Code: | DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
|
Looking at what I currently have installed,
Code: | $ emerge -pv dev-python/setuptools
[ebuild R ] dev-python/setuptools-2.2 PYTHON_TARGETS="python2_7 python3_3 (-pypy) (-python3_2) (-python3_4)" 0 kB
|
Setting python_single_target_python3_4 and/or python_targets_python3_4 for dev-python/chardet in a package.use.file seems ignored (perhaps due to in-tree use mask). dev-python/setuptools seems to only be keyworded non-~ and ~ respectively on versions 2.2 and 6.0.2. Whether it's ok to set python3.4 support on setuptools I'm investigating. |
|
Back to top |
|
|
Navar Guru
Joined: 20 Aug 2012 Posts: 353
|
Posted: Thu Oct 16, 2014 12:56 am Post subject: |
|
|
In the end, what I did on an amd64 keyworded system:
- Set active python3 python3.2 to python3.3 (since 3.2 seems to be going away).
- Ran python-updater which, in my case, only affected sys-libs/libcap-ng-0.7.3 for rebuild.
- Added/changed the following in related package.use file:
Quote: | media-gfx/blender cycles python_single_target_python3_4 python_targets_python3_4
dev-cpp/glog gflags
>=dev-python/numpy-1.8.2 python_targets_python3_4
>=dev-python/requests-2.4.1 python_targets_python3_4
>=dev-python/chardet-2.2.1 python_targets_python3_4
dev-python/setuptools python_targets_python3_4
>=dev-lang/python-exec-2.0.1-r1 python_targets_python3_4
|
Quote: | =media-gfx/blender-2.72-r1 ~amd64
=dev-cpp/glog-0.3.3-r1 ~amd64
=dev-python/numpy-1.8.2 ~amd64
=dev-cpp/gflags-2.1.1-r1 ~amd64
=dev-python/requests-2.4.1 ~amd64
|
- ... in /etc/portage/profile/use.mask file:
Quote: | -python_targets_python3_4
-python_single_target_python3_4 |
While portage offered to ** keyword unmask >=dev-lang/python-exec-2.9999, I took the Gentoo dev's advice in news to use the python targets instead. I left my python targets and single targets in make.conf with 2.7, 3.2, and 3.3.
The media-gfx/blender-2.72-r1 in portage tree installed and seems to be working fine. |
|
Back to top |
|
|
Linubie Guru
Joined: 11 Jun 2004 Posts: 365
|
Posted: Thu Oct 30, 2014 10:19 pm Post subject: |
|
|
Navar wrote: | In the end, what I did on an amd64 keyworded system:
- Set active python3 python3.2 to python3.3 (since 3.2 seems to be going away).
- Ran python-updater which, in my case, only affected sys-libs/libcap-ng-0.7.3 for rebuild.
- Added/changed the following in related package.use file:
Quote: | media-gfx/blender cycles python_single_target_python3_4 python_targets_python3_4
dev-cpp/glog gflags
>=dev-python/numpy-1.8.2 python_targets_python3_4
>=dev-python/requests-2.4.1 python_targets_python3_4
>=dev-python/chardet-2.2.1 python_targets_python3_4
dev-python/setuptools python_targets_python3_4
>=dev-lang/python-exec-2.0.1-r1 python_targets_python3_4
|
Quote: | =media-gfx/blender-2.72-r1 ~amd64
=dev-cpp/glog-0.3.3-r1 ~amd64
=dev-python/numpy-1.8.2 ~amd64
=dev-cpp/gflags-2.1.1-r1 ~amd64
=dev-python/requests-2.4.1 ~amd64
|
- ... in /etc/portage/profile/use.mask file:
Quote: | -python_targets_python3_4
-python_single_target_python3_4 |
While portage offered to ** keyword unmask >=dev-lang/python-exec-2.9999, I took the Gentoo dev's advice in news to use the python targets instead. I left my python targets and single targets in make.conf with 2.7, 3.2, and 3.3.
The media-gfx/blender-2.72-r1 in portage tree installed and seems to be working fine. |
Following your post, I still need to unmask
Code: |
The following keyword changes are necessary to proceed:
(see "package.accept_keywords" in the portage(5) man page for more details)
# required by media-gfx/blender-2.72-r1
# required by blender (argument)
=sci-libs/ldl-2.1.0 ~amd64
# required by media-gfx/blender-2.72-r1
# required by blender (argument)
=dev-lang/python-exec-2.9999 **
# required by dev-python/numpy-1.8.2
# required by media-gfx/blender-2.72-r1
# required by blender (argument)
=dev-python/setuptools-7.0 ~amd64 |
make.conf
Code: | USE_PYTHON="2.7 3.2 3.3"
PYTHON_TARGETS="python2_7 python3_2 python3_3"
PYTHON_SINGLE_TARGET="python2_7 python3_2 python3_3"
|
package.use
Code: | media-gfx/blender cycles python_single_target_python3_4 python_targets_python3_4
dev-cpp/glog gflags
>=dev-python/numpy-1.8.2 python_targets_python3_4
>=dev-python/requests-2.4.1 python_targets_python3_4
>=dev-python/chardet-2.2.1 python_targets_python3_4
dev-python/setuptools python_targets_python3_4
>=dev-lang/python-exec-2.0.1-r1 python_targets_python3_4 |
use.mask
Code: | -python_targets_python3_4
-python_single_target_python3_4
|
I still can't install blender
Code: |
emerge blender -av
These are the packages that would be merged, in order:
Calculating dependencies... done!
emerge: there are no ebuilds to satisfy ">=dev-python/chardet-2.2.1[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)]".
(dependency required by "dev-python/requests-2.4.1" [ebuild])
(dependency required by "media-gfx/blender-2.72-r1" [ebuild])
(dependency required by "blender" [argument])
|
I guess I am missing something _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
|
Navar Guru
Joined: 20 Aug 2012 Posts: 353
|
Posted: Mon Nov 03, 2014 3:11 am Post subject: |
|
|
Sorry, I had missed noticing a response to this thread.
Linubie wrote: | make.conf
Code: | USE_PYTHON="2.7 3.2 3.3"
PYTHON_TARGETS="python2_7 python3_2 python3_3"
PYTHON_SINGLE_TARGET="python2_7 python3_2 python3_3"
|
|
Navar wrote: | I left my python targets and single targets in make.conf with 2.7, 3.2, and 3.3 |
Hm. Perhaps poor phrasing on my part.
SINGLE_TARGET should just have one as per http://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS. I just use eselect python route for setting python2 and python3 active than utilizing USE_PYTHON. Likewise, I may be mistaken, but since USE_PYTHON and eselect python seem to be around the same goals of setting an active major version interpreter, then your USE_PYTHON (if you keep it) should just have 3.2 or 3.3 (preferable) rather than both.
Mine, e.g., is like this:
Code: | PYTHON_TARGETS="python2_7 python3_2 python3_3"
PYTHON_SINGLE_TARGET="python2_7 |
Code: | $ eselect python list --python2
Available Python 2 interpreters:
[1] python2.7 *
$ eselect python list --python3
Available Python 3 interpreters:
[1] python3.2
[2] python3.3 *
[3] python3.4 |
Linubie wrote: | use.mask
Code: | -python_targets_python3_4
-python_single_target_python3_4
|
|
Is no longer needed as it's been recently unmasked. Leaving that in there won't hurt anything though.
Last edited by Navar on Mon Nov 03, 2014 3:36 am; edited 3 times in total |
|
Back to top |
|
|
Navar Guru
Joined: 20 Aug 2012 Posts: 353
|
Posted: Mon Nov 03, 2014 3:21 am Post subject: |
|
|
Linubie wrote: | Following your post, I still need to unmask Code: | =sci-libs/ldl-2.1.0 ~amd64
=dev-lang/python-exec-2.9999 **
# required by dev-python/numpy-1.8.2
# required by media-gfx/blender-2.72-r1
# required by blender (argument)
=dev-python/setuptools-7.0 ~amd64 |
|
Whoops, I must have missed mentioning that one. sci-libs/ldl is to be expected as available were all ~ keyworded. However, dev-python/setuptools-2.2 and dev-lang/python-exec-2.0.1-r1 were sufficient here.
Code: | $ equery l -p dev-lang/python-exec
* Searching for python-exec in dev-lang ...
[IP-] [ ] dev-lang/python-exec-0.3.1-r1:0
[-P-] [ -] dev-lang/python-exec-0.9999:0
[IP-] [ ] dev-lang/python-exec-2.0.1-r1:2
[-P-] [ -] dev-lang/python-exec-2.9999:2 |
|
|
Back to top |
|
|
augustin Guru
Joined: 23 Feb 2015 Posts: 318
|
Posted: Wed Feb 25, 2015 11:00 am Post subject: |
|
|
radio_flyer wrote: | Blender is always a pain on a stable system. It thrives on pushing everything, particularly python, to just beyond the bleeding edge.
|
As an exception to the the gentoo principle of compiling everything from source, would installing the statically linked binaries provided by blender.org work? |
|
Back to top |
|
|
augustin Guru
Joined: 23 Feb 2015 Posts: 318
|
Posted: Wed Feb 25, 2015 11:47 am Post subject: |
|
|
Also, I checked the gentoo wiki and there is no wiki page dedicated to blender.
I am new here, so I don't know yet the policies and the standard practice, but shouldn't we start a blender wiki page for gentoo-specific instructions, tips, etc. with regard to blender? |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Wed Feb 25, 2015 11:49 am Post subject: |
|
|
Yes, starting a wiki page is a very good idea - installation of blender is very involved at the moment, it requires unmasking USE flags, and applying custom patches... |
|
Back to top |
|
|
augustin Guru
Joined: 23 Feb 2015 Posts: 318
|
Posted: Wed Feb 25, 2015 12:19 pm Post subject: |
|
|
Khumarahn wrote: | Yes, starting a wiki page is a very good idea - installation of blender is very involved at the moment, it requires unmasking USE flags, and applying custom patches... |
Ok, then. I just created an account in the wiki.
Here you are:
https://wiki.gentoo.org/wiki/Blender
I leave it up to you all to document what needs to be. I wouldn't know what information to add. I don't have Gentoo installed, yet. [See: https://forums.gentoo.org/viewtopic-t-1011454.html ]. |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Wed Feb 25, 2015 4:40 pm Post subject: |
|
|
I added all I know about blender to that page
Hope it is helpful, and people with more blender knowledge will edit it later. |
|
Back to top |
|
|
|