0

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'

2 Answers 2

2

I used the command pip install sgmllib3k and it solve my issues.

Sign up to request clarification or add additional context in comments.

Comments

1

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.

9 Comments

Thank you for your answer but in the link you can see he is using from data import transforms with python3.7 medium.com/@khodges42/…
@Creator This is clearly a different transforms, not the one you can install with pip install transforms.
It may be asking too much help. But I know how to install using pip. So how can I install from the link you gave me.
Installation instructions. Linux-only as far as I can see.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.