gmucsn / mTree

Computational Experimental Economics Platform
5 stars 2 forks source link

After new mTree updates (as of 10:03 AM 7/15/2020) mtree processes do nothing after being created #44

Open apsurek opened 4 years ago

apsurek commented 4 years ago

Recreate this bug by running anything on mTree. I could not get mes_example_1 to execute properly (using mTree_runner and the mes_exmaple_1.json). The dispatcher reads the JSON, and it creates multiple processes based off of it, but then nothing happens. They processes even so much as take up a lot of memory, but use 0 computing power.

Running on the newest version of Developer with Python 3.6.5, Windows 10

skunath commented 4 years ago

Can you clear the mtree.log and then run again and report whatever it contains?

Does the screen report anything back?

apsurek commented 4 years ago

Okay actually after clearing the mTree.log and re-running, it did do something actually, though it did not appear to append to this file earlier.

The example actually appears to run all the way through, finishing with the goods delivery. But it then throws a key error on a reference to BasicEnvironment. These statements appear in the log 5 times (== number of agents). 'BasicEnvironment' is never used as a key in the agents however.

WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic MES Example', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'number_of_runs': 1, 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 245, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

ERROR ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c second exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic MES Example', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'number_of_runs': 1, 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 245, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

skunath commented 4 years ago

To be clear, is this the only example that does this?

Also, are you using -i or -m with the runner?

apsurek commented 4 years ago

No, this is not the only example that does this. I tried the same thing with mes_example_2, and it actually fails right away, with the same error message.

I was running, mes_example_1 with -i because the mes_example_1.json fits that, and I ran mes_example_2 with -m, as I was using multi_simulation.json.

skunath commented 4 years ago

Can you run through all the examples and post the commands used and outputs for each? I think this could be an odd windows issue but we will need to track it down.

On Wed, Jul 15, 2020 at 11:15 AM Aleksander Psurek notifications@github.com wrote:

No, this is not the only example that does this. I tried the same thing with mes_example_2, and it actually fails right away, with the same error message.

I was running, mes_example_1 with -i because the mes_example_1.json fits that, and I ran mes_example_2 with -m, as I was using multi_simulation.json.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gmucsn/mTree/issues/44#issuecomment-658828495, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDF3HPK34K5J66R3XRGBDR3XBZVANCNFSM4O2SNCPA .

apsurek commented 4 years ago

Mes Example 1 Command: python C:\Repos\mtree\bin\mtree_runner -i C:/Repos/mtree_examples/mes_example_1/config/mes_example_1.json Result: The Simulation runs, but I get a key error after the simulation finished executing: WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic MES Example', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'number_of_runs': 1, 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 245, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Mes Example 2 Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_2/config/multi_simulation.json Result: The simulation does not run, I get the error: WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic Simulation Run', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10, 'num_auctions': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Mes Example 3: Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_3/config/multi_institution_simulation.json Result: The simulation does not run, I get the exact same error as above.

Mes Example 4: Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_4/config/agent_memory_simulation.json Result: The simulation does not run, I get the exact same error again.

skunath commented 4 years ago

To be clear, your posting the stuff that you get in the shell or from the log file?

Also, for reference can you make sure you post everything exactly and not state that they are the same. It'll make it easier to track things down.

Do you know how many other folks are using windows environments as well? Also, are you using anaconda or something else? Can you provide the full info for your python version?

On Wed, Jul 15, 2020 at 12:53 PM Aleksander Psurek notifications@github.com wrote:

Mes Example 1 Command: python C:\Repos\mtree\bin\mtree_runner -i C:/Repos/mtree_examples/mes_example_1/config/mes_example_1.json Result: The Simulation runs, but I get a key error after the simulation finished executing: WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic MES Example', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'number_of_runs': 1, 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 245, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Mes Example 2 Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_2/config/multi_simulation.json Result: The simulation does not run, I get the error: WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic Simulation Run', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10, 'num_auctions': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Mes Example 3: Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_3/config/multi_institution_simulation.json Result: The simulation does not run, I get the exact same error as above.

