Skip to content
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

[Bug]: AttributeError: 'NoneType' object has no attribute 'startswith' #16719

Open
6 tasks
sunyclj opened this issue Dec 12, 2024 · 0 comments
Open
6 tasks

[Bug]: AttributeError: 'NoneType' object has no attribute 'startswith' #16719

sunyclj opened this issue Dec 12, 2024 · 0 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@sunyclj
Copy link

sunyclj commented Dec 12, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

run: python webui.py --api --ckpt ../AWPainting_v1.0.safetensors --port 7861
when self.sha256 = hashes.sha256_from_cache(self.filename, f"checkpoint/{name}")
error: AttributeError: 'NoneType' object has no attribute 'startswith'

Steps to reproduce the problem

1、 python webui.py --api --ckpt ../AWPainting_v1.0.safetensors --port 7861

What should have happened?

No error reported

What browsers do you use to access the UI ?

No response

Sysinfo

1、 python webui.py --api --ckpt ../AWPainting_v1.0.safetensors --port 7861

Console logs

Traceback (most recent call last):
  File "/home/jovyan/work/suny/deepfake/stable-diffusion-webui/webui.py", line 152, in <module>
    webui()
  File "/home/jovyan/work/suny/deepfake/stable-diffusion-webui/webui.py", line 49, in webui
    initialize.initialize()
  File "/home/jovyan/work/suny/deepfake/stable-diffusion-webui/modules/initialize.py", line 75, in initialize
    initialize_rest(reload_script_modules=False)
  File "/home/jovyan/work/suny/deepfake/stable-diffusion-webui/modules/initialize.py", line 103, in initialize_rest
    sd_models.list_models()
  File "/home/jovyan/work/suny/deepfake/stable-diffusion-webui/modules/sd_models.py", line 158, in list_models
    checkpoint_info = CheckpointInfo(cmd_ckpt)
  File "/home/jovyan/work/suny/deepfake/stable-diffusion-webui/modules/sd_models.py", line 84, in __init__
    self.sha256 = hashes.sha256_from_cache(self.filename, f"checkpoint/{name}")
  File "/home/jovyan/work/suny/deepfake/stable-diffusion-webui/modules/hashes.py", line 23, in sha256_from_cache
    hashes = cache("hashes-addnet") if use_addnet_hash else cache("hashes")
  File "/home/jovyan/work/suny/deepfake/stable-diffusion-webui/modules/cache.py", line 76, in cache
    cache_obj = make_cache(subsection)
  File "/home/jovyan/work/suny/deepfake/stable-diffusion-webui/modules/cache.py", line 25, in make_cache
    return diskcache.Cache(
  File "/opt/conda/envs/sdwebui_v2/lib/python3.10/site-packages/diskcache/core.py", line 456, in __init__
    sql = self._sql_retry
  File "/opt/conda/envs/sdwebui_v2/lib/python3.10/site-packages/diskcache/core.py", line 652, in _sql_retry
    sql = self._sql
  File "/opt/conda/envs/sdwebui_v2/lib/python3.10/site-packages/diskcache/core.py", line 648, in _sql
    return self._con.execute
  File "/opt/conda/envs/sdwebui_v2/lib/python3.10/site-packages/diskcache/core.py", line 641, in _con
    if key.startswith('sqlite_'):
AttributeError: 'NoneType' object has no attribute 'startswith'

Additional information

No response

@sunyclj sunyclj added the bug-report Report of a bug, yet to be confirmed label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

1 participant