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: OSError: [Errno 36] File name too long #1

Open
bts-webber opened this issue May 29, 2024 · 1 comment
Open

Bug: OSError: [Errno 36] File name too long #1

bts-webber opened this issue May 29, 2024 · 1 comment

Comments

@bts-webber
Copy link

Traceback (most recent call last):
File "/home/weibo.gwb/anaconda3/envs/py3.12/lib/python3.12/site-packages/gradio/queueing.py", line 528, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/weibo.gwb/anaconda3/envs/py3.12/lib/python3.12/site-packages/gradio/route_utils.py", line 270, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/weibo.gwb/anaconda3/envs/py3.12/lib/python3.12/site-packages/gradio/blocks.py", line 1918, in process_api
data = await self.postprocess_data(fn_index, result["prediction"], state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/weibo.gwb/anaconda3/envs/py3.12/lib/python3.12/site-packages/gradio/blocks.py", line 1744, in postprocess_data
prediction_value = block.postprocess(prediction_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/weibo.gwb/anaconda3/envs/py3.12/lib/python3.12/site-packages/gradio_agentchatbot/agentchatbot.py", line 199, in postprocess
msg for message in value for msg in self._postprocess_chat_messages(message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/weibo.gwb/anaconda3/envs/py3.12/lib/python3.12/site-packages/gradio_agentchatbot/agentchatbot.py", line 170, in _postprocess_chat_messages
if (filepath := Path(word)).exists() and filepath.is_file():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/weibo.gwb/anaconda3/envs/py3.12/lib/python3.12/pathlib.py", line 860, in exists
self.stat(follow_symlinks=follow_symlinks)
File "/home/weibo.gwb/anaconda3/envs/py3.12/lib/python3.12/pathlib.py", line 840, in stat
return os.stat(self, follow_symlinks=follow_symlinks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 36] File name too long: '"

@freddyaboulton
Copy link
Owner

Hi @bts-webber - can you please share a reproducer? Should be a quick fix though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants