Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555228 - dev-python/scipy-0.15.1 - ImportError: cannot import name scimath
Summary: dev-python/scipy-0.15.1 - ImportError: cannot import name scimath
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-18 04:53 UTC by Jason Mours
Modified: 2021-02-24 20:51 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (scipy-0.15.1.build.log,5.20 KB, text/plain)
2015-07-18 04:54 UTC, Jason Mours
Details
emerge-info (scipy-0.15.1-emerge.info,17.67 KB, text/plain)
2015-07-18 04:54 UTC, Jason Mours
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mours 2015-07-18 04:53:55 UTC
sci-libs/scipy-0.15.1 fails emerge with the following output -

Processing scipy/special/_ellip_harm_2.pyx
/usr/bin/python3.3 setup.py build config_fc --noopt --noarch
Traceback (most recent call last):
  File "setup.py", line 249, in <module>
    setup_package()
  File "setup.py", line 237, in setup_package
    from numpy.distutils.core import setup
  File "/usr/lib64/python3.3/site-packages/numpy/__init__.py", line 170, in <module>
    from . import add_newdocs
  File "/usr/lib64/python3.3/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib64/python3.3/site-packages/numpy/lib/__init__.py", line 17, in <module>
    from . import scimath as emath
ImportError: cannot import name scimath

Posting build.log