Mes Example 4: Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_4/config/agent_memory_simulation.json Result: The simulation does not run, I get the exact same error again.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gmucsn/mTree/issues/44#issuecomment-658878986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDF3GTUMVAHKSGXQHWAQDR3XNHDANCNFSM4O2SNCPA .

apsurek commented 4 years ago

Okay, reposting with the exact info - I was posting things from the mTree.log. I will also add the shell stuff below.

Mes Example 1 Command: python C:\Repos\mtree\bin\mtree_runner -i C:/Repos/mtree_examples/mes_example_1/config/mes_example_1.json

Result: Produces this error. mTree.log: EXPERIMENT Institution auction Winner: (10, <Agent: BasicAgent @ ActorAddr-/A~a~a~b>) -> 22 -> all bids -> [(10, <Agent: BasicAgent @ ActorAddr-/A~a~a~c>), (10, <Agent: BasicAgent @ ActorAddr-/A~a~a~d>), (10, <Agent: BasicAgent @ ActorAddr-/A~a~a~e>), (10, <Agent: BasicAgent @ ActorAddr-/A~a~a~f>)] EXPERIMENT Agent received item for bid {'status': 'winner', 'real_value': 22} EXPERIMENT Agent received item for bid {'status': 'loser'} EXPERIMENT Agent received item for bid {'status': 'loser'} EXPERIMENT Agent received item for bid {'status': 'loser'} EXPERIMENT Agent received item for bid {'status': 'loser'} WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic MES Example', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'number_of_runs': 1, 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 245, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

ERROR ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c second exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic MES Example', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'number_of_runs': 1, 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 245, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Shell: (base) C:\Repos\mTree_examples\mes_example_1>python C:\Repos\mtree\bin\mtree_runner -i C:/Repos/mtree_examples/mes_example_1/config/mes_example_1.json


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

mTree Runner Current Configuration: [ { "agents": [ { "agent_name": "BasicAgent", "number": 5 } ], "environment": "BasicEnvironment", "id": "1", "institution": "BasicInstitution", "mtree_type": "mes_simulation_description", "name": "Basic MES Example", "number_of_runs": 1, "properties": { "agent_endowment": 10 } } ] <module 'mes.basic_agent' from './mes\basic_agent.py'> <module 'mes.basic_environment' from './mes\basic_environment.py'> <module 'mes.basic_institution' from './mes\basic_institution.py'>


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

CREATING DISPATCH FOR CONFIGURATION


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

(base) C:\Repos\mTree_examples\mes_example1> ____ | | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

Mes Example 2 Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_2/config/multi_simulation.json Result: The simulation does not run, I get the error:

mTree.log: WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic Simulation Run', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10, 'num_auctions': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

ERROR ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c second exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic Simulation Run', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10, 'num_auctions': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Shell: (base) C:\Repos\mTree_examples\mes_example_2>python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_2/config/multi_simulation.json


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

mTree Runner Current Configuration: [ { "agents": [ { "agent_name": "BasicAgent", "number": 5 } ], "environment": "BasicEnvironment", "id": "1", "institution": "BasicInstitution", "mtree_type": "mes_simulation_description", "name": "Basic Simulation Run", "properties": { "agent_endowment": 10, "num_auctions": 10 } }, { "agents": [ { "agent_name": "BasicAgent", "number": 5 } ], "environment": "BasicEnvironment", "id": "2", "institution": "BasicInstitution", "mtree_type": "mes_simulation_description", "name": "Basic Simulation Run", "properties": { "agent_endowment": 25, "num_auctions": 20 } } ] <module 'mes.basic_agent' from './mes\basic_agent.py'> <module 'mes.basic_environment' from './mes\basic_environment.py'> <module 'mes.basic_institution' from './mes\basic_institution.py'>


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

CREATING DISPATCH FOR CONFIGURATION


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

CREATING DISPATCH FOR CONFIGURATION


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

(base) C:\Repos\mTree_examples\mes_example2> ____ | | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

Mes Example 3: Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_3/config/multi_institution_simulation.json Result: The simulation does not run, I get the exact same error as above.

mTree.log: WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic Simulation Run', 'id': '1', 'environment': 'BasicEnvironment', 'institutions': [{'institution': 'BasicInstitution'}, {'institution': 'BasicInstitution2'}], 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10, 'num_auctions': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

