Skip to content

experimental_memo decorator failed to persist to 'disk' after upgrading to 1.15 #5758

@LiyeTeza

Description

@LiyeTeza

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

experimental_memo decorator failed to persist to 'disk' after upgrading to 1.15 from 1.14.1

Reproducible Code Example

import streamlit as st


disk_memo = st.experimental_memo(suppress_st_warning=True, persist='disk', show_spinner=False)

@disk_memo
def func(a=1):
    return a+1

Steps To Reproduce

run the code.

No cache file is produced at ~/.streamlit/cache

Expected Behavior

No response

Current Behavior

No response

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: 1.50
  • Python version: 3.10.8
  • Operating System: MacOS 13.0.1
  • Browser:
  • Virtual environment:

Additional Information

No response

Are you willing to submit a PR?

  • Yes, I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:cannot-reproduceBug cannot be reproduced by the Streamlit teamtype:bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions