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

'tqdm' object has no attribute 'disable’ (users with Mac OS and Python3.7+ affected) #80

Closed
ghost opened this issue Sep 29, 2021 · 6 comments
Labels
external package problem Likely a dependency problem with an external package

Comments

@ghost
Copy link

ghost commented Sep 29, 2021

When running MCMC I get an AttributeError: 'tqdm' object has no attribute 'disable’. This occurs in macOS (current version, 11.6) and Python >= 3.8. The error does not seem to arise in earlier versions of Python, in particular in 3.7.12.

@3fon3fonov
Copy link
Owner

3fon3fonov commented Oct 2, 2021

I am afraid this is a possible bug in 'tqdm'. See tqdm/tqdm#487

This seems to be out of my competence and I do not have the time to investigate in depth how this can be fixed in 'tqdm'. I hope that the 'tqdm' developers will fix this soon. Perhaps you can open an issue in their git-hub?

FYI, I cannot reproduce the problem under Linux/Ubuntu with Python3.8 and 3.9, but indeed the problem appears in Mac OS. I suspect this is somehow connected with how python3 handles multiprocessing/multithreading on Mac OS.

A fix could be to simply tun-off the progress bar when running NS/MCMC

test_progress_bar

git pull, and try again.

Please report if this is a potential workaround!

@3fon3fonov 3fon3fonov added the external package problem Likely a dependency problem with an external package label Oct 3, 2021
@ghost
Copy link
Author

ghost commented Oct 4, 2021

Unchecking MCMC progress bar seems to work in versions newer than Python 3.7.12. The MCMC analysis is performed while the Stdout/Stderr does not display any message.

The problem looks indeed within macOS and the handling of multiprocessing in Python3.8 and newer. This thread in Stackoverflow supports this thesis, as I could reproduce both the problem and the solution.

@3fon3fonov 3fon3fonov changed the title 'tqdm' object has no attribute 'disable’ 'tqdm' object has no attribute 'disable’ (users with Mac OS and Python3.7+ affected) Oct 4, 2021
@3fon3fonov
Copy link
Owner

Any development on the "tqdm" side on this?

@ghost
Copy link
Author

ghost commented Feb 20, 2022

Looks like the thread regarding this issue (tqdm/issues/487) is now closed, as brianbruggeman provided a working solution. Maybe this helps for now.

@3fon3fonov
Copy link
Owner

This does not seem a general solution within tqdm. @ccifuentesr, when you have time, can you update your tqdm and Exo-Striker and try to reproduce the bug?

@3fon3fonov
Copy link
Owner

This seems to be old and already fixed external bug, thus closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external package problem Likely a dependency problem with an external package
Projects
None yet
Development

No branches or pull requests

1 participant