WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TC microcore 4.x python 2.7 hashlib.py broken  (Read 2309 times)

Offline avalon

  • Newbie
  • *
  • Posts: 11
TC microcore 4.x python 2.7 hashlib.py broken
« on: April 20, 2012, 05:09:04 PM »
Trying to install a printer on TC. Doing a PoC currently as I have some troubles with booting from disk. But anyways, I installed hplip with dependencies (latest python including). There seems to be some problem with the installation though. Trying to run any of the utilities I get an error.

Now I wanted to paste the log but I get: "Sorry, you are not allowed to post external links.". There are no external links in the log. And don't you ever need to link to something? Can these rules be relaxed some how?

Literally line 139 in <module>
globals()[__func_name] = __get_hash(__func_name)
File  " /usr/local/lib/python2.7/hashlib.py  ", line 91, in __get_builtin_constructor
ValueError  : unsupported hash type md5

and such errors for the other hash types.

Any idea?

Offline durdn

  • Newbie
  • *
  • Posts: 1
Re: TC microcore 4.x python 2.7 hashlib.py broken
« Reply #1 on: May 02, 2012, 03:57:05 PM »
Hi!

I have the same problem with the stock python.tcz and python_setuptools-2.7.tcz in core 4.5.

Running the default easy_install fails:

[nick][core45:~]
$ easy_install pip
ERROR:root:code for hash md5 was not found.
[...]
  File "/usr/local/lib/python2.7/md5.py", line 10, in <module>
    from hashlib import md5
ImportError: cannot import name md5

Weird because both hashlib and md5 exist as modules in /usr/local/lib/python2.7/

Any ideas?

Offline transitdk

  • Newbie
  • *
  • Posts: 1
Re: TC microcore 4.x python 2.7 hashlib.py broken
« Reply #2 on: May 27, 2012, 12:54:03 AM »
Hi!

Try installing openssl