Reproducible: Always
Comment 1 Jason Mours 2015-07-18 04:54:22 UTC
Created attachment 407044 [details]
build.log
Comment 2 Jason Mours 2015-07-18 04:54:43 UTC
Created attachment 407046 [details]
emerge-info
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-07-29 06:56:40 UTC
which numpy are you using?
Comment 4 Jason Mours 2015-07-30 04:33:06 UTC
(In reply to Justin Lecher from comment #3)
> which numpy are you using?

Numpy is currently :dev-python/numpy-1.9.2::gentoo
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2015-07-30 07:02:39 UTC
I cannot reproduce this at all. Could try to rebuild numpy and scipy?
Comment 6 Jason Mours 2015-08-01 05:25:46 UTC
(In reply to Justin Lecher from comment #5)
> I cannot reproduce this at all. Could try to rebuild numpy and scipy?

My scipy was still at sci-math/scipy-0.14.0-r1 when I tried this update, the sci-libs/* has been pruned so I'm stuck at this point for now.

dev-python/numpy-1.9.2 builds fine.
Comment 7 giskard 2016-05-11 06:19:07 UTC
(In reply to Jason Mours from comment #6)
> (In reply to Justin Lecher from comment #5)
> > I cannot reproduce this at all. Could try to rebuild numpy and scipy?
> 
> My scipy was still at sci-math/scipy-0.14.0-r1 when I tried this update, the
> sci-libs/* has been pruned so I'm stuck at this point for now.
> 
> dev-python/numpy-1.9.2 builds fine.

I came across the same problem while installing sagemath, rebuild numpy works!
thanks very much!
Comment 8 Rick Farina (Zero_Chaos) gentoo-dev 2019-03-19 00:43:31 UTC
still hitting this.  I'll rebuild numpy as seems to be the suggestion
Comment 9 Rick Farina (Zero_Chaos) gentoo-dev 2019-03-19 01:33:12 UTC
so this fails reliably in catalyst when both scipy and numpy are not installed and trying to be installed together.

the deps of scipy appear correct, as numpy is in DEPEND and should be available when portage starts trying to install scipy.  Is it possible that maybe some environment setup isn't complete and /etc/profile needs to be re-read or something?
Comment 10 Rick Farina (Zero_Chaos) gentoo-dev 2019-03-19 01:34:01 UTC
:-(  nevermind, that didn't work either... mine is just plain broken
Comment 11 Jason Mours 2019-03-19 09:19:22 UTC
(In reply to Rick Farina (Zero_Chaos) from comment #10)
> :-(  nevermind, that didn't work either... mine is just plain broken

You are gentoo, it is broken... I'm going to start over again tho. Some other chip to -Os. I filed this from a 3.18 gentoo. If you're still seeing this from a 4.x gentoo. It is scipy, not just you. Like I was thinking. Python 3.3 is a '3' it's weak but essential. They never finished 3.4 so your '3' doesn't '4' because python changed hands. It is hard to make a 3 -4, as it were. The there is Python 3.5 which doesn't coil right, I have a bug that is still open that proves that. IMOH It's essential too, It's our '5' since we threw away 2.5.... stupid. But it's unfinished. If your still seeing this in the maintained 3.6 or 3.7 then is circular throughout all of python. Something missing, not docs. Undefined. I may have more if I get to it in a month or two. Maybe not just scipy, dunno.
Comment 12 Till Schäfer 2019-03-26 10:14:46 UTC
I can confirm the problem with the current stable packages (numpy-1.14.5, scipy-0.19.1). Rebuilding numpy does not resolve the issue. 

However, it occurs with python 2.7 and for a different file for me: 

Processing scipy/linalg/_solve_toeplitz.pyx
python2.7 setup.py build config_fc --noopt --noarch
Traceback (most recent call last):
  File "setup.py", line 416, in <module>
    setup_package()
  File "setup.py", line 396, in setup_package
    from numpy.distutils.core import setup
  File "/usr/lib64/python2.7/site-packages/numpy/__init__.py", line 142, in <module>
    from . import add_newdocs
  File "/usr/lib64/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib64/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module>
    from . import scimath as emath
ImportError: cannot import name scimath
Comment 13 Till Schäfer 2019-03-26 10:28:30 UTC
Version 1.x fail with Bug 681786 -> I am stuck here
Comment 14 Jason Mours 2019-03-26 16:20:34 UTC
(In reply to Till Schäfer from comment #13)
> Version 1.x fail with Bug 681786 -> I am stuck here

This isn't 'docs' this is <module>. They tore apart portage. My original bug still had a gentoo with portage 2.2. Which means to python. LOTS of dependencies. I did and still believe in yesterdays code. Down with the ++ up with the c89. Brains don't bit shift. We are all going to have code generators anyway. Get it? Generators? Generational Code? I digress. This install was over a year old and it was TRASHEed to ++ SOME x2011-2099 seriezzXXYYZZ...standard...ANSSI somehting...ERRoRRR...DAAARRRWIIINNN I'm was bent. I did give sweet traces though.

The code to find for <module> is in there.....somewhere..



















<sparse> <-something other than















 But it might have been amputated when they transitioned portage to python3. Which means the WHOLE TREE NEEDS REBUILT!! On one box. Probably in 'C' with ! all of python !, just to be a jagoff. But this is history right? I'm not mad at the distro. I just got a pair of e5-2680 to -0s. So I still believe in GNU, I bought a tshirt. But I had compiled IceT over 600 times. Glibc over 1000. on an 8 core... and we just had to move to linux4. The 3.33333333 was NOT done yet. The 4 did fall apart 'kit-kat' did it not? Alot of 'kids' are lost. Projects languish. linux5 is years always. And Till is stuck? It will be awhile OR we will lose something inherited generational from some other compiler or library. Astrophysics is my guess.

This is regression Astor, it's always painful in generational compile. Especially when your Gentoo is ML, i.e. portage. My bug, my pollution.
Comment 15 Derek Dolney 2019-04-01 00:53:42 UTC
I think it is related to Bug 675542 but for some reason it is not showing the full error message with the broken fortran link errors. Therefore rebuild your blas and lapack. Assuming you are using reference like my, these are the commands:

emerge -1 blas-reference lapack-reference
emerge -1 numpy scipy

It fixed for me :)
Comment 16 François Bissey 2019-04-01 00:57:39 UTC
I answered this in another similar bug. There are two issues that can hit people here:
1) gfortran upgrade
2) numpy as a runtime dependency on dev-python/future (not futures) which is missing from the ebuild. In turn, since scipy (and any other ebuild depending on numpy) needs a working numpy, dev-python/future should be a build time dependency of scipy.
Comment 17 François Bissey 2019-04-01 00:58:39 UTC
The import failure from this bug title is due to the missing dev-python/future dependency.
Comment 18 Jason Mours 2019-04-01 06:37:10 UTC
(In reply to Derek Dolney from comment #15)
> I think it is related to Bug 675542 but for some reason it is not showing
> the full error message with the broken fortran link errors. Therefore
> rebuild your blas and lapack. Assuming you are using reference like my,
> these are the commands:
> 
> emerge -1 blas-reference lapack-reference
> emerge -1 numpy scipy
> 
> It fixed for me :)

This is it! Thank you!
Comment 19 Emre Eryilmaz 2019-04-02 22:18:14 UTC
(In reply to Derek Dolney from comment #15)
> I think it is related to Bug 675542 but for some reason it is not showing
> the full error message with the broken fortran link errors. Therefore
> rebuild your blas and lapack. Assuming you are using reference like my,
> these are the commands:
> 
> emerge -1 blas-reference lapack-reference
> emerge -1 numpy scipy
> 
> It fixed for me :)

Thanks Derek.
Comment 20 Jason Mours 2019-04-03 09:15:45 UTC
(In reply to Jason Mours from comment #18)
> (In reply to Derek Dolney from comment #15)
> > I think it is related to Bug 675542 but for some reason it is not showing
> > the full error message with the broken fortran link errors. Therefore
> > rebuild your blas and lapack. Assuming you are using reference like my,
> > these are the commands:
> > 
> > emerge -1 blas-reference lapack-reference
> > emerge -1 numpy scipy
> > 
> > It fixed for me :)
> 
> This is it! Thank you!

This isn't a future dependency. 

emerge -1 blas-reference lapack-reference
emerge -1 numpy scipy

This isn't a fix the import. Things are missing from LA. Like what right? Linear has yet to be proven. So says Cambridge, as I heard, in passing... Trying to pack all of FORTRAN into it...when it starts to parallel. Stuff just isn't in there. This is exotic, not to say rare. It's not scipy....not numpy. It's scimath. Who has scimath? Do you hate me? Do you remember this code from 80 something? It might be 90's. GCC what? SCO? I'm sure it's codebase. Was it a pull?
Comment 21 Jason Mours 2019-04-04 00:57:04 UTC
(In reply to Jason Mours from comment #20)
> (In reply to Jason Mours from comment #18)
> > (In reply to Derek Dolney from comment #15)
> > > I think it is related to Bug 675542 but for some reason it is not showing
> > > the full error message with the broken fortran link errors. Therefore
> > > rebuild your blas and lapack. Assuming you are using reference like my,
> > > these are the commands:
> > > 
> > > emerge -1 blas-reference lapack-reference
> > > emerge -1 numpy scipy
> > > 
> > > It fixed for me :)
> > 
> > This is it! Thank you!
> 
> This isn't a future dependency. 
> 
> emerge -1 blas-reference lapack-reference
> emerge -1 numpy scipy
> 
> This isn't a fix the import. Things are missing from LA. Like what right?
> Linear has yet to be proven. So says Cambridge, as I heard, in passing...
> Trying to pack all of FORTRAN into it...when it starts to parallel. Stuff
> just isn't in there. This is exotic, not to say rare. It's not scipy....not
> numpy. It's scimath. Who has scimath? Do you hate me? Do you remember this
> code from 80 something? It might be 90's. GCC what? SCO? I'm sure it's
> codebase. Was it a pull?

These are phone books. Shelves of them. Rows of shelves. '++' ugh unicode...it's ansi. I'm sure it's stateside. I cannot procure function with what I have. SCO? TI? SGI?
Comment 22 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-02-24 20:51:05 UTC
Closing bugs for old versions no longer in ::gentoo.  Please reopen if it still happens.