| View previous topic :: View next topic |
| Author |
Message |
jserink Veteran

Joined: 30 Jan 2004 Posts: 1008
|
Posted: Thu May 24, 2018 7:28 am Post subject: Migratin to python3_6, sci-libs/scipy will not build[solved] |
|
|
Hi All:
After reading the news item on the upcoming move to python 3_6 I decided to move over in advance since I'd already been building python 3_6 as a fallback for some months.
The only thing that broke was scipy. To get it to build I had to do this in the package.use file:
| Code: | dev-python/pillow jpeg2k tk webp python_targets_python3_5
>=dev-python/certifi-2017.4.17 python_targets_python3_5
dev-python/setuptools python_targets_python3_5
>=sci-libs/scipy-0.16.1 sparse python_targets_python3_5
>=dev-python/numpy-1.10.4 lapack python_targets_python3_5
>=dev-python/cython-0.25.2 python_targets_python3_5
dev-python/bottleneck python_targets_python3_5
|
So until scipy is sorted, I can't dump python 3.5. Not that big a deal but this tip might save others some time and frustration.
Cheers,
John
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
| Back to top |
|
 |
figueroa Advocate


Joined: 14 Aug 2005 Posts: 2984 Location: Edge of marsh USA
|
Posted: Thu May 24, 2018 4:35 pm Post subject: |
|
|
Regarding the 5/22 news item "Python 3.6 to become the default target"
I found that to be a sufficiently cryptic news item. I have no python targets set, preferring to let portage sort it out. At one time that was a recommendation somewhere and my systems are stable and everything seems to work just fine.
When I enter eselect python list I get:
| Code: | Available Python interpreters, in order of preference:
[1] python3.4
[2] python3.6 (fallback)
[3] python3.5 (fallback)
[4] python2.7 (fallback)
|
Is that sane? SHOULD I do anything? Will portage continue to sorting this out for me?
[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu] _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
| Back to top |
|
 |
Faraclas Tux's lil' helper

Joined: 08 Dec 2014 Posts: 117
|
Posted: Fri May 25, 2018 3:22 pm Post subject: |
|
|
| I'm having the same issue. It doesn't seem like this is actually solved until scipy can build with the python 3.6 use flag. |
|
| Back to top |
|
 |
asturm Developer

Joined: 05 Apr 2007 Posts: 9014
|
Posted: Sat May 26, 2018 7:02 pm Post subject: |
|
|
That's a wrong assumption, unless scipy really fails to build. If it just lacks python3_6 compatibility, then this will be compensated by a python3_5 entry in the default profile so that scipy's (and others' deps) are being fulfilled.
EDIT: I see that sci-libs/scipy does list python3_6 in available PYTHON_TARGETS. Please check if you hit one of the several existing bugs: https://bugs.gentoo.org/buglist.cgi?quicksearch=sci-libs%2Fscipy&list_id=3943374 |
|
| Back to top |
|
 |
slackline Veteran


Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Tue Jun 12, 2018 8:52 pm Post subject: |
|
|
| Faraclas wrote: | | I'm having the same issue. It doesn't seem like this is actually solved until scipy can build with the python 3.6 use flag. |
On the back of @figueroa's post I decided to try explicitly setting python3.6 with eselect python in the hope that it would resolve a similar problem with dev-python/bottleneck (see #650688). It worked for me so perhaps something to try...
| Code: |
eselect python set <whatever number python3.6 is listed as>
|
_________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
| Back to top |
|
 |
Naib Watchman


Joined: 21 May 2004 Posts: 6053 Location: Removed by Neddy
|
Posted: Tue Jun 12, 2018 9:13 pm Post subject: |
|
|
| Code: |
$ py
Python 3.6.5 (default, Apr 28 2018, 09:55:33)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> dir(scipy)
['ALLOW_THREADS', 'AxisError', 'BUFSIZE', 'CLIP', 'ComplexWarning', 'DataSource', 'ERR_CALL', 'ERR_DEFAULT', 'ERR_IGNORE', 'ERR_LOG', 'ERR_PRINT', 'ERR_RAISE', 'ERR_WARN', 'FLOATING_POINT_SUPPORT', 'FPE_DIVIDEBYZERO', 'FPE_INVALID', 'FPE_OVERFLOW', 'FPE_UNDERFLOW', 'False_', 'I |
so scipy does build against py36 so the question then is ...why doesn't it for you.
can you post the output when it fails as you have only posted the masking not the failure _________________
| Quote: | | Removed by Chiitoo |
|
|
| Back to top |
|
 |
|
|
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
|
|