LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Variety -> python2.7 issues (https://www.linuxquestions.org/questions/slackware-14/variety-python2-7-issues-4175666987/)

BW-userx 01-02-2020 08:51 PM

Variety -> python2.7 issues
 
Slack Current

slackbuilds,
variety, is this a python issue .. I've never seen variety doing this before.
Code:

$ variety
Traceback (most recent call last):
  File "/usr/bin/variety", line 38, in <module>
    import variety
  File "/usr/lib64/python2.7/site-packages/variety/__init__.py", line 111, in <module>
    from variety import VarietyWindow
  File "/usr/lib64/python2.7/site-packages/variety/VarietyWindow.py", line 22, in <module>
    from variety.FacebookHelper import FacebookHelper
  File "/usr/lib64/python2.7/site-packages/variety/FacebookHelper.py", line 55, in <module>
    from variety.Util import Util
  File "/usr/lib64/python2.7/site-packages/variety/Util.py", line 33, in <module>
    from PIL import Image
ImportError: No module named PIL

python installed are,
Code:

$ ls /var/log/packages/python*
/var/log/packages/python-2.7.17-x86_64-2
/var/log/packages/python-appdirs-1.4.3-x86_64-4
/var/log/packages/python-certifi-2019.11.28-x86_64-2
/var/log/packages/python-chardet-3.0.4-x86_64-4
/var/log/packages/python-distutils-extra-2.39-x86_64-1_SBo
/var/log/packages/python-docutils-0.15.2-x86_64-2
/var/log/packages/python-idna-2.8-x86_64-3
/var/log/packages/python-notify2-0.3.1-x86_64-4
/var/log/packages/python-packaging-19.2-x86_64-2
/var/log/packages/python-pillow-7.0.0-x86_64-1
/var/log/packages/python-pip-19.3.1-x86_64-2
/var/log/packages/python-ply-3.11-x86_64-2
/var/log/packages/python-requests-2.22.0-x86_64-2
/var/log/packages/python-sane-2.8.3-x86_64-4
/var/log/packages/python-setuptools-44.0.0-x86_64-1
/var/log/packages/python-six-1.13.0-x86_64-2
/var/log/packages/python-urllib3-1.25.7-x86_64-2
/var/log/packages/python3-3.8.1-x86_64-1


Didier Spaier 01-03-2020 02:09 AM

Do you have python-pillow-6.2.1-x86_64-1.txz installed?

EDIT: where does your python-pillow-7.0.0-x86_64-1 comes from? This version is not shipped in Slackware as far as I know.

PS current is not supported by SBo anyway. Maybe post your issue here.

kgha 01-03-2020 02:41 AM

Quote:

Originally Posted by Didier Spaier (Post 6073816)
EDIT: where does your python-pillow-7.0.0-x86_64-1 comes from? This version is not shipped in Slackware as far as I know.

-current changelog:
Code:

Thu Jan  2 21:15:46 UTC 2020
(---)
l/python-pillow-7.0.0-x86_64-1.txz:  Upgraded.


ponce 01-03-2020 02:50 AM

I think this happens because of this modification to the SlackBuild

https://git.slackware.nl/current/dif...e7f0ce01fcd986

that was needed as upstream has decided to drop support for python-2.7.x
Code:

$ head /usr/doc/python-pillow-7.0.0/CHANGES.rst

Changelog (Pillow)
==================

7.0.0 (2020-01-02)
------------------

- Drop support for EOL Python 2.7 #4109
  [hugovk, radarhere, jdufresne]

Pillow-6.2.2, released together with 7.0.0, has been the last to support python-2.7.x

https://github.com/python-pillow/Pillow/issues

if using 6.2.2 is not an option for current maybe I should drop a python2-pillow script for version 6.2.2 in the unofficial SBo repo for current to use for whatever needs it, but I suppose the same thing will happen with a lot of python modules from now on...

orbea 01-03-2020 07:03 AM

I think the best solution is to update variety and use python3 instead.

https://github.com/varietywalls/variety/releases

ponce 01-03-2020 07:30 AM

Quote:

Originally Posted by orbea (Post 6073931)
I think the best solution is to update variety and use python3 instead.

https://github.com/varietywalls/variety/releases

yes, regarding that yes, so it's better if someone report this to its maintainer...

But the issue to which I was hinting regarding everything using python-2.x and its modules (on SBo or not) unfortunately remains and a migration to python-3.x looks inevitable.

BW-userx 01-03-2020 09:05 AM

yeah seeings that slackbuilds maintainer has variety at ver variety_0.6.4-0-589-201704290523.tar.gz. and that link https://github.com/varietywalls/variety/releases -> Variety 0.8.1.
let me pull that one and see if it builds off slackbuild. as soon as I get out of FreeBSD.

ponce 01-03-2020 09:10 AM

Quote:

Originally Posted by BW-userx (Post 6074005)
yeah seeings that slackbuilds maintainer has variety at ver variety_0.6.4-0-589-201704290523.tar.gz. and that link https://github.com/varietywalls/variety/releases -> Variety 0.8.1.
let me pull that one and see if it builds off slackbuild. as soon as I get out of FreeBSD.

you most probably will need also the python3 versions of the modules that are used by variety and it's not that straightwforward, that why I suggested you to ping the maintainer.

BW-userx 01-03-2020 10:12 AM

Quote:

Originally Posted by ponce (Post 6074007)
you most probably will need also the python3 versions of the modules that are used by variety and it's not that straightwforward, that why I suggested you to ping the maintainer.

yeah last time I got a take my app over begging shot out. but yeah ... good idea still.

... sent .....

geany-1.36.0 took a dive too BTW
Code:

checking for rst2html... /usr/bin/rst2html
checking for rst2pdf... no
checking for rst2pdf.py... no
checking for doxygen... /usr/bin/doxygen
checking for a Python interpreter with version >= 2.7... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib64/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for python lxml package... no
configure: error: GtkDoc header generation enabled but python or its lxml module not found
Failures:
  geany: geany.SlackBuild return non-zero

the older version on the slackbuilds sight works though on my current. geany-1.34
Code:

$ sudo installpkg /tmp/geany-1.34.1-x86_64-1_SBo.tgz
Verifying package geany-1.34.1-x86_64-1_SBo.tgz.
Installing package geany-1.34.1-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
# geany (small and lightweight Integrated Development Environment)
#
# Geany is a text editor using the GTK2 toolkit with basic features of
# an integrated development environment. It was developed to provide a
# small and fast IDE, which has only a few dependencies from other
# packages. It supports many filetypes and has some nice features.
#
# Homepage: https://www.geany.org/
#
Executing install script for geany-1.34.1-x86_64-1_SBo.tgz.
Package geany-1.34.1-x86_64-1_SBo.tgz installed.


ponce 01-03-2020 11:40 AM

Quote:

Originally Posted by BW-userx (Post 6074035)
geany-1.36.0 took a dive too BTW
Code:

checking for rst2html... /usr/bin/rst2html
checking for rst2pdf... no
checking for rst2pdf.py... no
checking for doxygen... /usr/bin/doxygen
checking for a Python interpreter with version >= 2.7... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib64/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for python lxml package... no
configure: error: GtkDoc header generation enabled but python or its lxml module not found
Failures:
  geany: geany.SlackBuild return non-zero


yes, it's because of an error that I forgot to fix: upgrading it to 1.36.0 I added the configure option "--enable-gtkdoc-header" and that needs lxml installed, it was reported to me and I forgot to remove it.
I'll do it right now, thanks for reporting it!

Quote:

the older version on the slackbuilds sight works though on my current. geany-1.34
Code:

$ sudo installpkg /tmp/geany-1.34.1-x86_64-1_SBo.tgz
Verifying package geany-1.34.1-x86_64-1_SBo.tgz.
Installing package geany-1.34.1-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
# geany (small and lightweight Integrated Development Environment)
#
# Geany is a text editor using the GTK2 toolkit with basic features of
# an integrated development environment. It was developed to provide a
# small and fast IDE, which has only a few dependencies from other
# packages. It supports many filetypes and has some nice features.
#
# Homepage: https://www.geany.org/
#
Executing install script for geany-1.34.1-x86_64-1_SBo.tgz.
Package geany-1.34.1-x86_64-1_SBo.tgz installed.


I'm afraid this is not an option because geany-plugins won't work anymore on current with that version...

BW-userx 01-03-2020 12:29 PM

Quote:

Originally Posted by ponce (Post 6074082)
yes, it's because of an error that I forgot to fix: upgrading it to 1.36.0 I added the configure option "--enable-gtkdoc-header" and that needs lxml installed, it was reported to me and I forgot to remove it.
I'll do it right now, thanks for reporting it!


I'm afraid this is not an option because geany-plugins won't work anymore on current with that version...

I do not use the plug ins so it works for me. :D but I'll be updating to the current ver of greany soon. thanks for the fix.


All times are GMT -5. The time now is 10:29 AM.