pyslapi
pyslapi copied to clipboard
FileNotFoundError on os.mkdir (MacOS 10.15)
- File > Import > Sketchup scene...
- Choose any file to import.
- The addon throws the following error:
Python: Traceback (most recent call last):
File "/Users/username/Library/Application Support/Blender/2.93/scripts/addons/sketchup_importer/__init__.py", line 982, in execute
return SceneImporter().set_filename(keywords['filepath']).load(
File "/Users/username/Library/Application Support/Blender/2.93/scripts/addons/sketchup_importer/__init__.py", line 236, in load
self.write_materials(self.skp_model.materials)
File "/Users/username/Library/Application Support/Blender/2.93/scripts/addons/sketchup_importer/__init__.py", line 433, in write_materials
os.mkdir(temp_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/nr/50wh3xf90rb5lqnrf0vpwtz00000gn/T\\/path/to/my/sketchup-file'
location: <unknown location>:-1
Note that both the temporary folder path /var/folders/nr/50wh3xf90rb5lqnrf0vpwtz00000gn/T and /path/to/my/sketchup-file exist, but there is no path made up of the concatenation of both.
Expected behavior The code should load the file selected.
System Info
- Operating System: MacOS 10.15 (intel iMac)
- Blender Version 2.93.4
- SketchUp Version 2018
- Importer Version 0.23.0