From nobody Wed May 4 23:59:29 2022 X-Original-To: freebsd-python@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 3D1741AC01B4; Wed, 4 May 2022 23:59:33 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (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 4Ktv2D3vG3z4vBn; Wed, 4 May 2022 23:59:32 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: by mail-lf1-x12a.google.com with SMTP id h29so4945988lfj.2; Wed, 04 May 2022 16:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=RAuHX+oF3jVeqkUyRbRFc7dV+64WJVK4qGgJJGj45FE=; b=J+qIvez0BgFWX56E8rAlVMVGWZ1+Z3onzEFbduQyGKkFX2OenJtgkWnomXwUow+lf0 2l/2QWY0Z4U1B2R0GV+ZeOezr2t8pHjrkDA98v+CjQoCxm23lPOo7P2PmU1vDSTKYI5e qS4ZVXHc/gh+GVPFKgK9WxUpadsFRcwFUGWo77ymILfRvov+FQI8M+OuqqgLJO8iXD1x 03oxI3LWT8IYgORJFYtHqMEfmalaahkRFzJCT6PB4YNDkpZNHiAZY4EAKSF3Z0vkgUPQ gUKE5Yl1rwPSsMwHGdO9F2ofqGmUhDP/erJD3Jy0E4LRYGtyfOzrTFiWeh+9hcDvRmM7 fOog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=RAuHX+oF3jVeqkUyRbRFc7dV+64WJVK4qGgJJGj45FE=; b=CmhKLuBun41qCN4iA4BCUepEDyJIypOuyHeoI3+5c23kRMQ4iUbOjU0nqBHir5KKoo 4nPGekGvzwbWUGFOadRGDrt/sZI/NLR/+0W7MYPyEp/Jxd6dMpD3lbnuPaYpJxI/inZL eDkhCcV+wThjzBskKYsbNT/QdXn1oHi4Kq0rqLm0TTMj0C03m2sGNrpecHzLRCEZQoQ8 A7h8SDW+fooh61vX9aDZVAaNO5WtBQ4SHbGd8A7VqJLY7pyUiGOz2PUjicIMOdJ/Y45P mk0P2XqIKVzTOmdL/d4vFR3Yj81EmOKK1B4xXxZa2BTLBIE3dwWPy/sk4s5Pmjk4LjpR hsaQ== X-Gm-Message-State: AOAM531UJywg58IlAPSXN2pbTlERsQm2irFsI0UIPYyW7UEl/VtNK7q3 wymw2RZ0Y/Ubv2eEQpZW5NDQPaEplkk= X-Google-Smtp-Source: ABdhPJym6yVdirpuCTRU2azu1NCFMIF57+XbHLj3cqfrK5mlraFdmKKGe1aN0o2PbNry0HL/I9Htlg== X-Received: by 2002:a05:6512:2208:b0:473:9d19:2688 with SMTP id h8-20020a056512220800b004739d192688mr10917553lfu.561.1651708770834; Wed, 04 May 2022 16:59:30 -0700 (PDT) Received: from [10.0.0.2] (stone.g-service.ru. [84.22.141.217]) by smtp.googlemail.com with ESMTPSA id o17-20020a056512231100b0047255d21115sm8636lfu.68.2022.05.04.16.59.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 May 2022 16:59:30 -0700 (PDT) Message-ID: <3881255b-ca3b-3624-ef98-d31d4f7749c3@gmail.com> Date: Thu, 5 May 2022 06:59:29 +0700 List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: FreeBSD Port: py38-openpyxl-2.6.4 Content-Language: en-US To: koobs@FreeBSD.org Cc: ports@FreeBSD.org, FreeBSD Python Team References: From: "Alex V. Petrov" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Ktv2D3vG3z4vBn X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=J+qIvez0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of alexvpetrov@gmail.com designates 2a00:1450:4864:20::12a as permitted sender) smtp.mailfrom=alexvpetrov@gmail.com X-Spamd-Result: default: False [-2.91 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.09)[0.092]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12a:from]; MLMMJ_DEST(0.00)[ports,freebsd-python]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N 05.05.2022 06:48, Kubilay Kocak пишет: > 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 Before march, pandas perfectly worked with "xlsx" files. -- ----- Alex.