ABM4ALL / Melodie

A general framework for developing agent-based models in Python.
MIT License
31 stars 7 forks source link

Covid Network Container Visual #16

Closed rusu24edward closed 1 year ago

rusu24edward commented 1 year ago

I installed and launched MelodieStudio. Then I ran run_simulator from the CovidNetworkContagionVisual tutorial. The web page did not connect. Here is the output from the front-end and back-end, respectively:

 * Serving Flask app 'MelodieStudio.main'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:8089
 * Running on http://128.15.165.38:8089
Press CTRL+C to quit
file /Users/rusu1/tmp/CovidNetworkContagionVisual/__pycache__/config.cpython-38.pyc.140460112340144 created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/__pycache__/config.cpython-38.pyc.140460112340144 moved, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/data_loader.cpython-38.pyc.140460098345696 created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/data_loader.cpython-38.pyc.140460098345696 moved, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/data_info.cpython-38.pyc.140460113164448 created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/data_info.cpython-38.pyc.140460113164448 moved, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/model.cpython-38.pyc.140460113165024 created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/model.cpython-38.pyc.140460113165024 moved, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/agent.cpython-38.pyc.140460113165312 created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/agent.cpython-38.pyc.140460113165312 moved, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/data_collector.cpython-38.pyc.140460113166176 created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/data_collector.cpython-38.pyc.140460113166176 moved, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/environment.cpython-38.pyc.140460113203392 created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/environment.cpython-38.pyc.140460113203392 moved, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/scenario.cpython-38.pyc.140460113203680 created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/scenario.cpython-38.pyc.140460113203680 moved, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/visualizer.cpython-38.pyc.140460113205120 created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/source/__pycache__/visualizer.cpython-38.pyc.140460113205120 moved, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidNetworkContagionVisual/data/output/CovidNetworkContagionVisual.sqlite-journal created, now update!
127.0.0.1 - - [16/Feb/2023 18:35:49] "GET / HTTP/1.1" 301 -
127.0.0.1 - - [16/Feb/2023 18:35:49] "GET /index.html HTTP/1.1" 304 -
127.0.0.1 - - [16/Feb/2023 18:35:49] "GET /js/chunk-vendors.ec0d5ce6.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Feb/2023 18:35:49] "GET /js/app.af103955.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Feb/2023 18:35:50] "GET /api/tools/projectMeta HTTP/1.1" 200 -
127.0.0.1 - - [16/Feb/2023 18:35:50] "GET /js/703.11903911.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Feb/2023 18:35:50] "GET /js/434.fd11c8bc.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Feb/2023 18:35:50] "GET /js/305.4466cff8.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Feb/2023 18:35:50] "GET /js/529.c47275d2.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Feb/2023 18:35:50] "GET /api/charts/getLayout HTTP/1.1" 200 -
127.0.0.1 - - [16/Feb/2023 18:35:50] "GET /api/fs/getFile?fileName=README.md HTTP/1.1" 200 -
visualizer.py:130 INFO 
====================================================================================================
Visualizer started at localhost:8765
====================================================================================================
 * Serving Flask app 'Melodie.visualizer.visualizer_server'
 * Debug mode: off
_internal.py:224 INFO WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:8765
 * Running on http://128.15.165.38:8765
