FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
13,405 views 1 comments
by anonymous

Hello,

After installing the new firmware, i installed python et python-pip successfully and then i made install pip requests and get this message : 

root@Teltonika-RUT955:~# pip install requests

ERROR:root:code for hash md5 was not found.

Traceback (most recent call last):

  File "/usr/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type md5

ERROR:root:code for hash sha1 was not found.

Traceback (most recent call last):

  File "/usr/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha1

ERROR:root:code for hash sha224 was not found.

Traceback (most recent call last):

  File "/usr/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha224

ERROR:root:code for hash sha256 was not found.

Traceback (most recent call last):

  File "/usr/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha256

ERROR:root:code for hash sha384 was not found.

Traceback (most recent call last):

  File "/usr/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha384

ERROR:root:code for hash sha512 was not found.

Traceback (most recent call last):

  File "/usr/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha512

Traceback (most recent call last):

  File "/usr/bin/pip", line 9, in <module>

    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()

  File "/usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg/pkg_resources.py", line 339, in load_entry_point

  File "/usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg/pkg_resources.py", line 2470, in load_entry_point

  File "/usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg/pkg_resources.py", line 2184, in load

  File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/__init__.py", line 10, in <module>

    from pip.util import get_installed_distributions, get_prog

  File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 18, in <module>

    from pip._vendor.distlib import version

  File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/distlib/version.py", line 14, in <module>

    from .compat import string_types

  File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/distlib/compat.py", line 31, in <module>

    from urllib2 import (Request, urlopen, URLError, HTTPError,

ImportError: cannot import name HTTPSHandler

ps: for the previous version this kind of error never happened.

3 Answers

0 votes
by anonymous

I have the same issue than this one reported here: https://www.ibm.com/developerworks/community/forums/html/topic?id=ac3ada02-c604-46a5-bb19-63558ae52ce7 and they say it's openssl the cause.

0 votes
by anonymous

Hello,

this issue is not fixed even with this new release RUT9XX_R_00.06.06Please give me a clue we are unable to install any python package.

0 votes
by
I have the same issue, the problem is that Teltonika made an upgrade to openssl, and because the package repository is based on openwrt version 15.05.1, there is a mismatch between the packages and the firmware. It would be nice if Teltonika made a local repository (fork) for common packages, like python etc.
by anonymous
We hope this will be fixed in the next firmware.