Fails with the same error here. It looks like it is being built with python 2.7 instead of python 3. I took a look at the SLACKBUILD and found the following:
Code: Select all
# Install the python bindings
...
cd python
python setup.py install --root=$PKG
python3 setup.py install --root=$PKG
cd ..
I commented out the "python setup.py install --root=$PKG" line and manually ran the SLACKBUILD.
Code: Select all
sudo sh /usr/src/slapt-src/development/protobuf3/protobuf3.SlackBuild
The package was successfully built with python3.
I am not sure if this is a problem with the SLACKBUILD or Salix 15 alpha. I was under the impression that python3 was the default in Slackware 15 and hence also in Salix 15, but python is symlinked to python2.7 in /usr/bin.
Code: Select all
rich[~]$ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root 9 Apr 15 10:37 /usr/bin/python -> python2.7
EDIT, Changing the python symlink to point to python3 will result in the original slackbuild successfully building with python3