[Bug]: on a Mac when loading extensions the sidecar ._mycode.py file will be loaded causing a ValueError: source code string cannot contain null bytes error #11649
[X] I have searched the existing issues and checked the recent builds/commits
What happened?
The extension I was developing kept failing to load with ValueError: source code string cannot contain null bytes
after much testing I determined the problem was a hidden side car file
Is there an existing issue for this?
What happened?
The extension I was developing kept failing to load with ValueError: source code string cannot contain null bytes after much testing I determined the problem was a hidden side car file
user@xxx scripts % ls -ltra total 1024 drwxrwxrwx 1 xxx staff 131072 Jun 29 21:30 . drwxrwxrwx 1 xxx staff 131072 Jul 6 14:41 .. -rwxrwxrwx 1 xxx staff 4096 Jul 6 14:42 ._alpha.py -rwxrwxrwx@ 1 xxx staff 10 Jul 6 14:45 alpha.py
short term fix, delete files before running webui.sh long term fix, can you exclude loading .* hidden files in the module load code
Steps to reproduce the problem
What should have happened?
it would be nice if .xxxxxx.py was ignored and not loaded as python code
Version or Commit where the problem happens
394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
What Python version are you running on ?
Python 3.9.x (below, no recommended)
What platforms do you use to access the UI ?
MacOS
What device are you running WebUI on?
CPU
Cross attention optimization
Automatic
What browsers do you use to access the UI ?
Apple Safari
Command Line Arguments
List of extensions
building my own
Console logs
Additional information
No response