LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-18-2020, 04:09 PM   #1
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware
Posts: 490

Rep: Reputation: Disabled
pygmentize missing MarkupSafe in -current


On all of my systems (and they're all running -current) I get the following when running "pygmentize":

Code:
$ echo Hello world | pygmentize
*** Error while highlighting:
pkg_resources.DistributionNotFound: The 'MarkupSafe>=0.9.2' distribution was not found and is required by the application
*** If this is a bug you want to report, please rerun with -v.
I resolved the issue on my desktop with:

Code:
$ su -
# pip install MarkupSafe
and then the "echo | pygmentize" command ran properly.
 
Old 09-18-2020, 06:48 PM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
http://slackbuilds.org/repository/14...on/MarkupSafe/
 
Old 09-18-2020, 07:25 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You may want to report this in the requests for -current thread in case Pat doesn't see this thread. It seems that python-pygments is able to be built without MarkupSafe, but it doesn't disable features that require MarkupSafe leading to a broken pygmentize. This might cause Pat to add MarkupSafe to -current to fix the broken pygmentize.
 
1 members found this post helpful.
Old 09-18-2020, 07:31 PM   #4
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
You may want to report this in the requests for -current thread in case Pat doesn't see this thread. It seems that python-pygments is able to be built without MarkupSafe, but it doesn't disable features that require MarkupSafe leading to a broken pygmentize. This might cause Pat to add MarkupSafe to -current to fix the broken pygmentize.
This is because they are python modules and it doesn't matter what order you install them. Just install the version from SBo and consider it fixed. It does not need to be added to current to fix this issue.
 
Old 09-18-2020, 07:51 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by orbea View Post
This is because they are python modules and it doesn't matter what order you install them. Just install the version from SBo and consider it fixed. It does not need to be added to current to fix this issue.
Many python programs will refuse to build if the required modules are not in place. It doesn't seem to be the case here.

Yes, the package is easily installable via SBo to fix this, but this still leaves a broken pygmantize on a full Slackware install. IMHO, there shouldn't be broken software with a full install.
 
Old 09-18-2020, 08:42 PM   #6
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Yes, you're right. I was under the mistaken impression that pygmantize was not in a full install, but its actually included in the python-pygments package.
 
Old 09-19-2020, 02:42 PM   #7
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
I request some times markupsafe , but EVER IGNORED ME , ...

pip check
pip3 check

are GOOD FRIENDS.

Becasuse NOW some is broken i hope go added.

Last edited by USUARIONUEVO; 09-19-2020 at 02:44 PM.
 
  


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] Desktop icons missing, right click doesn't work, Places-connect to network missing BlackCrowe Linux - General 8 11-26-2010 07:23 AM
fresh netinst of squeeze:X server fails to start, missing /dev/fb0, missing xorg.conf frumpus Debian 7 03-17-2010 12:36 PM
mjpegtools build error, missing libs which aren't missing vdemuth Slackware 6 03-16-2010 12:57 PM
missing jdbc isnt actually missing. trscookie Programming 0 06-04-2006 10:26 AM
Problem running UT Demo, Xlib missing on 0.0.. gldrv missing etc. RHLinuxGUY Linux - Games 3 05-21-2006 11:02 PM

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

All times are GMT -5. The time now is 04:21 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