#63278 closed defect (fixed)
mongodb @5.0.0: The 'charset_normalizer~=2.0.0' distribution was not found and is required by requests
Reported by: | jwoehr (Jack J. Woehr) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | harens (Haren S), stromnov (Andrey Stromnov), hapaguy (Brian Kurt Fujikawa) | |
Port: | mongodb, py-requests |
Description
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mongodb/mongodb/work/mongodb-src-r5.0.0" && /opt/local/bin/python3.9 buildscripts/scons.py -j12 install-core CC="/usr/bin/clang" CPPPATH="/opt/local/include" CXX="/usr/bin/clang++" DESTDIR="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mongodb/mongodb/work/destroot" LIBPATH="/opt/local/lib" PREFIX="/opt/local" --disable-warnings-as-errors --enable-http-client=on --install-action=hardlink --libc++ --opt=size --release --ssl=on --use-sasl-client --use-system-pcre --use-system-snappy --use-system-stemmer --use-system-yaml --use-system-zlib --use-system-zstd --wiredtiger=on --use-system-mongo-c=off VARIANT_DIR=MP TARGET_ARCH=x86_64 CCFLAGS=" -arch x86_64" CXXFLAGS="-stdlib=libc++ -arch x86_64" LINKFLAGS="-Wl,-headerpad_max_install_names -arch x86_64" :info:build Exit code: 1
Attachments (1)
Change History (8)
Changed 3 years ago by jwoehr (Jack J. Woehr)
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | harens stromnov added |
---|---|
Owner: | set to ryandesign |
Port: | mongodb py-requests added; mongodb-5.0.0_0.darwin_20.x86_64 removed |
Status: | new → assigned |
Summary: | mongodb @5.0.0_0 build error on macOS Big Sur 11.5 → mongodb @5.0.0: The 'charset_normalizer~=2.0.0' distribution was not found and is required by requests |
We had successful builds of mongodb 5.0.0 on macOS 10.13 and later on July 18 on our buildbot system so either something has changed since then or something is different about your system.
Your log says the error is:
:info:build Checking required python packages... :info:build Requirements list: :info:build Cheetah3 :info:build PyYAML>=3.0.0 :info:build psutil :info:build pymongo!=3.6.0,>=3.9 :info:build pypiwin32==223; sys_platform == "win32" and python_version > "3" :info:build pywin32==225; sys_platform == "win32" and python_version > "3" :info:build regex :info:build requests>=2.0.0 :info:build requirements_parser :info:build setuptools :info:build The 'charset_normalizer~=2.0.0' distribution was not found and is required by requests
py-requests was updated to 2.26.0 on July 21. Maybe this version has new dependencies which were not added to the port? Haren, Andrew, what do you think?
comment:2 Changed 3 years ago by jmroot (Joshua Root)
I mentioned this in a comment on [2f8ef68b43c4d4308a4733f118c0d1f54ac1cdc4/macports-ports]. This will also fail for at least any module that uses pkg_resources
for entry points and also uses requests
, since its requires.txt
lists charset_normalizer~=2.0.0
. So we either need a py-charset_normalizer
port that can be added as a dependency, or py-requests
could be patched to only use chardet
as in previous versions.
comment:3 follow-up: 6 Changed 3 years ago by harens (Haren S)
I was going to start fixing this, but I noticed that Andrew's already done it: [3222813f47bfee2b3566552ece99b92c9dd37c5d/macports-ports]
Maybe this version has new dependencies which were not added to the port?
That one's on me. I didn't realise that they had switched to charset_normalizer since requests still has backwards compatability for chardet during runtime. However, I guess this isn't always true during the build.
comment:4 Changed 3 years ago by hapaguy (Brian Kurt Fujikawa)
Cc: | hapaguy added |
---|
comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks.
comment:6 Changed 3 years ago by jmroot (Joshua Root)
Replying to harens:
I didn't realise that they had switched to charset_normalizer since requests still has backwards compatability for chardet during runtime. However, I guess this isn't always true during the build.
The code itself appears to fall back to chardet
correctly, but anything that parses requires.txt
will see the charset_normalizer
dependency declared there.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mongodb/mongodb/main.log