It's my first day using Saltstack and Python and I was googling for environment configuration help and came across your question in my search results.
The next search result I clicked contains the same error as yours and suggests that this is caused by SaltStack moving the environment to /tmp for chowning.
The solution was to add the following to your salt state:
no_chown: True
Hope it helps.