ERROR ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c second exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic Simulation Run', 'id': '1', 'environment': 'BasicEnvironment', 'institutions': [{'institution': 'BasicInstitution'}, {'institution': 'BasicInstitution2'}], 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10, 'num_auctions': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 177, in _handleOneMessage actor_result = self.actorInst.receiveMessage(copy.deepcopy(msg), envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Shell: (base) C:\Repos\mTree_examples\mes_example_3>python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_3/config/multi_institution_simulation.json


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

mTree Runner Current Configuration: [ { "agents": [ { "agent_name": "BasicAgent", "number": 5 } ], "environment": "BasicEnvironment", "id": "1", "institutions": [ { "institution": "BasicInstitution" }, { "institution": "BasicInstitution2" } ], "mtree_type": "mes_simulation_description", "name": "Basic Simulation Run", "properties": { "agent_endowment": 10, "num_auctions": 10 } }, { "agents": [ { "agent_name": "BasicAgent", "number": 5 } ], "environment": "BasicEnvironment", "id": "2", "institutions": [ { "institution": "BasicInstitution" }, { "institution": "BasicInstitution2" } ], "mtree_type": "mes_simulation_description", "name": "Basic Simulation Run", "properties": { "agent_endowment": 25, "num_auctions": 20 } } ] <module 'mes.basic_agent' from './mes\basic_agent.py'> <module 'mes.basic_environment' from './mes\basic_environment.py'> <module 'mes.basic_institution' from './mes\basic_institution.py'> <module 'mes.basic_institution_2' from './mes\basic_institution_2.py'>


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

CREATING DISPATCH FOR CONFIGURATION


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

CREATING DISPATCH FOR CONFIGURATION


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

(base) C:\Repos\mTree_examples\mes_example3> ____ | | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

Mes Example 4: Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_4/config/agent_memory_simulation.json Result: The simulation does not run, I get the exact same error again.

mTree.log: WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic Simulation Run', 'id': '1', 'agent_memory': 'True', 'environment': 'BasicEnvironment', 'number_of_runs': 10, 'institution': 'BasicInstitution', 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10, 'num_auctions': 1}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 193, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

ERROR ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c second exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic Simulation Run', 'id': '1', 'agent_memory': 'True', 'environment': 'BasicEnvironment', 'number_of_runs': 10, 'institution': 'BasicInstitution', 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10, 'num_auctions': 1}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 193, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 177, in _handleOneMessage actor_result = self.actorInst.receiveMessage(copy.deepcopy(msg), envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 193, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Shell: (base) C:\Repos\mTree_examples\mes_example_4>python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_4/config/agent_memory_simulation.json


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

mTree Runner Current Configuration: [ { "agent_memory": "True", "agents": [ { "agent_name": "BasicAgent", "number": 5 } ], "environment": "BasicEnvironment", "id": "1", "institution": "BasicInstitution", "mtree_type": "mes_simulation_description", "name": "Basic Simulation Run", "number_of_runs": 10, "properties": { "agent_endowment": 10, "num_auctions": 1 } } ] <module 'mes.basic_agent' from './mes\basic_agent.py'> <module 'mes.basic_environment' from './mes\basic_environment.py'> <module 'mes.basic_institution' from './mes\basic_institution.py'>


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

CREATING DISPATCH FOR CONFIGURATION


| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

(base) C:\Repos\mTree_examples\mes_example4> ____ | | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

     _____

| | | ' ` _ | || '/ \/ \ | | | | | | || | | / _/ || || ||||| _|___|

skunath commented 4 years ago

Also, what directory are you running the python commands from?

On Wed, Jul 15, 2020 at 1:19 PM Stephen Kunath skunath@gmail.com wrote:

To be clear, your posting the stuff that you get in the shell or from the log file?

Also, for reference can you make sure you post everything exactly and not state that they are the same. It'll make it easier to track things down.

Do you know how many other folks are using windows environments as well? Also, are you using anaconda or something else? Can you provide the full info for your python version?

On Wed, Jul 15, 2020 at 12:53 PM Aleksander Psurek < notifications@github.com> wrote:

