OSError: [Errno 36] File name too long

#11
by FloydianSound - opened

image.png

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ /home/user/app/app.py:74 in โ”‚
โ”‚ โ”‚
โ”‚ 71 โ”‚
โ”‚ 72 css = """.main-div div{display:inline-flex;align-items:center;gap:.8re โ”‚
โ”‚ 73 """ โ”‚
โ”‚ โฑ 74 with gr.Blocks(css=css) as demo: โ”‚
โ”‚ 75 โ”‚ gr.HTML( โ”‚
โ”‚ 76 โ”‚ โ”‚ f""" โ”‚
โ”‚ 77 โ”‚ โ”‚ โ”‚
โ”‚
โ”‚ โ”‚
โ”‚ /home/user/.local/lib/python3.8/site-packages/gradio/blocks.py:473 in โ”‚
โ”‚ init โ”‚
โ”‚ โ”‚
โ”‚ 470 โ”‚ โ”‚ self.enable_queue = None โ”‚
โ”‚ 471 โ”‚ โ”‚ self.max_threads = 40 โ”‚
โ”‚ 472 โ”‚ โ”‚ self.show_error = True โ”‚
โ”‚ โฑ 473 โ”‚ โ”‚ if css is not None and Path(css).exists(): โ”‚
โ”‚ 474 โ”‚ โ”‚ โ”‚ with open(css) as css_file: โ”‚
โ”‚ 475 โ”‚ โ”‚ โ”‚ โ”‚ self.css = css_file.read() โ”‚
โ”‚ 476 โ”‚ โ”‚ else: โ”‚
โ”‚ โ”‚
โ”‚ /usr/local/lib/python3.8/pathlib.py:1400 in exists โ”‚
โ”‚ โ”‚
โ”‚ 1397 โ”‚ โ”‚ Whether this path exists. โ”‚
โ”‚ 1398 โ”‚ โ”‚ """ โ”‚
โ”‚ 1399 โ”‚ โ”‚ try: โ”‚
โ”‚ โฑ 1400 โ”‚ โ”‚ โ”‚ self.stat() โ”‚
โ”‚ 1401 โ”‚ โ”‚ except OSError as e: โ”‚
โ”‚ 1402 โ”‚ โ”‚ โ”‚ if not _ignore_error(e): โ”‚
โ”‚ 1403 โ”‚ โ”‚ โ”‚ โ”‚ raise โ”‚
โ”‚ โ”‚
โ”‚ /usr/local/lib/python3.8/pathlib.py:1197 in stat โ”‚
โ”‚ โ”‚
โ”‚ 1194 โ”‚ โ”‚ Return the result of the stat() system call on this path, lik โ”‚
โ”‚ 1195 โ”‚ โ”‚ os.stat() does. โ”‚
โ”‚ 1196 โ”‚ โ”‚ """ โ”‚
โ”‚ โฑ 1197 โ”‚ โ”‚ return self._accessor.stat(self) โ”‚
โ”‚ 1198 โ”‚ โ”‚
โ”‚ 1199 โ”‚ def owner(self): โ”‚
โ”‚ 1200 โ”‚ โ”‚ """ โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
OSError: [Errno 36] File name too long: '.main-div
div{display:inline-flex;align-items:center;gap:.8rem;font-size:1.75rem}.main-div
div h1{font-weight:900;margin-bottom:7px}.main-div
p{margin-bottom:10px;font-size:94%}a{text-decoration:underline}.tabs{margin-top:
0;margin-bottom:0}#gallery{min-height:20rem}\n'

FloydianSound changed discussion title from OSError : FileName too Long to OSError 36 : FileName too Long
FloydianSound changed discussion title from OSError 36 : FileName too Long to OSError: [Errno 36] File name too long

Hi, it's a gradio bug, sorry.
To fix it, go to Files and versions tab, open README.md and change sdk_version to sdk_version: 3.16.1b1

thanks, did just that and trying to build again. (it hanged)
now trying to redo the whole space creator process

edit: i forgot that i need to convert the model to diffusers beforehand, so that's why my other models didn't show up... lol)

alright, after modifying the SDK version to what you suggested, things works

will there be an update for a streamlined process from your end, or is it something that HF / Gradio needs to do themselves ?

It has been patched in the latest gradio update, so the app should work without a problem now.

anzorq changed discussion status to closed

Sign up or log in to comment