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

Error: 'module' object is not callable #7

Closed
J-Moravec opened this issue May 3, 2021 · 0 comments
Closed

Error: 'module' object is not callable #7

J-Moravec opened this issue May 3, 2021 · 0 comments

Comments

@J-Moravec
Copy link
Contributor

J-Moravec commented May 3, 2021

After clean install, when running example:

Traceback (most recent call last):
  File "(...)/pairtree//bin/pairtree", line 169, in <module>
    main()
  File "(...)/pairtree//bin/pairtree", line 108, in main
    supervars, clustrel_posterior, clustrel_evidence, clusters, garbage = clustermaker.use_pre_existing(
  File "(...)/pairtree//bin/../lib/clustermaker.py", line 24, in use_pre_existing
    clust_posterior, clust_evidence = pairwise.calc_posterior(supervars, logprior, rel_type='supervariant', parallel=parallel)
  File "(...)/pairtree//bin/../lib/pairwise.py", line 161, in calc_posterior
    with progressbar(total=len(pairs), desc='Computing %s relations' % rel_type, unit='pair', dynamic_ncols=True) as pbar:
TypeError: 'module' object is not callable

Looks like a module error. However, upon a closer inspection, no progressbar function has total, desc and unit parameters. Look like the tqdm module was supposed to be used instead. After replacing progressbar with tqdm, example runs.

Fixed in: #8

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

Successfully merging a pull request may close this issue.

2 participants