_internal.py:224 INFO Press CTRL+C to quit
db.py:127 INFO Database contains tables: ['ID_AgeGroup', 'ID_HealthState', 'Parameter_AgeGroup_TransitionProb', 'Parameter_AgentParams', 'simulator_scenarios'].
db.py:131 INFO Database drops tables: ['ID_AgeGroup', 'ID_HealthState', 'Parameter_AgeGroup_TransitionProb', 'Parameter_AgentParams', 'simulator_scenarios'].
simulator.py:275 INFO Simulator start up cost: 0.19620299339294434s
simulator.py:277 INFO Visualizer interactive paramerters for this scenario are: {}
db.py:127 INFO Database contains tables: [].
db.py:131 INFO Database drops tables: [].
simulator.py:294 INFO Scenario parameters: {'_parameters': [], 'manager': <Melodie.simulator.Simulator object at 0x7fbf63c65220>, 'id': 0, 'run_num': 1, 'period_num': 100, 'agent_num': 300, 'network_type': 'barabasi_albert_graph', 'network_param_k': 6, 'network_param_p': 0.2, 'network_param_m': 2, 'initial_infected_percentage': 0.1, 'young_percentage': 0.8, 'infection_prob': 0.1, 'transition_probs': {0: {'s1_s1': 0.9, 's1_s2': 0.099, 's1_s3': 0.0010000000000000009}, 1: {'s1_s1': 0.9, 's1_s2': 0.09, 's1_s3': 0.010000000000000009}}}
simulator.py:168 INFO Simulation started - id_scenario = 0, id_run = 0
vis_charts.py:287 INFO Chart manager reset!
visualizer.py:247 INFO Formatting current data takes:0.0897829532623291 seconds
visualizer.py:338 INFO in start
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:35:50] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:35:52] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:35:54] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:35:56] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:35:58] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:36:00] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:36:02] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:36:05] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:36:09] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:36:15] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:36:24] "GET / HTTP/1.1" 404 -
_internal.py:224 INFO 127.0.0.1 - - [16/Feb/2023 18:36:38] "GET / HTTP/1.1" 404 -
h-mole commented 1 year ago

Hi @rusu24edward , we have pushed a new version of MelodieStudio onto pypi, please re-install the MelodieStudio package, restart this demo, and try to visit http://127.0.0.1:8089 by browser. Thanks!

rusu24edward commented 1 year ago

I've reinstalled my virtual environment from scratch using Python3.8 and installed MelodieStudio version 0.6.0. If I'm in the Melodie repo root, I can call python3 -m MelodieStudio and it returns

python3 -m MelodieStudio
 * Serving Flask app 'MelodieStudio.main'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:8089
 * Running on http://128.15.167.49:8089
Press CTRL+C to quit

When I open http://127.0.0.1:8089, I just see a blank page. I think this is expected since this is the Melodie repo and not a tutorial, but please correct me if I'm wrong.

I hop over to CovidGridContagionVisual and run python3 -m MelodieStudio, and I receive the following error:

python3 -m MelodieStudio
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/rusu1/tmp/Melodie/v_melodie_38/lib/python3.8/site-packages/MelodieStudio/__main__.py", line 6, in <module>
    studio_main()
  File "/Users/rusu1/tmp/Melodie/v_melodie_38/lib/python3.8/site-packages/MelodieStudio/main.py", line 97, in studio_main
    init_config_manager(conf_folder)
  File "/Users/rusu1/tmp/Melodie/v_melodie_38/lib/python3.8/site-packages/MelodieStudio/utils/config_manager.py", line 153, in init_config_manager
    _config_manager = ConfigureManager(conf_folder)
  File "/Users/rusu1/tmp/Melodie/v_melodie_38/lib/python3.8/site-packages/MelodieStudio/utils/config_manager.py", line 126, in __init__
    self.basic_config: BasicConfig = BasicConfig(
  File "/Users/rusu1/tmp/Melodie/v_melodie_38/lib/python3.8/site-packages/MelodieStudio/utils/config_manager.py", line 35, in __init__
    self.load()
  File "/Users/rusu1/tmp/Melodie/v_melodie_38/lib/python3.8/site-packages/MelodieStudio/utils/config_manager.py", line 66, in load
    raise AttributeError(
AttributeError: Configure file /Users/rusu1/tmp/CovidGridContagionVisual/.melodie/studio/basic_config.json does not define 'CURRENT_VISUALIZER_HOST'

Same error when I try CovidNetworkContagionVisual.

h-mole commented 1 year ago

@rusu24edward Sorry, I forgot to push the updates to the CovidNetworkContagionVisual repository. Could you please re-pull this repo and retry? Thanks!

jbytecode commented 1 year ago

Due to the JOSS submission: https://github.com/openjournals/joss-reviews/issues/5100

rusu24edward commented 1 year ago

When I attempt to use python3 -m MelodieStudio in CovidGridContagionVisual, the browser is just blank, and nothing seems to happen when I run run_simulator.py. Here's the output:

CovidGridContagionVisual rusu1$ python3 -m MelodieStudio
 * Serving Flask app 'MelodieStudio.main'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:8089
 * Running on http://128.15.170.86:8089
Press CTRL+C to quit
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
file /Users/rusu1/tmp/CovidGridContagionVisual/data/output/CovidGridContagionVisual.sqlite-journal created, now update!
CovidGridContagionVisual rusu1$ python3 run_simulator.py 
visualizer.py:130 INFO 
====================================================================================================
Visualizer started at localhost:8765
====================================================================================================
 * Serving Flask app 'Melodie.visualizer.visualizer_server'
 * Debug mode: off
_internal.py:224 INFO WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:8765
 * Running on http://128.15.170.86:8765
_internal.py:224 INFO Press CTRL+C to quit
db.py:127 INFO Database contains tables: ['ID_AgeGroup', 'ID_HealthState', 'Parameter_AgeGroup_TransitionProb', 'Parameter_AgentParams', 'simulator_scenarios'].
db.py:131 INFO Database drops tables: ['ID_AgeGroup', 'ID_HealthState', 'Parameter_AgeGroup_TransitionProb', 'Parameter_AgentParams', 'simulator_scenarios'].
simulator.py:275 INFO Simulator start up cost: 0.3473050594329834s
simulator.py:277 INFO Visualizer interactive paramerters for this scenario are: {}
db.py:127 INFO Database contains tables: [].
db.py:131 INFO Database drops tables: [].
simulator.py:294 INFO Scenario parameters: {'_parameters': [], 'manager': <Melodie.simulator.Simulator object at 0x7fe0e0e03ee0>, 'id': 0, 'run_num': 1, 'period_num': 100, 'agent_num': 1000, 'grid_x_size': 100, 'grid_y_size': 100, 'initial_infected_percentage': 0.1, 'young_percentage': 0.8, 'infection_prob': 0.1, 'transition_probs': {0: {'s1_s1': 0.9, 's1_s2': 0.099, 's1_s3': 0.0010000000000000009}, 1: {'s1_s1': 0.9, 's1_s2': 0.09, 's1_s3': 0.010000000000000009}}}
simulator.py:168 INFO Simulation started - id_scenario = 0, id_run = 0
vis_charts.py:256 INFO Chart manager reset!
visualizer.py:247 INFO Formatting current data takes:0.0015358924865722656 seconds
visualizer.py:338 INFO in start

The same thing happens in the CovidNetworkContagionVisual.

Are you testing this yourself after you push a change? I'm just curious how it is working for you but not for me.

SongminYu commented 1 year ago

Hi @rusu24edward, this is weird... but the computer is never wrong... @hzyrc6011 tested again today and told me it was fine on his laptop. He is exploring some other reasons and will come back to you.

jbytecode commented 1 year ago

@SongminYu - How about testing the software in a newly installed virtual machine?

SongminYu commented 1 year ago

Hi @jbytecode, thanks! Yes, @hzyrc6011 also tried with docker. He is more experienced than me so he is trying to solve the issue. We have some time lag. He is in China and I am in Europe. So he is sleeping now. I think he will try again tomorrow. We will try to solve this soon.

h-mole commented 1 year ago

@jbytecode Thanks for your suggestion, and today I tried it on a ubuntu-22.04 server. The commands that I used for installing dependencies were:

# at the folder of /home/ubuntu

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.8-* -y # installed the pre-built python package, and the building dependencies for python wheel c extensions

# clone Melodie to build the wheel
git clone https://github.com/ABM4ALL/Melodie.git

cd Melodie/
python3.8  -m pip install -r build_requirements.txt 
python3.8 setup.py bdist_wheel
python3.8 -m pip install dist/Melodie-0.6.0-cp38-cp38-linux_x86_64.whl 

# install MelodieStudio
python3.8 -m pip install MelodieStudio

And after starting the simulator and studio, I visited http://<address_of_server>:8089, then the page was showed in the browser as the following picture: image

If the problem still happens even after refreshing the visualization page, and the browser showed a completely blank page(even without any error code), could you please provide a screenshot inside the browser developer tool (Could be accessed by F12)? The screen shot for Console tab and Network tab will be helpful.

Console page

Network page

Sorry again for this problem, we will struggle to find out how to fix it.

rusu24edward commented 1 year ago

Network tab:

Screen Shot 2023-03-17 at 12 11 49 PM

Console tab:

Screen Shot 2023-03-17 at 12 12 07 PM

Full output from console.

Loading failed for the <script> with source “https://cdn.bootcdn.net/ajax/libs/echarts/5.3.3/echarts.min.js”. [index.html:9:1](http://127.0.0.1:8089/index.html#/)
Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/container/src/aside.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/container/src/aside.mjs?
Source Map URL: aside.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/container/src/footer.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/container/src/footer.mjs?
Source Map URL: footer.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/container/src/header.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/container/src/header.mjs?
Source Map URL: header.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/container/src/main.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/container/src/main.mjs?
Source Map URL: main.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/container/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/container/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/main/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/main/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/header/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/header/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/aside/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/aside/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/index.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/index.mjs?
Source Map URL: index.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/menu.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/menu.mjs?
Source Map URL: menu.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/utils/menu-bar.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/utils/menu-bar.mjs?
Source Map URL: menu-bar.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/utils/menu-item.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/utils/menu-item.mjs?
Source Map URL: menu-item.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/utils/submenu.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/utils/submenu.mjs?
Source Map URL: submenu.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/utils/dom/aria.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/utils/dom/aria.mjs?
Source Map URL: aria.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/menu-collapse-transition.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/menu-collapse-transition.mjs?
Source Map URL: menu-collapse-transition.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/sub-menu.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/sub-menu.mjs?
Source Map URL: sub-menu.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/collapse-transition/index.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/collapse-transition/index.mjs?
Source Map URL: index.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/collapse-transition/src/collapse-transition.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/collapse-transition/src/collapse-transition.mjs?
Source Map URL: collapse-transition.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/use-menu.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/use-menu.mjs?
Source Map URL: use-menu.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/use-menu-css-var.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/use-menu-css-var.mjs?
Source Map URL: use-menu-css-var.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/use-menu-color.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/use-menu-color.mjs?
Source Map URL: use-menu-color.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/menu-item2.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/menu-item2.mjs?
Source Map URL: menu-item2.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/menu-item.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/menu-item.mjs?
Source Map URL: menu-item.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/menu-item-group2.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/menu-item-group2.mjs?
Source Map URL: menu-item-group2.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/src/menu-item-group.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/src/menu-item-group.mjs?
Source Map URL: menu-item-group.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/sub-menu/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/sub-menu/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu-item-group/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu-item-group/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/menu-item/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/menu-item/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/breadcrumb/index.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/breadcrumb/index.mjs?
Source Map URL: index.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/breadcrumb/src/breadcrumb2.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/breadcrumb/src/breadcrumb2.mjs?
Source Map URL: breadcrumb2.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/breadcrumb/src/breadcrumb.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/breadcrumb/src/breadcrumb.mjs?
Source Map URL: breadcrumb.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/tokens/breadcrumb.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/tokens/breadcrumb.mjs?
Source Map URL: breadcrumb.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/breadcrumb/src/breadcrumb-item2.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/breadcrumb/src/breadcrumb-item2.mjs?
Source Map URL: breadcrumb-item2.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/breadcrumb/src/breadcrumb-item.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/breadcrumb/src/breadcrumb-item.mjs?
Source Map URL: breadcrumb-item.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/breadcrumb/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/breadcrumb/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/breadcrumb-item/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/breadcrumb-item/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/mitt/dist/mitt.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/mitt/dist/mitt.mjs?
Source Map URL: mitt.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/index.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/index.mjs?
Source Map URL: index.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/src/tree.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/src/tree.mjs?
Source Map URL: tree.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/src/model/tree-store.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/src/model/tree-store.mjs?
Source Map URL: tree-store.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/src/model/node.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/src/model/node.mjs?
Source Map URL: node.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/src/model/util.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/src/model/util.mjs?
Source Map URL: util.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/src/tree-node.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/src/tree-node.mjs?
Source Map URL: tree-node.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/src/tree-node-content.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/src/tree-node-content.mjs?
Source Map URL: tree-node-content.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/src/model/useNodeExpandEventBroadcast.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/src/model/useNodeExpandEventBroadcast.mjs?
Source Map URL: useNodeExpandEventBroadcast.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/src/model/useDragNode.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/src/model/useDragNode.mjs?
Source Map URL: useDragNode.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/src/model/useKeydown.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/src/model/useKeydown.mjs?
Source Map URL: useKeydown.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tree/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tree/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/index.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/index.mjs?
Source Map URL: index.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/src/index.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/src/index.mjs?
Source Map URL: index.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/src/components/alpha-slider.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/src/components/alpha-slider.mjs?
Source Map URL: alpha-slider.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/src/draggable.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/src/draggable.mjs?
Source Map URL: draggable.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/utils/dom/position.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/utils/dom/position.mjs?
Source Map URL: position.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/src/components/hue-slider.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/src/components/hue-slider.mjs?
Source Map URL: hue-slider.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/src/components/predefine.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/src/components/predefine.mjs?
Source Map URL: predefine.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/src/useOption.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/src/useOption.mjs?
Source Map URL: useOption.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/src/color.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/src/color.mjs?
Source Map URL: color.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/src/components/sv-panel.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/src/components/sv-panel.mjs?
Source Map URL: sv-panel.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/color-picker/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/color-picker/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/select/index.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/select/index.mjs?
Source Map URL: index.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/select/src/select.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/select/src/select.mjs?
Source Map URL: select.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tag/index.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tag/index.mjs?
Source Map URL: index.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tag/src/tag2.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tag/src/tag2.mjs?
Source Map URL: tag2.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/tag/src/tag.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/tag/src/tag.mjs?
Source Map URL: tag.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/select/src/option.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/select/src/option.mjs?
Source Map URL: option.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/select/src/useOption.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/select/src/useOption.mjs?
Source Map URL: useOption.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/select/src/token.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/select/src/token.mjs?
Source Map URL: token.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/utils/strings.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/utils/strings.mjs?
Source Map URL: strings.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/select/src/select-dropdown.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/select/src/select-dropdown.mjs?
Source Map URL: select-dropdown.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/select/src/useSelect.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/select/src/useSelect.mjs?
Source Map URL: useSelect.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/utils/vue/size.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/utils/vue/size.mjs?
Source Map URL: size.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/hooks/use-focus/index.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/hooks/use-focus/index.mjs?
Source Map URL: index.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/select/src/option-group.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/select/src/option-group.mjs?
Source Map URL: option-group.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/select/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/select/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/option/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/option/style/css.mjs?
Source Map URL: css.mjs.map

Source map error: Error: unsupported protocol for sourcemap request webpack://MelodieStudio/node_modules/element-plus/es/components/option-group/style/css.mjs.map
Resource URL: webpack://MelodieStudio/./node_modules/element-plus/es/components/option-group/style/css.mjs?
Source Map URL: css.mjs.map

I'm using mac os 10.15.7 with firefox 102.8.0esr

Here is my python env:

Package                       Version   Editable project location
----------------------------- --------- -------------------------
alabaster                     0.7.13
astroid                       2.14.2
astunparse                    1.6.3
attrs                         22.2.0
Babel                         2.12.1
certifi                       2022.12.7
chardet                       4.0.0
charset-normalizer            3.1.0
click                         8.1.3
cloudpickle                   2.2.1
colorama                      0.4.6
contourpy                     1.0.7
cycler                        0.11.0
Cython                        3.0.0a11
docutils                      0.18.1
et-xmlfile                    1.1.0
exceptiongroup                1.1.1
Flask                         2.2.3
Flask-Cors                    3.0.10
flask-sock                    0.6.0
fonttools                     4.39.0
greenlet                      2.0.2
h11                           0.14.0
idna                          3.4
imagesize                     1.4.1
importlib-metadata            6.0.0
importlib-resources           5.12.0
iniconfig                     2.0.0
itsdangerous                  2.1.2
jedi                          0.18.2
Jinja2                        3.1.2
kiwisolver                    1.4.4
lazy-object-proxy             1.9.0
livereload                    2.6.3
Markdown                      3.4.1
MarkupSafe                    2.1.2
matplotlib                    3.7.1
Melodie                       0.6.0     /Users/rusu1/tmp/Melodie
MelodieStudio                 0.6.0
networkx                      3.0
numpy                         1.24.2
openpyxl                      3.1.2
packaging                     23.0
pandas                        1.5.3
parso                         0.8.3
Pillow                        9.4.0
pip                           23.0.1
pluggy                        1.0.0
plumbum                       1.8.1
pprintast                     1.2.1
psutil                        5.9.4
py-ts-interfaces              0.5.0
Pygments                      2.14.0
pyparsing                     3.0.9
pytest                        7.2.2
pytest-timeout                2.1.0
python-dateutil               2.8.2
pytz                          2022.7.1
requests                      2.28.2
rpyc                          5.3.1
scikit-opt                    0.6.6
scipy                         1.10.1
seaborn                       0.11.2
setuptools                    49.2.1
simple-websocket              0.9.0
six                           1.16.0
snowballstemmer               2.2.0
Sphinx                        6.1.3
sphinx-autobuild              2021.3.14
sphinx-markdown-tables        0.0.17
sphinx-rtd-theme              1.2.0
sphinxcontrib-applehelp       1.0.4
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        2.0.1
sphinxcontrib-jquery          2.0.0
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.5
SQLAlchemy                    1.4.46
termcolor                     2.2.0
tomli                         2.0.1
tornado                       6.2
typing_extensions             4.5.0
urllib3                       1.26.15
watchdog                      2.3.1
websockets                    10.4
Werkzeug                      2.2.3
wheel                         0.38.4
wrapt                         1.15.0
wsproto                       1.2.0
xlrd                          1.2.0
zipp                          3.15.0
h-mole commented 1 year ago

@rusu24edward Thanks for the comment with problems, I found this was due to a misconfiguration of CDN in MelodieStudio, and we tried to fixed this problem. Also, the fixes have already been tested on Windows, MacOS and Linux.

For Melodie, please install the latest commit on master branch; For MelodieStudio, please install this wheel: https://github.com/ABM4ALL/MelodieStudio/releases/tag/0.7.0.dev1

After starting the Visualizer and MelodieStudio, the MelodieStudio will show the following message. Note that if melodieStudio started before the visualizer, it may raise ConnectionRefusedError because it cannot connect to the visualizer.

Melodie Studio is running on:
- Gateway:          8089
- Studio Service:   52422
- Visualizer:       127.0.0.1:8765

Please visit this url http://localhost:8089 to open the visualizer.

If MelodieStudio cannot connect to the visualizer, please check if the visualizer host in webpage is corresponding to the visualizer configuration.

 * Serving Flask app 'MelodieStudio.main'
 * Debug mode: off

Following this message, please visit http://localhost:8089 page to see if this bug was fixed. Thank you again for your patience in helping us to deal with this problem!

rusu24edward commented 1 year ago

I followed these instructions, and I was able to get the Network Visual tutorial to work. Thanks for your hard work to fix this! Very cool visualization, definitely worth the effort.

I did try the Covid Grid Visual tutorial, and I got the following error:

python3 -m MelodieStudio

Melodie Studio is running on: 
- Gateway:          8089
- Studio Service:   53713
- Visualizer:       127.0.0.1:8765

Please visit this url http://localhost:8089 to open the visualizer.

If MelodieStudio cannot connect to the visualizer, please check if the visualizer host in webpage is corresponding to the visualizer configuration.

 * Serving Flask app 'MelodieStudio.main'
 * Debug mode: off
Traceback (most recent call last):
  File "/Users/rusu1/tmp/Melodie/v_melodie_38/lib/python3.8/site-packages/MelodieStudio/gateway/gateway.py", line 550, in _send_message
    self.connection.send(bytes([0x80 + opcode]))
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/Users/rusu1/tmp/Melodie/v_melodie_38/lib/python3.8/site-packages/MelodieStudio/gateway/gateway.py", line 550, in _send_message
    self.connection.send(bytes([0x80 + opcode]))
OSError: [Errno 9] Bad file descriptor
SongminYu commented 1 year ago

@rusu24edward Thanks a lot! We will have a look at this issue. We also noticed that there are still some aspects of MelodieStudio that need improvements. We will also try to fix them and release a new version!

SongminYu commented 1 year ago

Hi @rusu24edward, we just released a new version 0.7.0 of Melodie and MelodieStudio. Now both examples of Network and Grid can be visualized! Thanks a lot!