Page 1 of 1

python3 from source

Posted: 4. Dec 2018, 14:22
by mMontu
I got the following error when using sklearn:

Code: Select all

/usr/lib64/python3.5/site-packages/sklearn/externals/joblib/_multiprocessing_helpers.py:38: UserWarning: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770..  joblib will operate in serial mode
Searching online I found most people solve it in slackware by recompiling python.
But I couldn't find python3 in `slapt-src`, and according to the post python3 not available from sourcery this is intentional.

So I proceeded to adapt the Slackbuild for python3 to build the same version as the package (3.5.1), to avoid the breakage mentioned on that post. Basically I updated the version number, commented out the patches session and downloaded the old source. But the build is stopping with an error,

Code: Select all

...
Installing collected packages: setuptools, pip
Successfully installed pip setuptools
sed: can't read /tmp/SBo/package-python3/usr/lib64/python3.5/ensurepip/__init__.py: No such file or directory
, and doesn't produce a package.

Before spend time debugging the Slackbuild I thought it might exist a better approach.
Is the Slackbuild used to create the Salix package available somewhere?

Re: python3 from source

Posted: 4. Dec 2018, 14:44
by gapan

Re: python3 from source

Posted: 4. Dec 2018, 15:40
by mMontu
Thanks gapan! Worked perfectly