Solved by ptrblck in post #2 
              
              
                This would point to a broken installation in the other environment you are using (I don’t know how you are executing the script in the failing case).