LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   pygmentize missing MarkupSafe in -current (https://www.linuxquestions.org/questions/slackware-14/pygmentize-missing-markupsafe-in-current-4175682366/)

gus3 09-18-2020 04:09 PM

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.

orbea 09-18-2020 06:48 PM

http://slackbuilds.org/repository/14...on/MarkupSafe/

bassmadrigal 09-18-2020 07:25 PM

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.

orbea 09-18-2020 07:31 PM

Quote:

Originally Posted by bassmadrigal (Post 6167602)
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.

bassmadrigal 09-18-2020 07:51 PM

Quote:

Originally Posted by orbea (Post 6167605)
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.

orbea 09-18-2020 08:42 PM

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.

USUARIONUEVO 09-19-2020 02:42 PM

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.


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