Mes Example 1 Command: python C:\Repos\mtree\bin\mtree_runner -i C:/Repos/mtree_examples/mes_example_1/config/mes_example_1.json Result: The Simulation runs, but I get a key error after the simulation finished executing: WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic MES Example', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'number_of_runs': 1, 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 245, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending, self.current_run)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Mes Example 2 Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_2/config/multi_simulation.json Result: The simulation does not run, I get the error: WARNING ActorAddr-Q.ThespianQ.c => Actor mTree.microeconomic_system.dispatcher.Dispatcher @ ActorAddr-Q.ThespianQ.c retryable exception on message <Message Sender: , Recipients: , Directive: simulation_configurations, Content: {'mtree_type': 'mes_simulation_description', 'name': 'Basic Simulation Run', 'id': '1', 'environment': 'BasicEnvironment', 'institution': 'BasicInstitution', 'agents': [{'agent_name': 'BasicAgent', 'number': 5}], 'properties': {'agent_endowment': 10, 'num_auctions': 10}}> Traceback (most recent call last):

File "C:\Users\Alex P\Dev\Anaconda3\lib\site-packages\thespian\system\actorManager.py", line 162, in _handleOneMessage actor_result = self.actorInst.receiveMessage(msg, envelope.sender)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 243, in receiveMessage self.begin_simulations()

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 195, in begin_simulations self.run_simulation(self.configurations_pending)

File "c:\repos\mtree\mTree\microeconomic_system\dispatcher.py", line 100, in run_simulation environment = component_registry.get_component_class(configuration["environment"])

File "c:\repos\mtree\mTree\components\registry.py", line 37, in get_component_class classobject = Registry.instance.class_list[mes_class]["class"]

KeyError: 'BasicEnvironment'

Mes Example 3: Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_3/config/multi_institution_simulation.json Result: The simulation does not run, I get the exact same error as above.

Mes Example 4: Command: python C:\Repos\mtree\bin\mtree_runner -m C:/Repos/mtree_examples/mes_example_4/config/agent_memory_simulation.json Result: The simulation does not run, I get the exact same error again.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gmucsn/mTree/issues/44#issuecomment-658878986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDF3GTUMVAHKSGXQHWAQDR3XNHDANCNFSM4O2SNCPA .

apsurek commented 4 years ago

I am running the python commands from the /mTree_examples/mes_example_1 for example 1, /mTree_examples/mes_example_2 for example 2, /mTree_examples/mes_example_3 for example 3, and /mTree_examples/mes_example_4 for example 4.

I am running the Anaconda distribution of Python, the full versioning information is: (base) C:\Repos\mTree_examples>python --version Python 3.6.5 :: Anaconda, Inc.

(base) C:\Repos\mTree_examples>pip list Package Version Location


