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

AttributeError: type object 'IOLoop' has no attribute 'initialized' #551

Closed
bagjohn opened this issue Jun 6, 2018 · 3 comments
Closed

Comments

@bagjohn
Copy link

bagjohn commented Jun 6, 2018

After navigating to the desired folder where we want to download the repository :
git clone https://github.com/projectmesa/mesa.git

Now navigating to a random example e.g. :
cd mesa/examples/Schelling

the example should run by typing :
python3 run.py

For some reason I get an unexpected error :
AttributeError: type object 'IOLoop' has no attribute 'initialized'

And it's true because :

  1. in visualization/ModularVisualization.py in the class ModularServer in def launch() there is
    startLoop = not tornado.ioloop.IOLoop.initialized()
    2 but in tornado/ioloop.py in the class IOloop there is no attribute initialized!

Any help?

@bagjohn
Copy link
Author

bagjohn commented Jun 6, 2018

Fixed that at least temporarily by adding this to tornado/ioloop.py in class IOloop:

def initialized() :
        return False

@bagjohn
Copy link
Author

bagjohn commented Jun 6, 2018

A friend fixed it, it's a tornado version problem. Downgrade with this command: pip install tornado==4.5.3

Solution from here

@jackiekazil
Copy link
Member

@bagjohn Ty for this! This is fixed in our next release. Hopefully no one will run into this problem again!

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