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: 'module' object is not callable” error when using beeswarm #14

Open
Sunyp-IM opened this issue Oct 30, 2018 · 1 comment

Comments

@Sunyp-IM
Copy link

I am try to use beeswarm to plot some data with the follow codes:

import beeswarm
from beeswarm import *
import numpy as np

d = np.array([0,1,2,3,4])
beeswarm([d])
Then the error comes as:

Traceback (most recent call last):
File "/home/sunyp/softwares/build/Anaconda2-5.1.0/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2882, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
beeswarm([d1])
TypeError: 'module' object is not callable
Does anyone know how do deal with this problem? Thank you in advance

@oskaruchanski
Copy link

Instead:
beeswarm([d])
try:
beeswarm.beeswarm([d])

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