Closed mamunabcoder closed 2 years ago
It looks like something is wrong with your Python installation. It tries to load msvcrt which is Microsoft Windows C runtime library. Try reinstalling it and then run the installation script again.
I've looked at subprocess.py. It really tries to import msvcrt
first and in case of failure tries import _posixsubprocess
. Your Python cannot do this import. So after you reinstall Python, just verify in the python console that import _posixsubprocess
works.
process.py.
My M1 Mac pc python version is Python 3.10.2
I guess the problem is not in the version, the problem is in improper installation. import _posixsubprocess
must not cause the error.
I guess the problem is not in the version, the problem is in improper installation.
import _posixsubprocess
must not cause the error.
Do you have idea to fix this issues?, it's not the error of re-installation process of python
it's not the error of re-installation process of python
I don't understand you. What do you mean?
I can only repeat what I've already said: Reinstall Python!
E.g.:
1) uninstall your installation at /opt/local/Library/Frameworks/Python.framework/Versions/3.10,
2) download python package from https://www.python.org/,
3) install it
4) run python console and check that import _posixsubprocess
doesn't cause an error.
Found another errors:
scripts/build.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 105M 100 105M 0 0 243k 0 0:07:24 0:07:24 --:--:-- 596k extracting boost_1_78_0.tar.bz2 ... ~/RnD/boost-iosx/boost ~/RnD/boost-iosx Building B2 engine..
Apple clang version 13.0.0 (clang-1300.0.29.3) Target: arm64-apple-darwin21.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang++ -x c++ -std=c++11 -O3 -s -DNDEBUG builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp execcmd.cpp execnt.cpp execunix.cpp filesys.cpp filent.cpp fileunix.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam_strings.cpp jam.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathnt.cpp pathsys.cpp pathunix.cpp regexp.cpp rules.cpp scan.cpp search.cpp startup.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.cpp -o b2 ld: warning: option -s is obsolete and being ignored cp b2 bjam tools/build/src/engine/b2 Detecting Python version... 3.10 Detecting Python root... /opt/local/Library/Frameworks/Python.framework/Versions/3.10 Unicode/ICU support for Boost.Regex?... /opt/local Generating B2 configuration in project-config.jam for clang...
Bootstrapping is done. To build, run:
./b2
To generate header files, run:
./b2 headers
The configuration generated uses clang to build by default. If that is unintended either use the --with-toolset option or adjust configuration, by editing 'project-config.jam'.
Further information:
Command line help: ./b2 --help
Getting started guide: http://www.boost.org/more/getting_started/unix-variants.html
B2 documentation: http://www.boost.org/build/
~/RnD/boost-iosx ~/RnD/boost-iosx/scripts ~/RnD/boost-iosx Preparing
Analyzing dependencies
Inspecting targets to integrate
Using ARCHS
setting to build architectures of target Pods-ICUdep
: (``)
Resolving dependencies of Podfile
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local
because checking is only performed in repo update
CDN: trunk Relative path: all_pods_versions_b_4_6.txt exists! Returning local
because checking is only performed in repo update
CDN: trunk Relative path:
Specs/b/4/6/icu4c-iosx/70.1.1/icu4c-iosx.podspec.json exists! Returning local
because checking is only performed in repo update
CDN: trunk Relative path:
Specs/b/4/6/icu4c-iosx/70.1.1/icu4c-iosx.podspec.json exists! Returning local
because checking is only performed in repo update
CDN: trunk Relative path:
Specs/b/4/6/icu4c-iosx/69.1.2/icu4c-iosx.podspec.json exists! Returning local
because checking is only performed in repo update
CDN: trunk Relative path:
Specs/b/4/6/icu4c-iosx/69.1.1/icu4c-iosx.podspec.json exists! Returning local
because checking is only performed in repo update
CDN: trunk Relative path:
Specs/b/4/6/icu4c-iosx/68.2.1/icu4c-iosx.podspec.json exists! Returning local
because checking is only performed in repo update
CDN: trunk Relative path: Specs/b/4/6/icu4c-iosx/68/icu4c-iosx.podspec.json
exists! Returning local because checking is only performed in repo update
CDN: trunk Relative path:
Specs/b/4/6/icu4c-iosx/62.2.1/icu4c-iosx.podspec.json exists! Returning local
because checking is only performed in repo update
Comparing resolved specification to the sandbox manifest A icu4c-iosx
Downloading dependencies
-> Installing icu4c-iosx (70.1.1)
Copying icu4c-iosx from
~/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a
toPods/icu4c-iosx
- Running pre install hooks
- Running pre integrate hooks
Generating Pods project
icu4c-iosx
macOS 11.0Pods-ICUdep
macOS 12.0
Pods/Target Support Files/Pods-ICUdep/Pods-ICUdep-Info.plist
Pods/Target Support Files/Pods-ICUdep/Pods-ICUdep.modulemap
Pods/Target Support Files/Pods-ICUdep/Pods-ICUdep-umbrella.h
Pods/Target Support Files/Pods-ICUdep/Pods-ICUdep-dummy.m
Pods/Pods.xcodeproj
Cleaning up sandbox directoryIntegrating client project
[!] Please close any current Xcode sessions and use ICUdep.xcworkspace
for this project from now on.
Integrating target Pods-ICUdep
(ICUdep.xcodeproj
project)
Adding Build Phase '[CP] Check Pods Manifest.lock' to project.
Podfile.lock
Pods/Manifest.lock
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local
because checking is only performed in repo update-> Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
[!] The Podfile contains command line tool target(s) (ICUdep) which are attempting to integrate dynamic frameworks or libraries. This may not behave as expected, because command line tools are usually distributed as a single binary and cannot contain their own dynamic dependencies. ~/RnD/boost-iosx mkdir: ../RnD/boost-iosx/scripts/Pods/icu4c-iosx/product: No such file or directory
Hi @mamunabcoder I think that the lib icu4c-iosx wasn't properly installed, so try to perform a clean installation: 1) remove cocoapod cache at ~/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx 2) remove ~/RnD/boost-iosx 3) clone the repo again and run the build script
Build configuration:
Xcode 13.1 Apple M1 macOS
Below build error log:
boost-iosx % scripts/build.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 105M 100 105M 0 0 41043 0 0:44:56 0:44:56 --:--:-- 51690 extracting boost_1_78_0.tar.bz2 ... ~/RnD/boost-iosx/boost ~/RnD/boost-iosx Building B2 engine..
Using 'clang' toolset.
Apple clang version 13.0.0 (clang-1300.0.29.3) Target: arm64-apple-darwin21.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Bootstrapping is done. To build, run:
To generate header files, run:
The configuration generated uses clang to build by default. If that is unintended either use the --with-toolset option or adjust configuration, by editing 'project-config.jam'.
Further information:
Command line help: ./b2 --help
Getting started guide: http://www.boost.org/more/getting_started/unix-variants.html
B2 documentation: http://www.boost.org/build/
~/RnD/boost-iosx ~/RnD/boost-iosx/scripts ~/RnD/boost-iosx Preparing
Analyzing dependencies
Inspecting targets to integrate Using
ARCHS
setting to build architectures of targetPods-ICUdep
: (``)Resolving dependencies of
Podfile
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_b_4_6.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/b/4/6/icu4c-iosx/70.1.1/icu4c-iosx.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/b/4/6/icu4c-iosx/70.1.1/icu4c-iosx.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/b/4/6/icu4c-iosx/69.1.2/icu4c-iosx.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/b/4/6/icu4c-iosx/69.1.1/icu4c-iosx.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/b/4/6/icu4c-iosx/68.2.1/icu4c-iosx.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/b/4/6/icu4c-iosx/68/icu4c-iosx.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/b/4/6/icu4c-iosx/62.2.1/icu4c-iosx.podspec.json exists! Returning local because checking is only performed in repo updateComparing resolved specification to the sandbox manifest A icu4c-iosx
Downloading dependencies
-> Installing icu4c-iosx (70.1.1)
checking for ICU version numbers... release 70.1, library 70.1, unicode version 14.0 checking build system type... arm-apple-darwin21.3.0 checking host system type... arm-apple-darwin21.3.0 checking whether to build debug libraries... no checking whether to build release libraries... yes checking for clang... clang checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether clang accepts -g... yes checking for clang option to accept ISO C89... none needed checking for clang++... clang++ checking whether we are using the GNU C++ compiler... yes checking whether clang++ accepts -g... yes checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.20... yes checking for ICULEHB... no checking how to run the C preprocessor... clang -E checking for a BSD-compatible install... /usr/bin/install -c checking for python3... python3 checking for gmake... no checking for gnumake... /usr/bin/gnumake checking for doxygen... no checking checking for executable suffix... checking whether strict compiling is on... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking size of void *... 8 checking whether runnable 64 bit binaries are built by default... yes checking which Makefile fragment to use for arm-apple-darwin21.3.0... mh-darwin checking for floor in -lm... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking whether we can use static library optimization option... yes checking whether to enable auto cleanup of libraries... no checking whether to enable draft APIs... yes checking for ranlib... ranlib checking for a sed that does not truncate output... /usr/bin/sed checking for ar... ar checking whether to enable renaming of symbols... yes checking whether to enable function and data tracing... no checking elf.h usability... no checking elf.h presence... no checking for elf.h... no checking whether to enable dynamic loading of plugins. Ignored if plugins disabled.... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for library containing dlopen... none required checking for dlopen... yes checking for gettimeofday... yes checking if we have a C++ compiler... Good checking for pthread_attr_init in -lpthread... yes checking for mmap... yes checking for genccode assembly... checking for inttypes.h... (cached) yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking whether byte ordering is bigendian... no checking for nl_langinfo... yes checking for nl_langinfo's argument to obtain the codeset... CODESET checking for namespace support... yes checking for properly overriding new and delete... yes checking for placement new and delete... yes checking for popen... yes checking for tzset... yes checking for tzname... yes checking for timezone... yes checking for strtod_l... yes checking xlocale.h usability... yes checking xlocale.h presence... yes checking for xlocale.h... yes checking for std::string_view... yes checking for int8_t... yes checking for uint8_t... yes checking for int16_t... yes checking for uint16_t... yes checking for int32_t... yes checking for uint32_t... yes checking for int64_t... yes checking for uint64_t... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking for library containing wcscpy... none required checking size of wchar_t... 4 checking for UTF-16 string literal support... available checking for a library suffix to use... none checking whether C++ compiler accepts -Wambiguous-reversed-operator... yes CPPFLAGS= $(THREADSCPPFLAGS) -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -DU_HAVE_STRING_VIEW=1 CFLAGS=-O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $(THREADSCFLAGS) -Qunused-arguments -Wno-parentheses-equality CXXFLAGS=--std=c++17 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-ambiguous-reversed-operator $(THREADSCXXFLAGS) -Qunused-arguments -Wno-parentheses-equality configure: creating ./config.status config.status: creating icudefs.mk config.status: creating Makefile config.status: creating data/pkgdataMakefile config.status: creating config/Makefile.inc config.status: creating config/icu.pc config.status: creating config/pkgdataMakefile config.status: creating data/Makefile config.status: creating stubdata/Makefile config.status: creating common/Makefile config.status: creating i18n/Makefile config.status: creating layoutex/Makefile config.status: creating io/Makefile config.status: creating extra/Makefile config.status: creating extra/uconv/Makefile config.status: creating extra/uconv/pkgdataMakefile config.status: creating extra/scrptrun/Makefile config.status: creating tools/Makefile config.status: creating tools/ctestfw/Makefile config.status: creating tools/toolutil/Makefile config.status: creating tools/makeconv/Makefile config.status: creating tools/genrb/Makefile config.status: creating tools/genccode/Makefile config.status: creating tools/gencmn/Makefile config.status: creating tools/gencnval/Makefile config.status: creating tools/gendict/Makefile config.status: creating tools/gentest/Makefile config.status: creating tools/gennorm2/Makefile config.status: creating tools/genbrk/Makefile config.status: creating tools/gensprep/Makefile config.status: creating tools/icuinfo/Makefile config.status: creating tools/icupkg/Makefile config.status: creating tools/icuswap/Makefile config.status: creating tools/pkgdata/Makefile config.status: creating tools/icuexportdata/Makefile config.status: creating tools/tzcode/Makefile config.status: creating tools/gencfu/Makefile config.status: creating tools/escapesrc/Makefile config.status: creating test/Makefile config.status: creating test/compat/Makefile config.status: creating test/testdata/Makefile config.status: creating test/testdata/pkgdataMakefile config.status: creating test/hdrtst/Makefile config.status: creating test/intltest/Makefile config.status: creating test/cintltst/Makefile config.status: creating test/iotest/Makefile config.status: creating test/letest/Makefile config.status: creating test/perf/Makefile config.status: creating test/perf/collationperf/Makefile config.status: creating test/perf/collperf/Makefile config.status: creating test/perf/collperf2/Makefile config.status: creating test/perf/dicttrieperf/Makefile config.status: creating test/perf/ubrkperf/Makefile config.status: creating test/perf/charperf/Makefile config.status: creating test/perf/convperf/Makefile config.status: creating test/perf/localecanperf/Makefile config.status: creating test/perf/normperf/Makefile config.status: creating test/perf/DateFmtPerf/Makefile config.status: creating test/perf/howExpensiveIs/Makefile config.status: creating test/perf/strsrchperf/Makefile config.status: creating test/perf/unisetperf/Makefile config.status: creating test/perf/usetperf/Makefile config.status: creating test/perf/ustrperf/Makefile config.status: creating test/perf/utfperf/Makefile config.status: creating test/perf/utrie2perf/Makefile config.status: creating test/perf/leperf/Makefile config.status: creating test/fuzzer/Makefile config.status: creating samples/Makefile config.status: creating samples/date/Makefile config.status: creating samples/cal/Makefile config.status: creating samples/layout/Makefile Spawning Python to generate data/rules.mk... Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 69, in
import msvcrt
ModuleNotFoundError: No module named 'msvcrt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/Users/bjit/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a/icu4c-maint-maint-70-build/source/python/icutools/databuilder/main.py", line 18, in
from .renderers import makefile, common_exec
File "/Users/bjit/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a/icu4c-maint-maint-70-build/source/python/icutools/databuilder/renderers/common_exec.py", line 15, in
import subprocess
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 74, in
import _posixsubprocess
ImportError: dynamic module does not define module export function (PyInit__posixsubprocess)
configure: error: Python failed to run; see above error.
./runConfigureICU: ./configure failed
[!] /bin/bash -c
set -e
sh scripts/build.sh
~/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a/icu ~/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a HEAD is now at a56dde820d ICU-21579 Fix warnings in number formatting code ~/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a preparing build folder icu4c-maint-maint-70-build ... building icu (mac osx)... ~/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a/icu4c-maint-maint-70-build/source ~/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a export CPP= CC= CXX= CPPFLAGS= CFLAGS=-O2 CXXFLAGS=-O2 LDFLAGS= MAKE= Running ./configure --enable-static --disable-shared prefix=/Users/bjit/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a/product CXXFLAGS=--std=c++17 for MacOS X (Darwin) using the default compiler
checking for ICU version numbers... release 70.1, library 70.1, unicode version 14.0 checking build system type... arm-apple-darwin21.3.0 checking host system type... arm-apple-darwin21.3.0 checking whether to build debug libraries... no checking whether to build release libraries... yes checking for clang... clang checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether clang accepts -g... yes checking for clang option to accept ISO C89... none needed checking for clang++... clang++ checking whether we are using the GNU C++ compiler... yes checking whether clang++ accepts -g... yes checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.20... yes checking for ICULEHB... no checking how to run the C preprocessor... clang -E checking for a BSD-compatible install... /usr/bin/install -c checking for python3... python3 checking for gmake... no checking for gnumake... /usr/bin/gnumake checking for doxygen... no checking checking for executable suffix... checking whether strict compiling is on... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking size of void *... 8 checking whether runnable 64 bit binaries are built by default... yes checking which Makefile fragment to use for arm-apple-darwin21.3.0... mh-darwin checking for floor in -lm... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking whether we can use static library optimization option... yes checking whether to enable auto cleanup of libraries... no checking whether to enable draft APIs... yes checking for ranlib... ranlib checking for a sed that does not truncate output... /usr/bin/sed checking for ar... ar checking whether to enable renaming of symbols... yes checking whether to enable function and data tracing... no checking elf.h usability... no checking elf.h presence... no checking for elf.h... no checking whether to enable dynamic loading of plugins. Ignored if plugins disabled.... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for library containing dlopen... none required checking for dlopen... yes checking for gettimeofday... yes checking if we have a C++ compiler... Good checking for pthread_attr_init in -lpthread... yes checking for mmap... yes checking for genccode assembly... checking for inttypes.h... (cached) yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking whether byte ordering is bigendian... no checking for nl_langinfo... yes checking for nl_langinfo's argument to obtain the codeset... CODESET checking for namespace support... yes checking for properly overriding new and delete... yes checking for placement new and delete... yes checking for popen... yes checking for tzset... yes checking for tzname... yes checking for timezone... yes checking for strtod_l... yes checking xlocale.h usability... yes checking xlocale.h presence... yes checking for xlocale.h... yes checking for std::string_view... yes checking for int8_t... yes checking for uint8_t... yes checking for int16_t... yes checking for uint16_t... yes checking for int32_t... yes checking for uint32_t... yes checking for int64_t... yes checking for uint64_t... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking for library containing wcscpy... none required checking size of wchar_t... 4 checking for UTF-16 string literal support... available checking for a library suffix to use... none checking whether C++ compiler accepts -Wambiguous-reversed-operator... yes CPPFLAGS= $(THREADSCPPFLAGS) -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -DU_HAVE_STRING_VIEW=1 CFLAGS=-O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $(THREADSCFLAGS) -Qunused-arguments -Wno-parentheses-equality CXXFLAGS=--std=c++17 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-ambiguous-reversed-operator $(THREADSCXXFLAGS) -Qunused-arguments -Wno-parentheses-equality configure: creating ./config.status config.status: creating icudefs.mk config.status: creating Makefile config.status: creating data/pkgdataMakefile config.status: creating config/Makefile.inc config.status: creating config/icu.pc config.status: creating config/pkgdataMakefile config.status: creating data/Makefile config.status: creating stubdata/Makefile config.status: creating common/Makefile config.status: creating i18n/Makefile config.status: creating layoutex/Makefile config.status: creating io/Makefile config.status: creating extra/Makefile config.status: creating extra/uconv/Makefile config.status: creating extra/uconv/pkgdataMakefile config.status: creating extra/scrptrun/Makefile config.status: creating tools/Makefile config.status: creating tools/ctestfw/Makefile config.status: creating tools/toolutil/Makefile config.status: creating tools/makeconv/Makefile config.status: creating tools/genrb/Makefile config.status: creating tools/genccode/Makefile config.status: creating tools/gencmn/Makefile config.status: creating tools/gencnval/Makefile config.status: creating tools/gendict/Makefile config.status: creating tools/gentest/Makefile config.status: creating tools/gennorm2/Makefile config.status: creating tools/genbrk/Makefile config.status: creating tools/gensprep/Makefile config.status: creating tools/icuinfo/Makefile config.status: creating tools/icupkg/Makefile config.status: creating tools/icuswap/Makefile config.status: creating tools/pkgdata/Makefile config.status: creating tools/icuexportdata/Makefile config.status: creating tools/tzcode/Makefile config.status: creating tools/gencfu/Makefile config.status: creating tools/escapesrc/Makefile config.status: creating test/Makefile config.status: creating test/compat/Makefile config.status: creating test/testdata/Makefile config.status: creating test/testdata/pkgdataMakefile config.status: creating test/hdrtst/Makefile config.status: creating test/intltest/Makefile config.status: creating test/cintltst/Makefile config.status: creating test/iotest/Makefile config.status: creating test/letest/Makefile config.status: creating test/perf/Makefile config.status: creating test/perf/collationperf/Makefile config.status: creating test/perf/collperf/Makefile config.status: creating test/perf/collperf2/Makefile config.status: creating test/perf/dicttrieperf/Makefile config.status: creating test/perf/ubrkperf/Makefile config.status: creating test/perf/charperf/Makefile config.status: creating test/perf/convperf/Makefile config.status: creating test/perf/localecanperf/Makefile config.status: creating test/perf/normperf/Makefile config.status: creating test/perf/DateFmtPerf/Makefile config.status: creating test/perf/howExpensiveIs/Makefile config.status: creating test/perf/strsrchperf/Makefile config.status: creating test/perf/unisetperf/Makefile config.status: creating test/perf/usetperf/Makefile config.status: creating test/perf/ustrperf/Makefile config.status: creating test/perf/utfperf/Makefile config.status: creating test/perf/utrie2perf/Makefile config.status: creating test/perf/leperf/Makefile config.status: creating test/fuzzer/Makefile config.status: creating samples/Makefile config.status: creating samples/date/Makefile config.status: creating samples/cal/Makefile config.status: creating samples/layout/Makefile Spawning Python to generate data/rules.mk... ./runConfigureICU: ./configure failed Updating files: 100% (9336/9336), done. Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 69, in
import msvcrt
ModuleNotFoundError: No module named 'msvcrt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/Users/bjit/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a/icu4c-maint-maint-70-build/source/python/icutools/databuilder/main.py", line 18, in
from .renderers import makefile, common_exec
File "/Users/bjit/Library/Caches/CocoaPods/Pods/Release/icu4c-iosx/70.1.1-e851a/icu4c-maint-maint-70-build/source/python/icutools/databuilder/renderers/common_exec.py", line 15, in
import subprocess
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 74, in
import _posixsubprocess
ImportError: dynamic module does not define module export function (PyInit__posixsubprocess)
configure: error: Python failed to run; see above error.
/opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/executable.rb:73:in'
execute_command' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/executable.rb:27:in
block in executable' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/pod_source_preparer.rb:66:inblock (2 levels) in run_prepare_command' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/pod_source_preparer.rb:60:in
chdir' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/pod_source_preparer.rb:60:inblock in run_prepare_command' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in
section' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/pod_source_preparer.rb:59:inrun_prepare_command' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/pod_source_preparer.rb:37:in
prepare!' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:288:inblock in copy_and_clean' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:128:in
lock' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:99:inwrite_lock' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:285:in
copy_and_clean' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:244:inblock (2 levels) in uncached_pod' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:242:in
each' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:242:inblock in uncached_pod' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:266:in
in_tmpdir' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:238:inuncached_pod' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader/cache.rb:33:in
download_pod' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/downloader.rb:42:indownload' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/pod_source_installer.rb:118:in
download_source' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/pod_source_installer.rb:69:ininstall!' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:563:in
install_source_of_pod' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:514:inblock (2 levels) in install_pod_sources' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:86:in
titled_section' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:513:inblock in install_pod_sources' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:496:in
each' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:496:ininstall_pod_sources' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:255:in
block in download_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:insection' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:254:in
download_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:162:ininstall!' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:52:in
run' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:inrun' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in
run' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/gems/cocoapods-1.11.2/bin/pod:55:in<top (required)>' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/bin/pod:25:in
load' /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/bin/pod:25:in `[!] The Podfile contains command line tool target(s) (ICUdep) which are attempting to integrate dynamic frameworks or libraries. This may not behave as expected, because command line tools are usually distributed as a single binary and cannot contain their own dynamic dependencies.
Please help me to fix above issues.