tonyseek / openvpn-status

Parse OpenVPN status logs in Python
https://openvpn-status.readthedocs.io
MIT License
83 stars 31 forks source link

ImportError: cannot import name python_2_unicode_compatible #3

Closed txemi closed 8 years ago

txemi commented 8 years ago

With python2

  File "/home/user/.local/lib/python2.7/site-packages/openvpn_status/utils.py", line 7, in <module>
    from six import python_2_unicode_compatible as unicode_compatible
ImportError: cannot import name python_2_unicode_compatible
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
tonyseek commented 8 years ago

Thank you for your feedback.

It is because of the version of six which is older than 1.9.0. I will constrain the six's version in setup.py and release a hotfix version soon.

txemi commented 8 years ago

I fixed it for me with "pip --user install --upgrade six" As you said version I had in distro was old.