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. Analysis & Postprocessing
  4. "To-Python"-function yields AssertionError

"To-Python"-function yields AssertionError

Scheduled Pinned Locked Moved Analysis & Postprocessing
3 Posts 2 Posters 474 Views
  • 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.
  • A Offline
    A Offline
    AmphoePai
    wrote on last edited by
    #1

    Dear Sim4Life community,

    when I try to create a python-script using the scripter (the "To-Python"-function at the Analysis tab), I get an AssertionError. I have copied it here:

    ERROR s4l_v1._scripter.scripter
    File "C:\Program Files\Sim4LifeLight_v4.2.0.3553\s4l_v1_scripter\scripter.py", line 71 :
    Traceback (most recent call last):
    File "C:\Program Files\Sim4LifeLight_v4.2.0.3553\s4l_v1_scripter\scripter.py", line 62, in AnalysisToScript
    ae.to_script(ostream)
    File "C:\Program Files\Sim4LifeLight_v4.2.0.3553\s4l_v1_scripter\exporter.py", line 52, in to_script
    (app_name == "SEMCAD" and app_ver.startswith(str(ReleaseVersion._semcad_current().value[7:])))
    AssertionError

    Is there something I can do to solve this?

    Best,
    AmphoePai

    1 Reply Last reply
    0
    • SylvainS Offline
      SylvainS Offline
      Sylvain
      ZMT
      wrote on last edited by
      #2

      This looks like an over-zealous version check and can be safely ignored. You can in principle disable the check by editing the faulty file manually
      ("C:\Program Files\Sim4LifeLight_v4.2.0.3553\s4l_v1_scripter\exporter.py", line 52) and removing the line that triggers the AssertionError (should start with "assert ...".
      If that sounds even remotely complicated to you, the simplest is for you to update Sim4Life light to its latest released version (simply download and install again), since this issue was fixed.
      I hope this helps.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AmphoePai
        wrote on last edited by
        #3

        Yes, deleting the line you mentioned has solved the problem. Thank you again for your help Sylvain.

        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