TheLastBen / PPS

43 stars 20 forks source link

dependencies not found #39

Open m-wilkosz opened 2 weeks ago

m-wilkosz commented 2 weeks ago

ppsdeps_311.tar.zst has not been found in TheLastBen/dependencies on HuggingFace.


HTTPError Traceback (most recent call last) Cell In[1], line 8 3 force_reinstall= False 5 # Set to true only if you want to install the dependencies again. 6 7 #-------------------- ----> 8 with open('/dev/null', 'w') as devnull:import requests, os, importlib;sc="mainpaperspaceA1111.py" if os.path.exists('/usr/local/lib/python3.9') else "mainpaperspaceA1111_311.py";open('/notebooks/mainpaperspaceA1111.py', 'wb').write(requests.get('https://huggingface.co/datasets/TheLastBen/PPS/raw/main/Scripts/'+sc).content);os.chdir('/notebooks');import mainpaperspaceA1111;importlib.reload(mainpaperspaceA1111);from mainpaperspaceA1111 import *;Deps(force_reinstall)

File /notebooks/mainpaperspaceA1111.py:45, in Deps(force_reinstall) 43 call('wget -q -i https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/Dependencies/aptdeps_311.txt', shell=True) 44 call('dpkg -i *.deb', shell=True, stdout=open('/dev/null', 'w')) ---> 45 depsinst("https://huggingface.co/TheLastBen/dependencies/resolve/main/ppsdeps_311.tar.zst", "/deps/ppsdeps_311.tar.zst") 46 call('tar -C / --zstd -xf ppsdeps_311.tar.zst', shell=True, stdout=open('/dev/null', 'w')) 47 os.chdir('/notebooks')

File /notebooks/mainpaperspaceA1111.py:66, in depsinst(url, dst) 64 file_size = None 65 req = Request(url, headers={"User-Agent": "torch.hub"}) ---> 66 u = urlopen(req) 67 meta = u.info() 68 if hasattr(meta, 'getheaders'):

File /usr/lib/python3.11/urllib/request.py:216, in urlopen(url, data, timeout, cafile, capath, cadefault, context) 214 else: 215 opener = _opener --> 216 return opener.open(url, data, timeout)

File /usr/lib/python3.11/urllib/request.py:525, in OpenerDirector.open(self, fullurl, data, timeout) 523 for processor in self.process_response.get(protocol, []): 524 meth = getattr(processor, meth_name) --> 525 response = meth(req, response) 527 return response

File /usr/lib/python3.11/urllib/request.py:634, in HTTPErrorProcessor.http_response(self, request, response) 631 # According to RFC 2616, "2xx" code indicates that the client's 632 # request was successfully received, understood, and accepted. 633 if not (200 <= code < 300): --> 634 response = self.parent.error( 635 'http', request, response, code, msg, hdrs) 637 return response

File /usr/lib/python3.11/urllib/request.py:563, in OpenerDirector.error(self, proto, args) 561 if http_err: 562 args = (dict, 'default', 'http_error_default') + orig_args --> 563 return self._call_chain(args)

File /usr/lib/python3.11/urllib/request.py:496, in OpenerDirector._call_chain(self, chain, kind, meth_name, args) 494 for handler in handlers: 495 func = getattr(handler, meth_name) --> 496 result = func(args) 497 if result is not None: 498 return result

File /usr/lib/python3.11/urllib/request.py:643, in HTTPDefaultErrorHandler.http_error_default(self, req, fp, code, msg, hdrs) 642 def http_error_default(self, req, fp, code, msg, hdrs): --> 643 raise HTTPError(req.full_url, code, msg, hdrs, fp)

HTTPError: HTTP Error 404: Not Found

Arrozz11 commented 2 weeks ago

I have the same problem.

Dissidias commented 2 weeks ago

+1

yhayano-ponotech commented 2 weeks ago

Same

sixpt commented 2 weeks ago

Same issue here

amit4aws commented 2 weeks ago

@TheLastBen Can we please get some help on this ?

SRagy commented 1 week ago

TheLastBen intentionally broke the configuration. I give a workaround which might be effective for some of you here: https://github.com/TheLastBen/fast-stable-diffusion/issues/2868#issuecomment-2211953469

You can read the rest of the thread for background.

amit4aws commented 1 week ago

Thanks for sharing the workaround but it is erroing out at the exact same place even with your set of files

  7 #--------------------

----> 8 with open('/dev/null', 'w') as devnull:import requests, os, importlib;sc="sdxllorapps.py" if os.path.exists('/usr/local/lib/python3.9') else "sdxllorapps_311.py";open('/notebooks/sdxllorapps.py', 'wb').write(requests.get(' https://huggingface.co/datasets/TheLastBen/PPS/raw/main/Scripts/'+sc).content);os.chdir('/notebooks');import sdxllorapps;importlib.reload(sdxllorapps);from sdxllorapps import *;Deps(force_reinstall)

File /notebooks/sdxllorapps.py:62, in Deps(force_reinstall) 60 call('wget -q -i https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/Dependencies/aptdeps_311.txt', shell=True) 61 call('dpkg -i *.deb', shell=True, stdout=open('/dev/null', 'w')) ---> 62 depsinst(" https://huggingface.co/TheLastBen/dependencies/resolve/main/ppsdeps_311.tar.zst", "/deps/ppsdeps_311.tar.zst") 63 call('tar -C / --zstd -xf ppsdeps_311.tar.zst', shell=True, stdout=open('/dev/null', 'w')) 64 os.chdir('/notebooks')

On Sun, Jul 7, 2024 at 3:59 AM SRagy @.***> wrote:

TheLastBen intentionally broke the configuration. I give a workaround which might be effective for some of you here: TheLastBen/fast-stable-diffusion#2868 (comment) https://github.com/TheLastBen/fast-stable-diffusion/issues/2868#issuecomment-2211953469

You can read the rest of the thread for background.

— Reply to this email directly, view it on GitHub https://github.com/TheLastBen/PPS/issues/39#issuecomment-2212025806, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH2CXLOH4H5O7PM332XIZ5TZLBVWLAVCNFSM6AAAAABKMVDA2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGAZDKOBQGY . You are receiving this because you commented.Message ID: @.***>