cnschema / cdata

"see data", data manipulation snippets
Apache License 2.0
18 stars 7 forks source link

urlparse in Python3 #9

Open juliocvergarah opened 2 years ago

juliocvergarah commented 2 years ago

When trying to use the library in Python3, I get the following error:

jvergara@PA-MAC-JVERGARA installlic_jira % python3
Python 3.10.4 (v3.10.4:9d38120e33, Mar 23 2022, 17:29:05) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from cdata.core import any2utf8
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cdata/core.py", line 16, in <module>
    import urlparse
ModuleNotFoundError: No module named 'urlparse'

However, that library has been move to urllib.parse, see https://stackoverflow.com/questions/50146520/no-module-named-urlparse-but-im-not-using-urlparse