From nobody Thu May 5 00:51:35 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 A60591ACC2C7; Thu, 5 May 2022 00:51:48 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (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 4KtwBW5dNnz3LxT; Thu, 5 May 2022 00:51:47 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pl1-x635.google.com with SMTP id n8so2993073plh.1; Wed, 04 May 2022 17:51:47 -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=cEYA7WSKv/OEXdFTcpk6ofxEwdMC6OyQdo84MVM9LPU=; b=NerFw0zllhTDrTobEm6zy7JNi7WQNVxk88hRK3f8XfKFGfNOwO2WgxbR42ngRCoVwo mpJ5kcGsJlYAxi6NB/7jgnxKLAkDaFdYYLj7bQy+xJA7czQJ9iRYXl8d9vv8qbK9Ov55 ZjONDhyY0r1gTDUWSu/jsbSNvrRqQbV/+5g+EAtRUMap5kbYhCSkqvEdkq5jRgz6b75N qocks24vhh4JJhI+BIcMdQwD/ioQtsHKCjdpYKs61kFDk+lGkB5CBpZV3iiykAJb9MbP SxdJqTQQA8ODyLUAnnKNam/FHSznirCLi5vha9PWi2zn/Tu0U2xGWzK8/BC7Ckwlrrax 4SFw== 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=cEYA7WSKv/OEXdFTcpk6ofxEwdMC6OyQdo84MVM9LPU=; b=MQz57MeZAWalIbjfpwYe5zj3XNBU8PNQfgnILKWB34dkIwblPr/WN/FfF/HeHEirRy LuTjb3HC/LXo0Qhg0OI8dUCkHyYoIK0Tq4mM1+mmxs+avOR2bVeOxpdlRbEEQ0+QA4j3 bHT3EU3ikWyoJl/2Qeri/NaTealU/1Ut/o+pNE+qTyBoASQyUV6uN6OJLu0kcogczian YZe2GEqd0pT0qlvp7kEIXJqoVY3OTSBLyV3XqcumGvxjBG3ybvJIIUOzbw9nvWHvOmkk 6OYZlpM+2ZVmz2QV6bsJuqqTmbmeiOpIr7wGcQ4biLI+CIP+uKurBEyL2XaU0NGPOumI ee4g== X-Gm-Message-State: AOAM533VvUUwSEUD/N1fIb0yymVsTf9f5wsPdza7JzI1deLQGVEVMxhZ RgBaVaPPeoLbqHvLsDGEufSu3jIaei0= X-Google-Smtp-Source: ABdhPJyOS14BqLfTkqHHMVdE1mmTO3k3xGqmRuURkPdsrhMeZGb/wY2nf51OInMXFCFFOChNNH69tw== X-Received: by 2002:a17:90b:1c01:b0:1dc:2980:983d with SMTP id oc1-20020a17090b1c0100b001dc2980983dmr2843131pjb.0.1651711899949; Wed, 04 May 2022 17:51:39 -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 m8-20020a1709026bc800b0015e8d4eb20asm115534plt.84.2022.05.04.17.51.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 May 2022 17:51:39 -0700 (PDT) Message-ID: <6839d47a-3126-06b9-9cea-ff25ba62ad7f@FreeBSD.org> Date: Thu, 5 May 2022 10:51:35 +1000 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 (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: <3881255b-ca3b-3624-ef98-d31d4f7749c3@gmail.com> From: Kubilay Kocak In-Reply-To: <3881255b-ca3b-3624-ef98-d31d4f7749c3@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4KtwBW5dNnz3LxT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=NerFw0zl; dmarc=none; spf=pass (mx1.freebsd.org: domain of koobsfreebsd@gmail.com designates 2607:f8b0:4864:20::635 as permitted sender) smtp.mailfrom=koobsfreebsd@gmail.com X-Spamd-Result: default: False [-1.23 / 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:+]; 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_SPAM_SHORT(0.97)[0.969]; 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::635:from]; MLMMJ_DEST(0.00)[ports,freebsd-python]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 5/05/2022 9:59 am, Alex V. Petrov wrote: > 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. > > This is a by-product of upstream bumping the required version to 3.0.0, and doesn't change/affect the above analysis. Of course, the openpyxl port should be updated, but this is orthogonal to the error message being intentional, and not a ports bug. Please feel free to create a Bugzilla issue requesting an update