0
votes

I am running python 3.8 and using pip to install many packages and inporting it. But when I try to install transforms and import it I get the following messages. Any help would be appreciated.

C:\Users\r.acharyya.CI\AppData\Local\Programs\Python\Python38>pip install transforms Requirement already satisfied: transforms in c:\users\r.acharyya.ci\appdata\local\programs\python\python38\lib\site-packages (0.1)

C:\Users\buy.rtharyya.CI\AppData\Local\Programs\Python\Python38>pip install transforms Requirement already satisfied: transforms in c:\users\r.acharyya.ci\appdata\local\programs\python\python38\lib\site-packages (0.1)

C:\Users\buy.rtharyya.CI\AppData\Local\Programs\Python\Python38>python Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import transforms Traceback (most recent call last): File "", line 1, in File "C:\Users\r.acharyya.CI\AppData\Local\Programs\Python\Python38\lib\site-packages\transforms_init_.py", line 1, in from .safe_html import safe_html, bodyfinder File "C:\Users\r.acharyya.CI\AppData\Local\Programs\Python\Python38\lib\site-packages\transforms\safe_html.py", line 1, in from sgmllib import SGMLParser, SGMLParseError ModuleNotFoundError: No module named 'sgmllib'

1

1 Answers

1
votes

transforms, the only version is 0.1 released Aug 21, 2014. The code is obviously Python2-only. sgmllib was a module in the standard library https://docs.python.org/2.7/library/sgmllib.html, deprecated since version 2.6.