Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problem installing hashlib via pip on Jessie.

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
rockstar
Posts: 2
Joined: 2016-05-20 11:15

Problem installing hashlib via pip on Jessie.

#1 Post by rockstar »

Hi I am trying to install python hashlib on Jessie via pip.

When I do a 'pip install hashlib' I get the error "TypeError: 'frozenset' object is not callable". Full output is below.

Any advice is greatly appreciated.

Thx Rockstar

Collecting hashlib
Downloading hashlib-20081119.zip (42kB)
100% |████████████████████████████████| 51kB 777kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 12, in <module>
from setuptools.extension import Extension
File "/usr/lib/python2.7/dist-packages/setuptools/extension.py", line 7, in <module>
from setuptools.dist import _get_unpatched
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 16, in <module>
from setuptools.depends import Require
File "/usr/lib/python2.7/dist-packages/setuptools/depends.py", line 6, in <module>
from setuptools import compat
File "/usr/lib/python2.7/dist-packages/setuptools/compat.py", line 17, in <module>
import httplib
File "/usr/lib/python2.7/httplib.py", line 79, in <module>
import mimetools
File "/usr/lib/python2.7/mimetools.py", line 6, in <module>
import tempfile
File "/usr/lib/python2.7/tempfile.py", line 35, in <module>
from random import Random as _Random
File "/usr/lib/python2.7/random.py", line 49, in <module>
import hashlib as _hashlib
File "hashlib.py", line 115, in <module>
f()
TypeError: 'frozenset' object is not callable

rockstar
Posts: 2
Joined: 2016-05-20 11:15

Re: Problem installing hashlib via pip on Jessie.

#2 Post by rockstar »

Well, managed to fix it, so posting here for the next guy.

Another post had a solution:- http://stackoverflow.com/questions/3408 ... t-callable

"rm /usr/local/lib/python2.7/dist-packages/hashlib-20081119-py2.7-linux-armv7l.egg"

Thx Rockstar.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Problem installing hashlib via pip on Jessie.

#3 Post by stevepusser »

You could have already had a "hashlib.py" installed with one of these Debian packages:

https://packages.debian.org/search?sear ... e&arch=any
MX Linux packager and developer

Post Reply