sklearn is broken in Ubuntu 17.10 (undefined symbol: PyFPE_jbuf)

Bug #1716004 reported by Michael Nagel
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
scikit-learn (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I cannot import sklearn as demonstrated below

mnagel@pin:~$ cat sklearndemo.py
import sklearn
import sklearn.linear_model
print("hello world")

mnagel@pin:~$ /usr/bin/python3.6 sklearndemo.py
Traceback (most recent call last):
  File "sklearndemo.py", line 2, in <module>
    import sklearn.linear_model
  File "/usr/lib/python3/dist-packages/sklearn/linear_model/__init__.py", line 12, in <module>
    from .base import LinearRegression
  File "/usr/lib/python3/dist-packages/sklearn/linear_model/base.py", line 32, in <module>
    from ..utils.extmath import safe_sparse_dot
  File "/usr/lib/python3/dist-packages/sklearn/utils/extmath.py", line 26, in <module>
    from .sparsefuncs_fast import csr_row_norms
ImportError: /usr/lib/python3/dist-packages/sklearn/utils/sparsefuncs_fast.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyFPE_jbuf

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: python3-sklearn 0.18-5build2
ProcVersionSignature: Ubuntu 4.12.0-12.13-generic 4.12.8
Uname: Linux 4.12.0-12-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: X-Cinnamon
Date: Fri Sep 8 17:30:39 2017
InstallationDate: Installed on 2017-09-01 (6 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170831)
PackageArchitecture: all
SourcePackage: scikit-learn
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michael Nagel (nailor) wrote :
Revision history for this message
Michael Nagel (nailor) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I can confirm the same error message when following your attached example with 0.18-5build2 on Ubuntu Artful. I haven't tested with the package from proposed, but that seems to have build failures on some architectures which presumably will need to be resolved before it migrates to the release pocket.

Changed in scikit-learn (Ubuntu):
status: New → Confirmed
summary: - sklearn is broken in Ubuntu 17.10
+ sklearn is broken in Ubuntu 17.10 (undefined symbol: PyFPE_jbuf)
Revision history for this message
Michael Nagel (nailor) wrote :

I don't know why it would fail builds on some archs as it is a no change rebuild specifically to resolve the issue mentioned here. But I can confirm that the non-failing amd64 build actually works for me. Also see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=873791#122

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

See also bug 1717489 for more details (and hopefully progress) on the build failures.

Revision history for this message
FranciscoLima (faclsp) wrote :

Hi!
I'm also experiencing the same error with kivy.App

ImportError: /usr/lib/python3/dist-packages/kivy/_event.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyFPE_jbuf

With the latest upgrade, apps with Kivy have stopped working.

Thanks!

Revision history for this message
Michael Nagel (nailor) wrote :

@faclsp: it should afffect almost everything depending on numpy. check if the issue is solved with https://launchpad.net/ubuntu/+source/kivy/1.9.1-1build3/+build/13337650

Revision history for this message
FranciscoLima (faclsp) wrote :

@nailor: Thanks! qivy for python3 still does not work, but for python it's ok.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Now that Ubuntu 17.10 has been released, I decided to retest this. I see that the available version of scikit-learn in the archive is 0.19.0-1build1 and the example mentioned in the description now works, as when the package was in -proposed. I therefore believe this issue can be marked as fixed.

If the similar issue with Kivy is still present, I believe that should be reported as a separate issue.

Changed in scikit-learn (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.