Skip to content

"PermissionError: [Errno 13] Permission denied" when pressing the "convert" button. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
snarks567 opened this issue Mar 11, 2024 · 0 comments

Comments

@snarks567
Copy link

After I set up the VTFCmd and Materials path I managed to generate a set of VTF and VMT files once. However after that first conversion the addon started refusing to generate VTF and VMT files. Instead I get an error message about a "permission" being denied. I tried adding python, Blender and the addon files as an exception in Windows Defender but it doesn't do anything.

ggg

Error log:

Python: Traceback (most recent call last):
File "C:\Users\snark\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Material_To_VTF\VTFLibOperators.py", line 134, in execute
new_image_tex_file = shutil.copy(image_path, os.path.dirname(image_path) + "\" + image_name_to_material_name[image_path] + "" + image_ext)
File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\python\lib\shutil.py", line 417, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\python\lib\shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
PermissionError: [Errno 13] Permission denied: 'C:\Program Files\Blender Foundation\Blender 4.0'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant