python3 from source

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
mMontu
Posts: 22
Joined: 1. Jan 2017, 23:52
Location: Brazil

python3 from source

Post 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?
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: python3 from source

Post by gapan »

Image
Image
mMontu
Posts: 22
Joined: 1. Jan 2017, 23:52
Location: Brazil

Re: python3 from source

Post by mMontu »

Thanks gapan! Worked perfectly
Post Reply