Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
muster:9.0:python [2018/09/28 09:27]
admin
muster:9.0:python [2019/02/22 08:24]
admin
Line 5: Line 5:
 When you use the Python modules for the API, so , extending another Python installation,​ there'​re a few scenarios you must be warned about: If you are extending Python 2.7, there'​s no problem, if you use the template system for some other reason, i.e. querying for the installed templates, Muster will bring up its own 3.3 interpreter and everything is fine. If you're extending a 3.3 Python installation,​ Muster will share the interpreter. It that case be aware that you'll access libraries and functions from your interpreter. When you use the Python modules for the API, so , extending another Python installation,​ there'​re a few scenarios you must be warned about: If you are extending Python 2.7, there'​s no problem, if you use the template system for some other reason, i.e. querying for the installed templates, Muster will bring up its own 3.3 interpreter and everything is fine. If you're extending a 3.3 Python installation,​ Muster will share the interpreter. It that case be aware that you'll access libraries and functions from your interpreter.
  
-In both scenarios, you must configure your PATH environmental variables on Windows, and the LD_LIBRARY_PATH and DYLD_LIBRARY_PATH on posix platforms to let the API find the Muster .DLL/so files . You'll also need to set the MUSTER9 environmental variable to the Muster ​root installation path, this allows the .LIB to find the python installation related to Muster.+In both scenarios, you must configure your PATH environmental variables on Windows, and the LD_LIBRARY_PATH and DYLD_LIBRARY_PATH on posix platforms to let the API find the Muster .DLL/so files . You'll also need to set the MUSTER9 environmental variable to the Muster ​root installation path, this allows the .LIB to find the python installation related to Muster.
 Don't forget to configure the environmental variables, because, you may end up loading another python installation laying somewhere on your filesystem and this could lead to module import errors very hard to sort out. Don't forget to configure the environmental variables, because, you may end up loading another python installation laying somewhere on your filesystem and this could lead to module import errors very hard to sort out.
  
Line 55: Line 55:
 <code python> <code python>
 session = MClientAPI.InitializeSession() session = MClientAPI.InitializeSession()
-err = MClientAPI.Connect(session,​dispatcherAddress,​9781)+err = MClientAPI.Connect(session,​dispatcherAddress,​9881)
 if err.getErrorCode() != 0: if err.getErrorCode() != 0:
  abort()  abort()