deep-compute / deeputil

Commonly re-used logic
MIT License
2 stars 4 forks source link

Deeputil throwing error in python 2.7 #14

Closed vivek6190 closed 6 years ago

vivek6190 commented 6 years ago

@supriyopaul

Step followed:

Script:

from deeputil import *

print get_datetime(1432188772)

Error:

Traceback (most recent call last):
  File "deeputil_check.py", line 1, in <module>
    from deeputil import *
  File "/home/deepcompute/virtualenv/deeputil/local/lib/python2.7/site-packages/deeputil/__init__.py", line 8, in <module>
    from . import misc
  File "/home/deepcompute/virtualenv/deeputil/local/lib/python2.7/site-packages/deeputil/misc.py", line 91, in <module>
    from urllib.parse import urlparse
ImportError: No module named parse

Note: All of this is been done in virtualenv

supriyopaul commented 6 years ago

@vivek6190 current version is python3 compatible. We're trying to make it both 2 and 3 compatible. For now you can install an older version that is python 2.7 compatible pip install deeputil==0.1.2