LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-02-2020, 08:51 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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
 
Old 01-03-2020, 02:09 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
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.

Last edited by Didier Spaier; 01-03-2020 at 02:42 AM.
 
Old 01-03-2020, 02:41 AM   #3
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,069

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Quote:
Originally Posted by Didier Spaier View Post
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.
 
Old 01-03-2020, 02:50 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
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...

Last edited by ponce; 01-03-2020 at 02:53 AM.
 
Old 01-03-2020, 07:03 AM   #5
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I think the best solution is to update variety and use python3 instead.

https://github.com/varietywalls/variety/releases
 
Old 01-03-2020, 07:30 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by orbea View Post
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.
 
Old 01-03-2020, 09:05 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
 
Old 01-03-2020, 09:10 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by BW-userx View Post
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.
 
Old 01-03-2020, 10:12 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by ponce View Post
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.

Last edited by BW-userx; 01-03-2020 at 10:34 AM.
 
Old 01-03-2020, 11:40 AM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Arrow

Quote:
Originally Posted by BW-userx View Post
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...
 
1 members found this post helpful.
Old 01-03-2020, 12:29 PM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by ponce View Post
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. but I'll be updating to the current ver of greany soon. thanks for the fix.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I make Python2.7 my default Python without deleting/removing python2.6. steves504 Linux - Server 2 03-21-2014 11:57 AM
[SOLVED] Trying to install 'Gmail Backup' but it requires python2.5 - I have python2.8... Robert.Thompson Slackware 6 05-10-2011 08:23 AM
Python2.5-devel is unable to find installed Python2.5 Setya SUSE / openSUSE 1 06-08-2007 01:35 AM
Looking for a variety of distros knetick Linux - Distributions 8 09-26-2004 06:56 AM
Havin a lan party, but need more variety of games. Im all ears! RHLinuxGUY Linux - Games 10 07-08-2004 10:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration