question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visualization import error🐛

See original GitHub issue

Description

Hello, I have just installed MARO using pypl, followed the quick example, but when running the visualization command maro inspector dashboard --source_path ./dump_data/snapshot_dump_folder I get the following error:

ModuleNotFoundError: No module named 'maro.cli.maro_real_time_vis.back_end'

Screenshots

To Reproduce

Steps to reproduce the behavior:

  1. Install MARO using pypl
  2. Run the quick example
  3. Run the visualization command maro inspector dashboard --source_path ./dump_data/snapshot_dump_folder

Expected Behavior

Environment

  • MARO version (e.g., v0.1.1a1): 0.2.1a1
  • MARO scenario (CIM, Citi Bike): CIM
  • MARO component (Simulation, RL, Distributed Training):
  • Orchestration platform (GraSS on Azure, AKS on Azure):
  • How you installed MARO (pip, source): pip
  • OS (Linux, Windows, macOS): Linux
  • Python version (3.6, 3.7): 3.7
  • Docker image (e.g., arthursjiang/maro:cpu[5f36ed]):
  • CPU/GPU:
  • Any other relevant information:

Additional Context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Meroy9819commented, May 14, 2021

To fix the code mentioned here one might do the following:

from maro.simulator import Env
from maro.simulator.scenarios.cim.common import Action

env = Env(scenario="cim",
          topology="toy.5p_ssddd_l0.0",
          start_tick=0,
          durations=100,
          options={"enable-dump-snapshot": "./dump_data"})
env.reset()

metrics, decision_event, is_done = env.step(None)
action = Action(0, 0, 0, 0)

while not is_done:
    metrics, decision_event, is_done = env.step(action)

print(f"environment metrics: {env.metrics}")

Indeed, env.reset() will call the code necessary to start the visualization process. Of course, when you will launch maro inspector an error will show for the intra-epoch visualization (since it is a single epoch). However, inter-epoch visualization works correctly.

Thanks for your support! Your advice has been updated to the project.

1reaction
cpncommented, Apr 15, 2021

It seems that using the quick start example here with the addition of the options parameter from above and the missing action_type parameter, the directory is filled now and I could use the visualization command. Thanks for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter Visualization Tutorial Bug: ImportError: cannot import ...
I have try copy this file to my example dir and import it manually, then I can run with no error, but nothing...
Read more >
Resolve import errors API | Kibana Guide [8.5] - Elastic
This example builds upon the Import objects API example with conflict errors. Resolve conflict errors for a data view, visualization, and Canvas workpad...
Read more >
Version 4.3.16 visualization import bug - LOR S4/S5/S6 SuperStar ...
I discovered a bug when importing this year's visualizations into SuperStar. In Visualizer I am forcing all props to specific locations on the...
Read more >
Configuration and Installation - Common Errors // CIRCOS ...
This error appears because Circos cannot find a configuration file, required to generate the image, anywhere within the current directory or subdirectories.
Read more >
Java Visualizer
Show String/Integer/etc objects, not just values · Show overridden fields, synthetics · Prefer non-nesting and vertical layouts · Force linked lists to display ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found