From nobody Wed May 4 23:48:29 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 DB7B11ABCA0B; Wed, 4 May 2022 23:48:41 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 4Kttnj1qQrz4rZs; Wed, 4 May 2022 23:48:41 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pf1-x429.google.com with SMTP id c14so2341258pfn.2; Wed, 04 May 2022 16:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:reply-to:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=7Z2+TiaaqYhf2J/U0pS78atXPVGh2OU9fMjajQDsf+Q=; b=KvcaRhdaLeIPofM1adQt80kMR+Z1pwQ7lemx1iNqDF5kHxq5NQGtFNz6m+HJ0uy9A0 3M2Pw4DUcU9lXYmoWL8rXLXzGeqxVBXvH/v7vffQ/gxHR6ZKGcyuNMohGG5f8uqMzJnl 5CgBgi8KHF2AR2XdokW2JH9A6wnZtYjTPIFJX+3VG1BcGNJYcOlxAlQsVSEVa/gXbUh/ FoKPtvmUCJaCupr7NaVYd/DKX9RTNl9BzMmg84Y6FCcV5d25NPuAqnQogxMXjfjShNYg uF65/NwTj9r/mtjwAwDF3QMz2jLLGMz4Na31+Sd9VoNH6EqaOftYPxIgiSApjwuDVP1q p03A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :reply-to:subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=7Z2+TiaaqYhf2J/U0pS78atXPVGh2OU9fMjajQDsf+Q=; b=t4lmPAJaXjz9J9+YgY1OAHX0EVDHOOi+AkmggHxvIwIZBcQX8LVKkmNX4Rp52gxwWc ypRQZzTHLqy9VHeLmAwt1ZVskHQGjn1OkAxkY/7F6dwSu6fK2f44iolxfoVo6Vjseg/6 FSmuCCxrFn10D70bfxgXsxf3ddUMYS3NlfeEj1Ci+7A73vg8wE35wpNzrJiQsIqIBe6t S2ujs0O4P5auV9g8Xuo7E2k/GM95DUpz67wHvYXGmrQhgrj+X8c5BvO+13ErH7YeU7dW cYm2dJ9oDtdpFxCk/d+81L/wCsFnn+Wwq6Im3NIBR943cm9Me6YGqbgM3QEdVjvxtPWF ewTA== X-Gm-Message-State: AOAM5337jtcfqBLaVk16ie9wz75h9kiIDIdfbj0hlkE32Z8oda3ByZbD jxDNEjybJphK4AAVOjx86iM= X-Google-Smtp-Source: ABdhPJxnO1Ro9QIxL83+y1/9s47qIGegIVUulT/qd4EONOe1+BUbCKokko5PHqEVec0Bca3QzCeRKw== X-Received: by 2002:a63:4:0:b0:3ab:17c6:e0ce with SMTP id 4-20020a630004000000b003ab17c6e0cemr19904177pga.511.1651708113984; Wed, 04 May 2022 16:48:33 -0700 (PDT) Received: from ?IPV6:2403:5807:1b:1:4584:8b0f:7311:73f? (2403-5807-1b-1-4584-8b0f-7311-73f.ip6.aussiebb.net. [2403:5807:1b:1:4584:8b0f:7311:73f]) by smtp.gmail.com with ESMTPSA id gn4-20020a17090ac78400b001d25dfb9d39sm3835404pjb.14.2022.05.04.16.48.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 May 2022 16:48:33 -0700 (PDT) Message-ID: Date: Thu, 5 May 2022 09:48:29 +1000 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Thunderbird/101.0a1 Reply-To: koobs@FreeBSD.org Subject: Re: FreeBSD Port: py38-openpyxl-2.6.4 Content-Language: en-US To: "Alex V. Petrov" Cc: ports@FreeBSD.org, FreeBSD Python Team References: From: Kubilay Kocak In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Kttnj1qQrz4rZs X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=KvcaRhda; dmarc=none; spf=pass (mx1.freebsd.org: domain of koobsfreebsd@gmail.com designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=koobsfreebsd@gmail.com X-Spamd-Result: default: False [-3.20 / 15.00]; HAS_REPLYTO(0.00)[koobs@FreeBSD.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_NEQ_ENVFROM(0.00)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[FreeBSD.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::429:from]; MLMMJ_DEST(0.00)[ports,freebsd-python]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 5/05/2022 3:09 am, Alex V. Petrov wrote: > Very old version in ports. > > I have error with pandas: > ImportError: Pandas requires version '3.0.0' or newer of 'openpyxl' > (version '2.6.4' currently installed). > Alex, Upstream does not declare/register a dependency (required or optional) on openpyxl in setup.py/setup.cfg/etc but tests for it (3.0.0) within their 'compat' module [1] via upstream issue #39603 [2] added in the following commit: https://github.com/pandas-dev/pandas/commit/d5d43e0fa930f9bc96e3dcabf6eeb880c4fc6637 Notably openpyxl is listed within Optional Dependencies, describe as: "If the optional dependency is not installed, pandas will raise an ImportError when the method requiring that dependency is called." This appears to be intentional error/messaging used to communicate to pandas users that the method being used requires an optional dependency, that is currently not available/installed, rather than a port/package bug. A better UX for ports users would be to add OPTIONS that map to the categories of additional functionality, depending on the relevant optional dependencies. Example: - HDF depending on pytables - XLSX Support depending on openpyxl - etc ... [1] https://github.com/pandas-dev/pandas/blob/v1.3.5/pandas/compat/_optional.py#L22 [2] https://github.com/pandas-dev/pandas/issues/39603