From nobody Sat Nov 19 21:08:10 2022 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NF5qN5WMrz4hywb for ; Sat, 19 Nov 2022 21:08:48 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NF5qN3MPpz3CwK for ; Sat, 19 Nov 2022 21:08:48 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x531.google.com with SMTP id x102so11598596ede.0 for ; Sat, 19 Nov 2022 13:08:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Qv/ny4wNdXW+YVj5fnhl/ezKP/G8SOK0bhKb+D+w7QE=; b=a2NTh7+LVr/w6LUdOxy4ia4HRy7bjH3Vm6MAkCrI9Uvrr4bxDRL280+pccxB1ng2Cg RnZKcC6RsQhdeaf0VjZuujThjd+HAaeZnIaaaroAzHP+wpFSmlQAyFtMaEymJ/hv36wi 5fPmCdp3/VaHV5ZfVbI+UPbl6NvavJZc0dgt2OLVmepMMWbKTzNYUtLDd2Wm/dwsoTzq AgauKhNn3FJV6XP8GazGpz03HAn4PKfKHWhzGZlO9n9FT/xtHOlkIXXYs/Hz8dfdUu7j R9gSdSAeSpr+T8018A927Wd+OSn1HMw4uoAtK3gEZfrS0L8Ggs2PJ3ZfcR2gEaDvGcPX keUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Qv/ny4wNdXW+YVj5fnhl/ezKP/G8SOK0bhKb+D+w7QE=; b=xyyZeN1piKMbZHdmza1MNqOC+bmJriYiaSes4SgXZXFEu6sLXJ7B51ASVzsze0zyxL Ao/JzJdfOzwk1YZXDzChiLh5UFjpiAi466NNRq8M4+myIm/d4pBaeoGBuOJ5xfIk1EFG F1G1cySgY+G1tazpX4h6O5YXeIAV1gDPpUhErrZDr9PSIBMWd/DOR9LYveCEBDG8soGv rlzhIEp7OCIZ8EkuXDsMZFbdRIDnFb7tTODFNzHIERNFACotT/F0KD4Qr1iDibG4OiDB RS7Qh7eQUfpuxOJIUaCkHjFDEt1phYhjN7pCnmKhnkQAB9E6j0DCMDAdFxYF3o5bSeBY GyAQ== X-Gm-Message-State: ANoB5ploQEGcUy5W03SNtGQ4tQWqRY1ipUo5bgRZXP9UEM47evbkMDn4 0ExXQl4p4iCugYE8J/hRrFJ41mk+Zt3yDi6/xZOLqlOPgc0= X-Google-Smtp-Source: AA0mqf5Yekf4TV5IgTRy5ynsGPQwXupk4TZxdDQtcxFJtbzSj4Y2AY15ct44XwuNzaTWle+2htMINNkTkxDAVxDnKak= X-Received: by 2002:a05:6402:b1a:b0:469:15eb:71b5 with SMTP id bm26-20020a0564020b1a00b0046915eb71b5mr5938841edb.312.1668892126648; Sat, 19 Nov 2022 13:08:46 -0800 (PST) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Sat, 19 Nov 2022 22:08:10 +0100 Message-ID: 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?= To: Tomek CEDRO Cc: ports@freebsd.org Content-Type: multipart/alternative; boundary="000000000000609ff505edd93aed" X-Rspamd-Queue-Id: 4NF5qN3MPpz3CwK X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --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 "", line 2, in File "", line 34, in File "/tmp/pip-install-yfgsmj5x/pytorch_628b1eae21ac41e48637a8e3262676de/setup.p= y", line 11, in 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 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
I tried to do something= like this :
=
(venv) [marietto@mariett= o ~/Desktop/Files/stable-diffusion-webui]$ python3 -m pip install pytorch
Collecting pytorch
=C2=A0Downloading pytorch-1.0.2.tar.gz (689 bytes)
=C2=A0Preparing metadata (setup.py) ... done
Installing collected packages: pytorch
=C2=A0DEPRECATION: pytorch is being installed using the legacy 'setup= .py install' method, because it doe
s not have a 'pyproje= ct.toml' and the 'wheel' package is not installed. pip 23.1 wil= l enforce this b
ehaviour change. A possible replacement is to enable th= e '--use-pep517' option. Discussion can be fo
und at https://github.com/pypa/pip/issues= /8559
=C2=A0Running setup.py install for pytorch ... error
=C2=A0error: subprocess-exited-with-error<= /span>
=C2=A0=C2=A0
=C2=A0=C3=97 Running setup.py install for pytorc= h= did not run successfully.
=C2=A0=E2=94=82 exit code: 1
=C2=A0=E2=95=B0=E2=94=80> [6 lines of output]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Traceback (most recent call last):
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0File "<string>&= quot;, line 2, in <module>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0File "<pip-setupto= ols-caller>", line 34, in <module>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0File "/tmp/pip-instal= l-yfgsmj5x/pytorch_628b1eae21ac41e48637a8e3262676de/setup.py", line 11= ,
in <module>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0raise Exception(messa= ge)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Exception: You tried to install "= pytorch". The package named for PyTorch is "torch"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[end of output]
=C2=A0=C2=A0
=C2=A0note: 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, n= ot 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:
<= /div>
On Sat, Nov 19, 2022= at 6:06 PM Mario Marietto=C2=A0 wrote:
> 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.

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


--
Mario.
--000000000000609ff505edd93aed--