altair 3.0.1 anaconda-client 1.7.2 anaconda-navigator 1.9.12 APScheduler 3.6.0 asgi-redis 0.14.1 asgiref 0.14.0 atomicwrites 1.3.0 attrs 19.3.0 autobahn 0.16.0 backcall 0.1.0 backports.functools-lru-cache 1.6.1 backports.tempfile 1.0 backports.weakref 1.0.post1 beautifulsoup4 4.9.0 bleach 3.1.4 boto3 1.12.41 botocore 1.15.41 certifi 2020.4.5.1 cffi 1.14.0 channels 0.17.3 chardet 3.0.4 click 7.1.2 clyent 1.2.2 colorama 0.4.3 conda 4.8.3 conda-build 3.10.5 conda-package-handling 1.7.0 conda-verify 3.4.2 contextlib2 0.5.4 cryptography 2.9.2 cycler 0.10.0 cymem 1.31.2 cytoolz 0.9.0.1 daal4py 2019.5 daphne 0.14.3 decorator 4.4.2 defusedxml 0.6.0 dill 0.2.9 dj-database-url 0.4.1 Django 1.11.2 django-idmap 1.0.3 django-vanilla-views 1.0.4 dnspython 1.16.0 dominate 2.3.5 entrypoints 0.3 eventlet 0.25.0 filelock 3.0.12 Flask-APScheduler 1.11.0 Flask-BasicAuth 0.2.0 Flask-Bootstrap 3.3.7.1 Flask-SocketIO 4.0.0 Flask-SQLAlchemy 2.4.0 future 0.18.2 gensim 3.8.2 glob2 0.7 honcho 0.7.1 huey 1.10.2 idna 2.9 importlib-metadata 1.6.0 IPy 0.83 ipykernel 5.1.4 ipython 7.13.0 ipython-genutils 0.2.0 ipywidgets 7.5.1 jedi 0.17.0 Jinja2 2.11.2 jmespath 0.9.5 json5 0.9.4 jsonschema 3.2.0 jupyter 1.0.0 jupyter-client 6.1.3 jupyter-console 6.1.0 jupyter-core 4.6.3 jupyterlab 1.2.6 jupyterlab-server 1.1.4 kiwisolver 1.2.0 MarkupSafe 1.1.1 matplotlib 3.1.3 menuinst 1.4.16 mistune 0.8.4 mkl-fft 1.0.15 mkl-random 1.1.1 mkl-service 2.3.0 monotonic 1.5 msgpack 0.6.1 msgpack-numpy 0.4.4.3 msgpack-python 0.4.8 mTree 0.3b12 c:\repos\mtree murmurhash 0.28.0 navigator-updater 0.2.1 nbconvert 5.6.1 nbformat 5.0.6 notebook 5.7.8 numpy 1.18.1 olefile 0.46 otree 2.2.3 otree-boto2-shim 0.3.2 otree-core 0.0.0b1 otree-save-the-change 1.1.3 pandas 1.0.3 pandocfilters 1.4.2 parso 0.7.0 pbr 1.10.0 pickleshare 0.7.5 Pillow 7.1.2 pip 20.0.2 pkginfo 1.5.0.1 plac 0.9.6 plotly 3.8.1 pluggy 0.12.0 preshed 1.0.1 prometheus-client 0.7.1 prompt-toolkit 3.0.4 psutil 5.7.0 py 1.8.0 pycosat 0.6.3 pycparser 2.20 pyfiglet 0.7 Pygments 2.6.1 pyOpenSSL 19.1.0 pyparsing 2.4.7 pyreadline 2.1 pyrsistent 0.16.0 PySocks 1.7.1 pytest 4.6.2 pytest-django 3.0.0 python-dateutil 2.8.1 python-engineio 3.8.0 python-json-logger 0.1.11 python-redis-lock 3.3.1 python-socketio 4.1.0 pytz 2020.1 pywin32 227 pywinpty 0.5.7 PyYAML 5.3.1 pyzmq 18.1.1 qtconsole 4.7.4 QtPy 1.9.0 redis 2.10.5 regex 2018.6.21 requests 2.23.0 retrying 1.3.3 ruamel-yaml 0.15.87 s3transfer 0.3.3 schema 0.6.2 scikit-learn 0.20.0 scipy 1.4.1 seaborn 0.9.0 Send2Trash 1.5.0 sentry-sdk 0.7.9 setuptools 46.4.0.post20200518 six 1.14.0 smart-open 1.11.1 socketIO-client 0.7.2 soupsieve 2.0.1 spacy 2.0.11 termcolor 1.1.0 terminado 0.8.3 testpath 0.4.4 thespian 3.9.9 thinc 6.10.3 toolz 0.10.0 tornado 6.0.4 tqdm 4.46.0 traitlets 4.3.3 Twisted 16.2.0 txaio 2.5.1 tzlocal 1.5.1 ujson 2.0.3 urllib3 1.25.8 vega 2.1.0 vega-datasets 0.7.0 visitor 0.1.3 wcwidth 0.1.9 webencodings 0.5.1 websocket-client 0.56.0 wheel 0.34.2 whitenoise 3.2.1 widgetsnbextension 3.5.1 win-inet-pton 1.1.0 wincertstore 0.2 wordcloud 1.6.0 wrapt 1.10.11 ws4py 0.3.5 XlsxWriter 0.9.3 xmltodict 0.12.0 zipp 3.1.0 zope.interface 4.2.0

apsurek commented 4 years ago

Also almost everyone is running Windows. There are three people running MacOS I believe, but at least 8 are running Windows. Pretty sure it's Windows 10 across the board.