sen2cor: distutils.errors.DistutilsFileError: S2_User_Product_Level-2A_Metadata.xsd

Good morning,

I try to run sen2cor on a VM (Linux) out of a python script. It works properly if I run it strait from the cmd-window, but if I call it out of my script, then I receive the following error:

Traceback (most recent call last):
      File "/opt/anaconda/bin/L2A_Process", line 6, in <module>
        sys.exit(sen2cor.L2A_Process.main())
      File "/opt/anaconda/lib/python2.7/site-packages/sen2cor/L2A_Process.py", line 248, in main
        tiles = config.createL2A_UserProduct()
      File "/opt/anaconda/lib/python2.7/site-packages/sen2cor/L2A_Config.py", line 2075, in createL2A_UserProduct
        copy_file(self.configDir + upScheme2a, L2A_UP_DIR + REP_INFO + '/' + upScheme2a)
      File "/opt/anaconda/lib/python2.7/distutils/file_util.py", line 110, in copy_file
        "can't copy '%s': doesn't exist or not a regular file" % src)
    distutils.errors.DistutilsFileError: can't copy 'opt/anaconda/lib/python2.7/site-packages/sen2cor/cfg/S2_User_Product_Level-2A_Metadata.xsd': doesn't exist or not a regular file

Does anyone have a clue what could cause this error?

The file S2_User_Product_Level-2A_Metadata.xsd exists under the given path and I also can open/read it.

Thank you and cheers,
Andreas