Basically the same as #620, #628 and #658, only those workarounds did not work for me. I tried in 10.15.6 and it didn't worked, but then I upgraded and it didn't worked either:
$ pip install watchdog
Collecting watchdog
Using cached watchdog-0.10.3.tar.gz (94 kB)
Requirement already satisfied: pathtools>=0.1.1 in ./venv_dev/lib/python3.8/site-packages (from watchdog) (0.1.2)
Building wheels for collected packages: watchdog
Building wheel for watchdog (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/user/PycharmProjects/pyntual/venv_dev/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-install-a2muv40f/watchdog/setup.py'"'"'; __file__='"'"'/private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-install-a2muv40f/watchdog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-wheel-zhg74opx
cwd: /private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-install-a2muv40f/watchdog/
Complete output (148 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/watchdog
copying src/watchdog/watchmedo.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog
copying src/watchdog/version.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog
copying src/watchdog/events.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog
copying src/watchdog/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog
creating build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/unicode_paths.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/compat.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/win32stat.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/dirsnapshot.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/delayed_queue.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/platform.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/bricks.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/echo.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
creating build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/fsevents.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/inotify.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/api.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/inotify_buffer.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/winapi.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/read_directory_changes.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/kqueue.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/inotify_c.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/polling.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/fsevents2.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
creating build/lib.macosx-10.14.6-x86_64-3.8/watchdog/tricks
copying src/watchdog/tricks/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/tricks
running egg_info
writing src/watchdog.egg-info/PKG-INFO
writing dependency_links to src/watchdog.egg-info/dependency_links.txt
writing entry points to src/watchdog.egg-info/entry_points.txt
writing requirements to src/watchdog.egg-info/requires.txt
writing top-level names to src/watchdog.egg-info/top_level.txt
reading manifest file 'src/watchdog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h' under directory 'src'
writing manifest file 'src/watchdog.egg-info/SOURCES.txt'
running build_ext
building '_watchdog_fsevents' extension
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/src
xcrun -sdk macosx clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -DWATCHDOG_VERSION_STRING="0.10.3" -DWATCHDOG_VERSION_MAJOR=0 -DWATCHDOG_VERSION_MINOR=10 -DWATCHDOG_VERSION_BUILD=3 -I/Users/user/PycharmProjects/pyntual/venv_dev/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c src/watchdog_fsevents.c -o build/temp.macosx-10.14.6-x86_64-3.8/src/watchdog_fsevents.o -std=c99 -pedantic -Wall -Wextra -fPIC -Wno-nullability-completeness -Wno-nullability-extension -Wno-newline-eof -Wno-error=unused-command-line-argument
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h:63:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h:64:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
#error architecture not supported
^
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'xcrun' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for watchdog
Running setup.py clean for watchdog
Failed to build watchdog
Installing collected packages: watchdog
Running setup.py install for watchdog ... error
ERROR: Command errored out with exit status 1:
command: /Users/user/PycharmProjects/pyntual/venv_dev/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-install-a2muv40f/watchdog/setup.py'"'"'; __file__='"'"'/private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-install-a2muv40f/watchdog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-record-tvy9qtt3/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/PycharmProjects/pyntual/venv_dev/include/site/python3.8/watchdog
cwd: /private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-install-a2muv40f/watchdog/
Complete output (148 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/watchdog
copying src/watchdog/watchmedo.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog
copying src/watchdog/version.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog
copying src/watchdog/events.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog
copying src/watchdog/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog
creating build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/unicode_paths.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/compat.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/win32stat.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/dirsnapshot.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/delayed_queue.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/platform.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/bricks.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
copying src/watchdog/utils/echo.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/utils
creating build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/fsevents.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/inotify.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/api.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/inotify_buffer.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/winapi.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/read_directory_changes.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/kqueue.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/inotify_c.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/polling.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
copying src/watchdog/observers/fsevents2.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/observers
creating build/lib.macosx-10.14.6-x86_64-3.8/watchdog/tricks
copying src/watchdog/tricks/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/watchdog/tricks
running egg_info
writing src/watchdog.egg-info/PKG-INFO
writing dependency_links to src/watchdog.egg-info/dependency_links.txt
writing entry points to src/watchdog.egg-info/entry_points.txt
writing requirements to src/watchdog.egg-info/requires.txt
writing top-level names to src/watchdog.egg-info/top_level.txt
reading manifest file 'src/watchdog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h' under directory 'src'
writing manifest file 'src/watchdog.egg-info/SOURCES.txt'
running build_ext
building '_watchdog_fsevents' extension
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/src
xcrun -sdk macosx clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -DWATCHDOG_VERSION_STRING="0.10.3" -DWATCHDOG_VERSION_MAJOR=0 -DWATCHDOG_VERSION_MINOR=10 -DWATCHDOG_VERSION_BUILD=3 -I/Users/user/PycharmProjects/pyntual/venv_dev/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c src/watchdog_fsevents.c -o build/temp.macosx-10.14.6-x86_64-3.8/src/watchdog_fsevents.o -std=c99 -pedantic -Wall -Wextra -fPIC -Wno-nullability-completeness -Wno-nullability-extension -Wno-newline-eof -Wno-error=unused-command-line-argument
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h:63:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h:64:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
#error architecture not supported
^
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from src/watchdog_fsevents.c:22:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'xcrun' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/user/PycharmProjects/pyntual/venv_dev/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-install-a2muv40f/watchdog/setup.py'"'"'; __file__='"'"'/private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-install-a2muv40f/watchdog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/s7/lw81_3_x6mz6wkw9j7gt6xg00000gq/T/pip-record-tvy9qtt3/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/PycharmProjects/pyntual/venv_dev/include/site/python3.8/watchdog Check the logs for full command output.
This seems to be due to Xcode 12 automatically trying to build an ARM64 slice but some of the included system headers not supporting it (hence the #error architecture not supported
).
Note that this is leading to build issues in YouCompleteMe (which uses watchdog as a dependency) as noted in this issue: https://github.com/ycm-core/YouCompleteMe/issues/3770
@ddeville I would be happy to merge a PR, if you already know how to tackle the issue :)
@BoboTiG Sorry, still going down the rabbit hole here :)
While this issue happens to show up when building this extension, I think the underlying problem is likely in distutils (via setuptools) and might thus depend on the Python version being used, if it鈥檚 been fixed upstream. The build settings in setup.py
seem fine as far as a I can tell.
alright, I鈥檝e confirmed that I cannot reproduce the issue with the latest Python version (3.8.5). Version 3.8.2 was exhibiting the issue, which also happens to be the version that was used by @vlizanae.
I haven鈥檛 tracked (yet) where/how this was fixed in cpython but the workaround when using Xcode 12 is to update to the latest Python version (3.8.5 is fine, haven鈥檛 checked versions between 3.8.2 and 3.8.5)
Or more precisely, it might have been the 3.8.2 Python that ships with Xcode and is symlinked into /usr/bin/python
that, I believe, is patched to specify arm64 as an arch and is leading to this issue. People should install the latest Python version from python.org or wherever they get their Python.
I got the same issue and switched to python
from brew
to make this work. See that answer.
brew install python3
/usr/local/bin/python3 -m venv venv
. venv/bin/activate
python -m pip install watchdog
You can also set the ARCHFLAGS
variable explicitly for x86_64 to work around this problem with the macOS system Python:
export ARCHFLAGS="-arch x86_64"
pip install watchdog
@benesch thanks!
Wonder what will happen when ARM based macs are released :-/
This should be mostly resolved now that watchdog==1.0.2
provides built distributions, but this will still be a problem for new macOS ARM platforms until https://github.com/gorakhargosh/watchdog/issues/740 is resolved.
Most helpful comment
You can also set the
ARCHFLAGS
variable explicitly for x86_64 to work around this problem with the macOS system Python: