Hi Girish,
It shouldn’t ever be necessary to run RSGISLib as root. Did you install miniconda as root rather than a normal user? If it is installed centrally (rather than the root home directory) you might be able to chown it rather than having to reinstall.
Rather than creating a Python script to call all the Python code, you should be able to just add the activate step to your .bashrc, after the line where conda has been added to the path.
The RSGISLib functions will throw an exception if they don’t complete successfully so you can turn this into error codes in your Python script if you don’t want the full traceback.
Out of interest would you be able to provide some more details of the project you are using RSGISLib for - it is useful for us to know what people are using RSGISLib for.
Thanks,
Dan