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

INFO: Could not find files for the given pattern(s) message appears on Windows #9974

Open
1 task done
JackismyShephard opened this issue Nov 16, 2024 · 5 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@JackismyShephard
Copy link
Contributor

Describe the bug

I noticed that INFO: Could not find files for the given pattern(s). is printed to the console whenever starting a gradio application. What is really strange is that this log message is still printed even when I disable python logging, so it seems the message is not being emitted by python code. It is not too big of a deal but it is a bit annoying. Also, I am not sure whether this message can be safely ignored or not (I assume it can since it is has log level INFO).

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import logging

import gradio as gr

logging.basicConfig(handlers=[logging.NullHandler()])


def greet(name):
    return "Hello " + name + "!"


with gr.Blocks() as demo:
    name = gr.Textbox(label="Name")
    output = gr.Textbox(label="Output Box")
    greet_btn = gr.Button("Greet")
    greet_btn.click(fn=greet, inputs=name, outputs=output, api_name="greet")

demo.launch()

Screenshot

No response

Logs

No response

System Info

Windows 11
Python 12.6
Gradio 5.6.0

Severity

I can work around it

@JackismyShephard JackismyShephard added the bug Something isn't working label Nov 16, 2024
@abidlabs
Copy link
Member

Hi @JackismyShephard I can't repro this issue locally, I'm pretty sure this is not gradio-related! See similar issues on Stack Overflow, for example: https://stackoverflow.com/questions/68412439/info-could-not-find-files-for-the-given-patterns-error

(If I'm wrong and you can share in a reproducible environment such as a Colab notebook, please share here and we can reopen this issue!)

@abidlabs abidlabs closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2024
@JackismyShephard
Copy link
Contributor Author

@abidlabs The thing is that this logging message only occurs after upgrading to gradio 5.6.0. Running on gradio 4.44.1 I get nothing. That leads me to believe that the issue is at least partially due to some changes you have implemented. Did you try and test this on windows? I see that I am not the only one getting this logging message. For example, see here: #9809

@abidlabs
Copy link
Member

@yvrjsharma could you see if you can reproduce this issue on Windows?

@JackismyShephard
Copy link
Contributor Author

@abidlabs fyi I have tested now on linux (Ubuntu 22.04) and the INFO message indeed does not show up there.

@abidlabs abidlabs changed the title INFO: Could not find files for the given pattern(s). INFO: Could not find files for the given pattern(s) message appears on Windows Nov 18, 2024
@abidlabs
Copy link
Member

Ok reopening while we investigate

@abidlabs abidlabs reopened this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants