Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unhashable type: 'Pmf' (thinkbayes.py) #19

Open
ssrrapper opened this issue Nov 24, 2019 · 1 comment
Open

TypeError: unhashable type: 'Pmf' (thinkbayes.py) #19

ssrrapper opened this issue Nov 24, 2019 · 1 comment

Comments

@ssrrapper
Copy link

When trying to run code from hockey.py, I get:

Traceback (most recent call last):

File "", line 1, in
runfile('C:/Users/ssrra/.spyder-py3/temp.py', wdir='C:/Users/ssrra/.spyder-py3')

File "C:\Users\ssrra\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File "C:\Users\ssrra\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/ssrra/.spyder-py3/temp.py", line 541, in
main()

File "C:/Users/ssrra/.spyder-py3/temp.py", line 435, in main
goal_dist1 = MakeGoalPmf(suite1)

File "C:/Users/ssrra/.spyder-py3/temp.py", line 127, in MakeGoalPmf
metapmf.Set(pmf, prob)

File "C:\Users\ssrra.spyder-py3\thinkbayes.py", line 589, in Set
self.d[x] = y

TypeError: unhashable type: 'Pmf'

@AllenDowney
Copy link
Owner

I will check it out. Thanks for letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants