Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Python API
  4. python script to run in the cloud

python script to run in the cloud

Scheduled Pinned Locked Moved Python API
1 Posts 1 Posters 125 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maged1212
    wrote on last edited by maged1212
    #1

    Im trying to run the simulation in specific cloud server but it gives me the error:
    [INFO] Running simulation 'LF' on server '17216a82-d756-4fa0-b8e2-eb3f93166eb4'...
    Warning : No connection available (trial 1 out of 15)
    Warning : No connection available (trial 2 out of 15)
    Warning : No connection available (trial 3 out of 15)
    Warning : No connection available (trial 4 out of 15)
    Warning : No connection available (trial 5 out of 15)
    Warning : No connection available (trial 6 out of 15)
    Warning : No connection available (trial 7 out of 15)
    Warning : No connection available (trial 8 out of 15)
    Warning : No connection available (trial 9 out of 15)
    Warning : No connection available (trial 10 out of 15)
    Warning : No connection available (trial 11 out of 15)
    Warning : No connection available (trial 12 out of 15)
    Warning : No connection available (trial 13 out of 15)
    Warning : No connection available (trial 14 out of 15)
    Warning : No connection available (trial 15 out of 15)
    [ERROR] Failed to run simulation 'LF' on server '17216a82-d756-4fa0-b8e2-eb3f93166eb4': No connection available to submit jobs. Please check your Network settings.

    Code used:
    import s4l_v1.document as document
    import s4l_v1.model as model
    import s4l_v1.simulation as simulation
    for simulation_instance in simulations:
    servers = simulation.GetAvailableServers()
    server_id = servers.get(my_server_name)
    sim_future=simulation_instance.RunSimulation(server_id)
    sim_future.Wait()
    note: the connection to the cloud is established correctly and appears in the run menu with name and ip.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Search