Date: Sat, 19 Nov 2022 22:08:10 +0100 From: Mario Marietto <marietto2008@gmail.com> To: Tomek CEDRO <tomek@cedro.info> Cc: ports@freebsd.org Subject: =?UTF-8?Q?Re=3A_The_installation_of_=E2=80=9CStable_Diffusion_web_UI?= =?UTF-8?Q?=E2=80=9D_natively_on_FreeBSD_fails_because_can=E2=80=99t_install_torch_?= =?UTF-8?Q?and_torchvision?= Message-ID: <CA%2B1FSijNZ=_9ODtCOs_P-2No=hMbTZtRAekLfCgHmRPxpTmxRg@mail.gmail.com> In-Reply-To: <CAFYkXjmXCwaV8_6j2n82Pc7AH1DFVFO4ZDU4hpn%2B_=EP479pFA@mail.gmail.com> References: <CA%2B1FSihJdXHeHL1pUD3SB6vujhG0M1-9wAqeFwjCS8r4syu7mQ@mail.gmail.com> <CA%2B1FSijaF-W8PJo9GtK0S-4BFtSBhD6FjbPu-ZJLBwQ%2Bcymoew@mail.gmail.com> <CAFYkXjn2deM--tyU9Mpi-%2BiM0ALyePhEDGt9LRY0QW8gJ-3Smg@mail.gmail.com> <CAFYkXjmzrLr2x-DKx%2BY88191fOVQ0EL6rtHiSGP4QMV4VRe=sA@mail.gmail.com> <CAFYkXjm1NayM7EMps8GiqdY5a_qCf=oFcXw9GwVOGJ6rvcG=og@mail.gmail.com> <CA%2B1FSijECrDqN%2BYTat0nzr3FBkCfL6ctv8_xkhqoxtQh9rjeFQ@mail.gmail.com> <CAFYkXjmXCwaV8_6j2n82Pc7AH1DFVFO4ZDU4hpn%2B_=EP479pFA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000609ff505edd93aed Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I tried to do something like this : (venv) [marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ python3 -m pip install pytorch Collecting pytorch Downloading pytorch-1.0.2.tar.gz (689 bytes) Preparing metadata (setup.py) ... done Installing collected packages: pytorch DEPRECATION: pytorch is being installed using the legacy 'setup.py install' method, because it doe s not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this b ehaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be fo und at https://github.com/pypa/pip/issues/8559 Running setup.py install for pytorch ... error error: subprocess-exited-with-error =C3=97 Running setup.py install for pytorch did not run successfully. =E2=94=82 exit code: 1 =E2=95=B0=E2=94=80> [6 lines of output] Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-yfgsmj5x/pytorch_628b1eae21ac41e48637a8e3262676de/setup.p= y", line 11, in <module> raise Exception(message) Exception: You tried to install "pytorch". The package named for PyTorch is "torch" [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure =C3=97 Encountered error while trying to install package. =E2=95=B0=E2=94=80> pytorch note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. Il giorno sab 19 nov 2022 alle ore 18:49 Tomek CEDRO <tomek@cedro.info> ha scritto: > On Sat, Nov 19, 2022 at 6:06 PM Mario Marietto wrote: > > Thanks. Yours seem to be very detailed instructions. Unfortunately I'm > not so experienced to understand what to do. Thanks anyway for your > kindness. > > No worries we all learn all the time.. just take some time and it will > eventually work :-) > > You may want to clone the PYTORCH repo and try to build on FreeBSD: > > https://github.com/pytorch/pytorch > > This is very popular AI framework, but I did not use it yet, so I have > no experience sorry.. maybe someone on the list would have some > experience in PYTORCH on FreeBSD and/or would be interested in > creating PyTORCH and PyTORCHVISION ports? > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > --=20 Mario. --000000000000609ff505edd93aed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><span style=3D"font-family:monospace"><span style=3D"= color:rgb(0,0,0);background-color:rgb(255,255,255)">I tried to do something= like this :</span></span></div><div><span style=3D"font-family:monospace">= <span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></sp= an></span></div><div><span style=3D"font-family:monospace"><span style=3D"c= olor:rgb(0,0,0);background-color:rgb(255,255,255)">(venv) [marietto@mariett= o ~/Desktop/Files/stable-diffusion-webui]$ python3 -m pip install pytorch </span></span></div><div><span style=3D"font-family:monospace"></span></div= ><span style=3D"font-family:monospace">Collecting pytorch <br> =C2=A0Downloading pytorch-1.0.2.tar.gz (689 bytes) <br> =C2=A0Preparing metadata (setup.py) ... done <br>Installing collected packages: pytorch <br><span style=3D"color:rgb(178,104,24);background-color:rgb(255,255,255)"= > =C2=A0DEPRECATION: pytorch is being installed using the legacy 'setup= .py install' method, because it doe</span><br>s not have a 'pyproje= ct.toml' and the 'wheel' package is not installed. pip 23.1 wil= l enforce this b<br>ehaviour change. A possible replacement is to enable th= e '--use-pep517' option. Discussion can be fo<br>und at <a href=3D"= https://github.com/pypa/pip/issues/8559">https://github.com/pypa/pip/issues= /8559</a><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"= > </span><br> =C2=A0Running setup.py install for pytorch ... error <br> =C2=A0<span style=3D"font-weight:bold;color:rgb(255,84,84);background-= color:rgb(255,255,255)">error</span><span style=3D"color:rgb(0,0,0);backgro= und-color:rgb(255,255,255)">: </span><span style=3D"font-weight:bold;color:= rgb(0,0,0);background-color:rgb(255,255,255)">subprocess-exited-with-error<= /span><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><br> =C2=A0=C2=A0<br> =C2=A0<span style=3D"color:rgb(178,24,24);back= ground-color:rgb(255,255,255)">=C3=97</span><span style=3D"color:rgb(0,0,0)= ;background-color:rgb(255,255,255)"> </span><span style=3D"color:rgb(24,178= ,24);background-color:rgb(255,255,255)">Running setup.py install for pytorc= h</span><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">= did not run successfully. </span><br> =C2=A0<span style=3D"color:rgb(178,24,24);background-color:rgb(= 255,255,255)">=E2=94=82</span><span style=3D"color:rgb(0,0,0);background-co= lor:rgb(255,255,255)"> exit code: </span><span style=3D"font-weight:bold;co= lor:rgb(84,255,255);background-color:rgb(255,255,255)">1</span><span style= =3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><br> =C2=A0<span style=3D"color:rgb(178,24,24);background-color:rgb(= 255,255,255)">=E2=95=B0=E2=94=80></span><span style=3D"color:rgb(0,0,0);= background-color:rgb(255,255,255)"> </span><span style=3D"color:rgb(178,24,= 24);background-color:rgb(255,255,255)">[6 lines of output]</span><span styl= e=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><br> =C2=A0<span style=3D"color:rgb(178,24,24);background-color:rgb(= 255,255,255)">=C2=A0=C2=A0=C2=A0</span><span style=3D"color:rgb(0,0,0);back= ground-color:rgb(255,255,255)">=C2=A0Traceback (most recent call last): </span><br> =C2=A0<span style=3D"color:rgb(178,24,24);background-color:rgb(= 255,255,255)">=C2=A0=C2=A0=C2=A0</span><span style=3D"color:rgb(0,0,0);back= ground-color:rgb(255,255,255)">=C2=A0=C2=A0=C2=A0File "<string>&= quot;, line 2, in <module> </span><br> =C2=A0<span style=3D"color:rgb(178,24,24);background-color:rgb(= 255,255,255)">=C2=A0=C2=A0=C2=A0</span><span style=3D"color:rgb(0,0,0);back= ground-color:rgb(255,255,255)">=C2=A0=C2=A0=C2=A0File "<pip-setupto= ols-caller>", line 34, in <module> </span><br> =C2=A0<span style=3D"color:rgb(178,24,24);background-color:rgb(= 255,255,255)">=C2=A0=C2=A0=C2=A0</span><span style=3D"color:rgb(0,0,0);back= ground-color:rgb(255,255,255)">=C2=A0=C2=A0=C2=A0File "/tmp/pip-instal= l-yfgsmj5x/pytorch_628b1eae21ac41e48637a8e3262676de/setup.py", line 11= ,</span><br> in <module> <br> =C2=A0<span style=3D"color:rgb(178,24,24);background-color:rgb(255,255= ,255)">=C2=A0=C2=A0=C2=A0</span><span style=3D"color:rgb(0,0,0);background-= color:rgb(255,255,255)">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0raise Exception(messa= ge) </span><br> =C2=A0<span style=3D"color:rgb(178,24,24);background-color:rgb(= 255,255,255)">=C2=A0=C2=A0=C2=A0</span><span style=3D"color:rgb(0,0,0);back= ground-color:rgb(255,255,255)">=C2=A0Exception: You tried to install "= pytorch". The package named for PyTorch is "torch" </span><br> =C2=A0<span style=3D"color:rgb(178,24,24);background-color:rgb(= 255,255,255)">=C2=A0=C2=A0=C2=A0</span><span style=3D"color:rgb(0,0,0);back= ground-color:rgb(255,255,255)">=C2=A0</span><span style=3D"color:rgb(178,24= ,24);background-color:rgb(255,255,255)">[end of output]</span><span style= =3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><br> =C2=A0=C2=A0<br> =C2=A0<span style=3D"font-weight:bold;color:rg= b(255,84,255);background-color:rgb(255,255,255)">note</span><span style=3D"= color:rgb(0,0,0);background-color:rgb(255,255,255)">: This error originates= from a subprocess, and is likely not a problem with pip. </span><br><span style=3D"font-weight:bold;color:rgb(255,84,84);background-= color:rgb(255,255,255)">error</span><span style=3D"color:rgb(0,0,0);backgro= und-color:rgb(255,255,255)">: </span><span style=3D"font-weight:bold;color:= rgb(0,0,0);background-color:rgb(255,255,255)">legacy-install-failure</span>= <span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><br> <br><span style=3D"color:rgb(178,24,24);background-color:rgb(255,255,255)">= =C3=97</span><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,2= 55)"> Encountered error while trying to install package. </span><br><span style=3D"color:rgb(178,24,24);background-color:rgb(255,255= ,255)">=E2=95=B0=E2=94=80></span><span style=3D"color:rgb(0,0,0);backgro= und-color:rgb(255,255,255)"> pytorch </span><br> <br><span style=3D"font-weight:bold;color:rgb(255,84,255);background-color:= rgb(255,255,255)">note</span><span style=3D"color:rgb(0,0,0);background-col= or:rgb(255,255,255)">: This is an issue with the package mentioned above, n= ot pip. </span><br><span style=3D"font-weight:bold;color:rgb(84,255,255);background= -color:rgb(255,255,255)">hint</span><span style=3D"color:rgb(0,0,0);backgro= und-color:rgb(255,255,255)">: See above for output from the failure.</span>= <br> <br><br></span></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class= =3D"gmail_attr">Il giorno sab 19 nov 2022 alle ore 18:49 Tomek CEDRO <<a= href=3D"mailto:tomek@cedro.info">tomek@cedro.info</a>> ha scritto:<br><= /div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo= rder-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Nov 19, 2022= at 6:06 PM Mario Marietto=C2=A0 wrote:<br> > Thanks. Yours seem to be very detailed instructions. Unfortunately I&#= 39;m not so experienced to understand what to do. Thanks anyway for your ki= ndness.<br> <br> No worries we all learn all the time.. just take some time and it will<br> eventually work :-)<br> <br> You may want to clone the PYTORCH repo and try to build on FreeBSD:<br> <br> <a href=3D"https://github.com/pytorch/pytorch" rel=3D"noreferrer" target=3D= "_blank">https://github.com/pytorch/pytorch</a><br> <br> This is very popular AI framework, but I did not use it yet, so I have<br> no experience sorry.. maybe someone on the list would have some<br> experience in PYTORCH on FreeBSD and/or would be interested in<br> creating PyTORCH and PyTORCHVISION ports?<br> <br> -- <br> CeDeROM, SQ7MHZ, <a href=3D"http://www.tomek.cedro.info" rel=3D"noreferrer"= target=3D"_blank">http://www.tomek.cedro.info</a><br> </blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g= mail_signature">Mario.<br></div> --000000000000609ff505edd93aed--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSijNZ=_9ODtCOs_P-2No=hMbTZtRAekLfCgHmRPxpTmxRg>