Hello and sorry for the late reply.
I don't see what could be causing a crash without raising an exception.
Are you able to launch the original demo you copied from Pysbs ?
You can launch it from the demo folder installed in <PythonInstallFolder>/Lib/site-packages/pysbs_demos (be sure to have admin rights, or copy the entire folder elsewhere):
python demos.py -fct: demoExportWithDependencies -args: "sample/argsDemoExportWithDependencies.xml"
If yes, have you tried your script with another substance ?
Could you provide the substance you are trying to open, with its dependencies if any.
In all the cases, could you give us details on your configuration: OS, Python version, SAT / Pysbs version.
Thanks