From nobody Sat Nov 19 16:32:54 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 4NDzjM23FCz4hGN0 for ; Sat, 19 Nov 2022 16:33:11 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (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 4NDzjL51MHz3tc0 for ; Sat, 19 Nov 2022 16:33:10 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-qv1-xf34.google.com with SMTP id h10so5378246qvq.7 for ; Sat, 19 Nov 2022 08:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Gf3ma5s0qS67zn87cHI4eA+x/lYGGsYZjzWkAqcklEo=; b=jA1ImYFTvymXhM9Y+jDhpM0Hrrvpw10Viuz3ZE/lLVkCYCjTv0GcEAWC3Omju9bNiV fvXRFRe5uwoIGEK5Lm1AplC+8ibI95CWHRJw6nVw/ANFiBX2ojy2ysNdxz83lPxTgy/D LELEn7LJXLmDHW0akCCVNBLD1CyiiwTSGYn7Dr9EcJX67mV8IR0uVhiUZ22U7DBC5Nrx 2F2TTXhSqHAAxitSiE6bE2yAY3D/su7XTLe5yJ2KmIp2NjGZAYhl/CJJVA6mz9ClL8mY vBYmvgU0A90QlXqoOG5yte7uYZDmUOmeW4Pm1eeKS0sB/tBkkfZia4RzDPN9/Bsweexd GbOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding: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=Gf3ma5s0qS67zn87cHI4eA+x/lYGGsYZjzWkAqcklEo=; b=vIFmHgfqK46zaOmENc4+OhTA+o3OFZBdUcKcGfW02KbtmvIh+kDUDwBa+TttB74FyT dTZpjKmsddIOaTRO5buIvjxTVPEhDF48qKWgQ/qxGdAqCPYdibc81088o2j0Odn5BLbJ CexXPIdeCotIbvBSKwFo9t5F174S4cwLspIjWZGCnX7iLnAKEwS7SC8hqKSHNLgQQhCm UWOdNS69ffm+UFxB8goArDIod/TL3tczYct1m97AV8bi4oPPDLXat/P/5nPQxDtJ5nOV nwa3ccfO36caAQfRSnt84fkLV1wZWIA+BMNCyF2zBttxx8780CD3SbHmlODFLjtgdH4q 4OmQ== X-Gm-Message-State: ANoB5plVjD35j7CH50ED2uySus6pmK0UE+sF3RQGPd3sRF4L8fmAAdgR mJX0rmdtemZnRLrTsIAUZZgURojcAdz33Q== X-Google-Smtp-Source: AA0mqf6EVh+dIY5x5nQ7ofxXfgd4fpV5XzEl1RenWqlJ/P8/T1VozhTwo4bLsNrdhdyqgH89njUquA== X-Received: by 2002:ad4:4f2e:0:b0:4af:b373:3d40 with SMTP id fc14-20020ad44f2e000000b004afb3733d40mr11246790qvb.47.1668875589852; Sat, 19 Nov 2022 08:33:09 -0800 (PST) Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com. [209.85.219.170]) by smtp.gmail.com with ESMTPSA id u12-20020a05620a084c00b006fa4cefccd6sm4609610qku.13.2022.11.19.08.33.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Nov 2022 08:33:08 -0800 (PST) Received: by mail-yb1-f170.google.com with SMTP id i131so9039177ybc.9 for ; Sat, 19 Nov 2022 08:33:08 -0800 (PST) X-Received: by 2002:a25:37d6:0:b0:6c9:835b:226d with SMTP id e205-20020a2537d6000000b006c9835b226dmr920562yba.437.1668875587745; Sat, 19 Nov 2022 08:33:07 -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: Tomek CEDRO Date: Sat, 19 Nov 2022 17:32:54 +0100 X-Gmail-Original-Message-ID: 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: Mario Marietto Cc: ports@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4NDzjL51MHz3tc0 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Sat, Nov 19, 2022 at 4:18 PM Mario Marietto wrote: > Hello to everyone. > I=E2=80=99m trying to clone and install the =E2=80=9CStable Diffusion web= UI=E2=80=9D on FreeBSD,following this mini tutorial : > [marietto@marietto ~/Desktop/Files]$ git clone https://github.com/AUTOMAT= IC1111/stable-diffusion-webui > [marietto@marietto ~/Desktop/Files]$ cd stable-diffusion-webui > [marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ sudo pkg inst= all py39-pytorchvideo For me that would install version 0.1.5 of the package: octagon% pkg search py39-pytorch py39-pytorchvideo-0.1.5 Video understanding deep learning library > [marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ mkdir venv > [marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ python3 -m ve= nv venv > [marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ . venv/bin/ac= tivate You dont have to create a directory, it will be created by venv :-) Also proper execution of venv would be: ./venv/bin/activate Then you should see a shell prompt prefix `(venv) $` and you can make sure if you are in the venv by running `which python3` if that shows your venv then all if fine. > (venv) [marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ python= 3 -m pip install torch torchvision=3D=3D0.13.1+cu113 --extra-index-url http= s://download.pytorch.org/whl/cu113 > > Looking in indexes: https://pypi.org/simple,https:/download.pytorch.org/w= hl/cu113 > > ERROR: Could not find a version that satisfies the requirement torch (fro= m versions: none) > > ERROR: No matching distribution found for torch In my case: (venv3.9embedded) pip install torch=3D=3D ERROR: Could not find a version that satisfies the requirement torch=3D=3D (from versions: none) ERROR: No matching distribution found for torch=3D=3D (venv3.9embedded) pip install torchvision=3D=3D ERROR: Could not find a version that satisfies the requirement torchvision=3D=3D (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3) ERROR: No matching distribution found for torchvision=3D=3D Using `=3D=3D` as the package suffix to the package name will list all available versions. It seems that package for torch is not avilable for pip, while there are torchvision packages available in versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3 (not the 0.13.1+cu113 that you need). Because both torch and torchvision are not available for download (and in version that you need) I would clone the source code repo and build it + install from that repo (being inside venv of course). Please note that most folks unfortunately does not provide precompiled binary modules for FreeBSD, so you will have to build them from the sources (it will be done by pip when no binary package is available). Also some packages may not build correctly out of the box on FreeBSD and you will have to clone that specific repo, find a fix, then provide a fix to the upstream. This also may be a good time to mention public pip availability of the packages to the upstream :-) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info