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

virus_on_network error #644

Closed
ammarqureshi opened this issue Feb 14, 2019 · 1 comment
Closed

virus_on_network error #644

ammarqureshi opened this issue Feb 14, 2019 · 1 comment
Labels
bug Release notes label easy task!!!

Comments

@ammarqureshi
Copy link

ammarqureshi commented Feb 14, 2019

Describe the bug

Ammars-MacBook-Pro:virus_on_network ammarqureshi$ python run.py 
Traceback (most recent call last):
  File "run.py", line 1, in <module>
    from virus_on_network.server import server
  File "/Users/ammarqureshi/mesa/mesa/examples/virus_on_network/virus_on_network/server.py", line 84, in <module>
    server = ModularServer(VirusOnNetwork, [network, MyTextElement(), chart], 'Virus Model', model_params)
  File "/Users/ammarqureshi/anaconda/lib/python3.6/site-packages/mesa/visualization/ModularVisualization.py", line 276, in __init__
    self.reset_model()
  File "/Users/ammarqureshi/anaconda/lib/python3.6/site-packages/mesa/visualization/ModularVisualization.py", line 302, in reset_model
    self.model = self.model_cls(**model_params)
  File "/Users/ammarqureshi/mesa/mesa/examples/virus_on_network/virus_on_network/model.py", line 42, in __init__
    self.grid = NetworkGrid(self.G)
  File "/Users/ammarqureshi/anaconda/lib/python3.6/site-packages/mesa/space.py", line 784, in __init__
    for node_id in self.G.nodes:
TypeError: 'method' object is not iterable

Expected behavior
should run the model

To Reproduce
python run.py

Additional Context

Ammars-MacBook-Pro:virus_on_network ammarqureshi$ pip install -r requirements.txt
Requirement already satisfied: networkx in /Users/ammarqureshi/anaconda/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (1.11)
Requirement already satisfied: decorator>=3.4.0 in /Users/ammarqureshi/anaconda/lib/python3.6/site-packages (from networkx->-r requirements.txt (line 1)) (4.0.11)

@Corvince
Copy link
Contributor

Mesa requires a version of networkx >= 2

This should be in the requirements file, thanks for reporting!

@Corvince Corvince added bug Release notes label easy task!!! labels Feb 15, 2019
Corvince added a commit that referenced this issue Feb 19, 2019
We should check other requirements files for similar issues
@dmasad dmasad closed this as completed Feb 22, 2019
dmasad added a commit that referenced this issue Feb 22, 2019
@jackiekazil jackiekazil added this to the Lake Havasu City v0.8.6 milestone Apr 29, 2019
@jackiekazil jackiekazil mentioned this issue May 20, 2024
52 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Release notes label easy task!!!
Projects
None yet
Development

No branches or pull requests

4 participants