From nobody Sat Nov 19 16:41:30 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 4NDzvH6SdZz4hHP0 for ; Sat, 19 Nov 2022 16:41:47 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (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 4NDzvH0k89z3w4W for ; Sat, 19 Nov 2022 16:41:46 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=UpX7+9SG; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::729) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-qk1-x729.google.com with SMTP id d7so5476446qkk.3 for ; Sat, 19 Nov 2022 08:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=t7LuvOE0k/B74Vc96gOrnhzLWLRGbSKK54sIcPY8cmM=; b=UpX7+9SG56aXfWOu6whI0aCIJiqrPeceiXkr5tabxt4WtOIz8qWy4CAvgW62BxVH+M 1GB8DDq961BMsRlCfq/4m0st6cX0dybyCd6fomDeXRr2Rnydo22ky2QqdG1SOTzHKfWf zOYUn93CTPhTeizKlXnMu8l7evpxh/SFsRbypN8w2glvqAeKrvrE6mjZnuj3HToXTtE+ wd9NFvmiX/xWmwfge+kNs+ygbjL9sfKXXpaqTOKv+jsU+NWXQrexSNKO9r6TBmbufCKq ZZZ+M4alAaXO8lkMGPuIs/w8tmXZ0c/xvk4jK3cIkuRuheOXXK5yBkr5vsZKlUcm+YWL 2Zdw== 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=t7LuvOE0k/B74Vc96gOrnhzLWLRGbSKK54sIcPY8cmM=; b=fJvQTxjUNAOSMkUF1Y0mo8kk5VEasd0XdpLZ4w+MBPRz50zD2awPNf3ER8S/PDjrNH oZRvtKJRaZNTELJeQZ6ekgOXhZmzPSISGmMiPkp6EbtB8I/LcqfdBofhLQIj5oZOgo6e XYLXpoIONr84ToEVAbzzIoE8V6knb1KsTU5S7/OBSq9XkZ/hwk4idhIHhbJon3wpAHRz rVZGqfPORnXJHFFmVVQvJiuFV2la39ws4Iw2Ye/lV49ea9HewQ0/2T9sfpHYdVPVs7a5 vFpaH9GuQiEuhm9GQDH8JlQbAf8nnwCntR3/3KoduotuYTUsLCHTsd95yVR3B70VbNAI oUtw== X-Gm-Message-State: ANoB5pku97GslZmdRh8hXxMczUIoxGG/f5ANWr9j0BEYGDsXp19+qM69 hdSmNKpwjvpqPTbQNe/Y+PMHN5I7zyPy2g== X-Google-Smtp-Source: AA0mqf7WQNayF15DEDsXpjzA5SB99lqw1C0v7i0ZdUg1A8Lr/Q41EuSuILD8soRUovtW0iAg4ILi4A== X-Received: by 2002:a05:620a:164e:b0:6ec:7654:63d5 with SMTP id c14-20020a05620a164e00b006ec765463d5mr1631363qko.425.1668876105918; Sat, 19 Nov 2022 08:41:45 -0800 (PST) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by smtp.gmail.com with ESMTPSA id fg22-20020a05622a581600b003a580cd979asm4122333qtb.58.2022.11.19.08.41.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Nov 2022 08:41:45 -0800 (PST) Received: by mail-yb1-f171.google.com with SMTP id g127so9054572ybg.8 for ; Sat, 19 Nov 2022 08:41:44 -0800 (PST) X-Received: by 2002:a25:bcce:0:b0:6e6:7ad7:1836 with SMTP id l14-20020a25bcce000000b006e67ad71836mr223481ybm.402.1668876104557; Sat, 19 Nov 2022 08:41:44 -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:41:30 +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" X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::729:from,209.85.219.171:received]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_COUNT_THREE(0.00)[4]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[cedro.info]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4NDzvH0k89z3w4W X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Sat, Nov 19, 2022 at 5:32 PM Tomek CEDRO wrote: > (venv3.9embedded) pip install torchvision== > ERROR: Could not find a version that satisfies the requirement > torchvision== (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== > > Using `==` 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 :-) If you look at https://download.pytorch.org/whl/cu113 Then you will see: 1. https://download.pytorch.org/whl/torch/ 2. https://download.pytorch.org/whl/torchvision/ ..and none of them contains pre-built binaries for FreeBSD (or any other BSD) just for win linux and mac.. this is standard unfortunately. If the upstream provided at least source releases on pypi they would have been available to download and local build by pip on any OS. Right now you need to clone project repositories, checkout selected version (or stay with master if that works), and build + install from the cloned repo using venv. Please remember to check with `which python3` if you are inside python venv. Otherwise you would use system level python and system level python packages / modules which is not desired to be modified by user. Make sure you are building and installing local packages indise local venv. Good luck and Have fun! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info