Gentoo Archives: gentoo-user

From: Aisha Tammy <gentoo.user@×××××.cc>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] vtk python USE flag question
Date: Sat, 19 Dec 2020 12:44:33
Message-Id: ba2d82ad-4046-04e2-16a6-8cac3050cf4b@aisha.cc
In Reply to: [gentoo-user] vtk python USE flag question by "Valmor F. de Almeida"
1 On 12/18/20 4:31 PM, Valmor F. de Almeida wrote:
2 > Hello,
3 >
4 > I emerged vtk with the python USE flag on.
5 > Next I started a python interactive session and tried to import vtk:
6 >
7 > ->  python
8 > Python 3.8.6 (default, Nov 21 2020, 00:26:41)
9 > [GCC 9.3.0] on linux
10 > Type "help", "copyright", "credits" or "license" for more information.
11 >>>> import vtk
12 >
13 > but vtk can't be found.
14 >
15 > Are the bindings for python supposed to work this way?
16 >
17 > Thanks,
18 > --
19 > Valmor
20 >
21
22 Check what version of python_single_target vtk was merged for.
23 Most likely, it was merged for 3.7, in which case you need
24 to do an upgrade.
25 Recently the python targets were changed from 3.7 to 3.8
26 so its good idea to remerge the whole tree to upgrade all
27 packages to 3.8
28
29 Aisha