Hi -
I’m trying to install Streamlit in a new Conda environment, following the instructions @ https://docs.streamlit.io/en/latest/troubleshooting/clean-install.html. The installation fails with the errors below.
I tried
conda install -c conda-forge watchdog
Then:
pip install streamlit
conda-install
completes successfully but pip install streamlit
fails with the error below. Ideas?
Failed to build watchdog
Installing collected packages: watchdog, streamlit
Running setup.py install for watchdog ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/1c/h8v1v9nj7nj94yg690gxw3p80000gq/T/pip-install-lzxt9rc_/watchdog/setup.py'"'"'; __file__='"'"'/private/var/folders/1c/h8v1v9nj7nj94yg690gxw3p80000gq/T/pip-install-lzxt9rc_/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/1c/h8v1v9nj7nj94yg690gxw3p80000gq/T/pip-record-sh6a84mz/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7m/watchdog
cwd: /private/var/folders/1c/h8v1v9nj7nj94yg690gxw3p80000gq/T/pip-install-lzxt9rc_/watchdog/
Complete output (93 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.7
creating build/lib.macosx-10.15-x86_64-3.7/watchdog
copying src/watchdog/watchmedo.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog
copying src/watchdog/version.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog
copying src/watchdog/events.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog
copying src/watchdog/__init__.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog
creating build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
copying src/watchdog/utils/unicode_paths.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
copying src/watchdog/utils/compat.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
copying src/watchdog/utils/win32stat.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
copying src/watchdog/utils/__init__.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
copying src/watchdog/utils/dirsnapshot.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
copying src/watchdog/utils/delayed_queue.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
copying src/watchdog/utils/platform.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
copying src/watchdog/utils/bricks.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
copying src/watchdog/utils/echo.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/utils
creating build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/fsevents.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/inotify.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/__init__.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/api.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/inotify_buffer.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/winapi.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/read_directory_changes.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/kqueue.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/inotify_c.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/polling.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
copying src/watchdog/observers/fsevents2.py -> build/lib.macosx-10.15-x86_64-3.7/watchdog/observers
creating build/lib.macosx-10.15-x86_64-3.7/watchdog/tricks
copying src/watchdog/tricks/__init__.py -> build/lib.macosx-10.15-x86_64-3.7/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.15-x86_64-3.7
creating build/temp.macosx-10.15-x86_64-3.7/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DWATCHDOG_VERSION_STRING="0.10.2" -DWATCHDOG_VERSION_MAJOR=0 -DWATCHDOG_VERSION_MINOR=10 -DWATCHDOG_VERSION_BUILD=2 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/watchdog_fsevents.c -o build/temp.macosx-10.15-x86_64-3.7/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:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:21:
In file included from /usr/local/include/float.h:29:
In file included from /usr/local/include/CGAL/utils.h:16:
In file included from /usr/local/include/CGAL/utils_classes.h:16:
In file included from /usr/local/include/CGAL/config.h:152:
/usr/local/include/CGAL/internal/enable_third_party_libraries.h:30:6: warning: "<gmp.h> cannot be found. Less efficient number types will be used instead. Define CGAL_NO_GMP=1 if that is on purpose." [-W#warnings]
# warning "<gmp.h> cannot be found. Less efficient number types will be used instead. Define CGAL_NO_GMP=1 if that is on purpose."
^
In file included from src/watchdog_fsevents.c:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:21:
In file included from /usr/local/include/float.h:29:
In file included from /usr/local/include/CGAL/utils.h:16:
In file included from /usr/local/include/CGAL/utils_classes.h:16:
In file included from /usr/local/include/CGAL/config.h:304:
/usr/local/include/CGAL/functional.h:20:1: error: unknown type name 'namespace'
namespace CGAL {
^
/usr/local/include/CGAL/functional.h:20:15: error: expected ';' after top level declarator
namespace CGAL {
^
In file included from src/watchdog_fsevents.c:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:21:
In file included from /usr/local/include/float.h:29:
In file included from /usr/local/include/CGAL/utils.h:16:
In file included from /usr/local/include/CGAL/utils_classes.h:16:
In file included from /usr/local/include/CGAL/config.h:355:
In file included from /usr/local/include/boost/predef.h:16:
In file included from /usr/local/include/boost/predef/library.h:13:
In file included from /usr/local/include/boost/predef/library/c.h:16:
In file included from /usr/local/include/boost/predef/library/c/gnu.h:17:
/usr/local/include/stddef.h:18:2: error: You have added .../path/to/CGAL-x.y/include/CGAL to the INCLUDE path. You should use .../path/to/CGAL-x.y/include instead.
#error You have added .../path/to/CGAL-x.y/include/CGAL to the INCLUDE path. You should use .../path/to/CGAL-x.y/include instead.
^
In file included from src/watchdog_fsevents.c:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:21:
In file included from /usr/local/include/float.h:29:
In file included from /usr/local/include/CGAL/utils.h:16:
In file included from /usr/local/include/CGAL/utils_classes.h:16:
/usr/local/include/CGAL/config.h:447:10: fatal error: 'algorithm' file not found
#include <algorithm>
^~~~~~~~~~~
1 warning and 4 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/1c/h8v1v9nj7nj94yg690gxw3p80000gq/T/pip-install-lzxt9rc_/watchdog/setup.py'"'"'; __file__='"'"'/private/var/folders/1c/h8v1v9nj7nj94yg690gxw3p80000gq/T/pip-install-lzxt9rc_/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/1c/h8v1v9nj7nj94yg690gxw3p80000gq/T/pip-record-sh6a84mz/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7m/watchdog Check the logs for full command output.
Thanks,
sk