Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Docker build fails on Apple M1 #56

Closed
robmarkcole opened this issue Mar 1, 2021 · 5 comments
Closed

Docker build fails on Apple M1 #56

robmarkcole opened this issue Mar 1, 2021 · 5 comments

Comments

@robmarkcole
Copy link
Owner

Fails with #9 118.3 ERROR: Could not build wheels for pyarrow which use PEP 517 and cannot be installed directly

The solution is to use emulation? --platform linux/amd64

@robmarkcole
Copy link
Owner Author

robmarkcole commented Mar 1, 2021

docker build -t deepstack-ui . --platform linux/amd64

robin@Robins-MBP deepstack-ui % docker run -p 8501:8501 -e DEEPSTACK_IP='192.168.1.139' --platform linux/amd64 deepstack-ui
Traceback (most recent call last):
  File "/usr/local/bin/streamlit", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/streamlit/cli.py", line 233, in main_run
    _main_run(target, args)
  File "/usr/local/lib/python3.8/site-packages/streamlit/cli.py", line 261, in _main_run
    bootstrap.run(file, command_line, args)
  File "/usr/local/lib/python3.8/site-packages/streamlit/bootstrap.py", line 287, in run
    server.add_preheated_report_session()
  File "/usr/local/lib/python3.8/site-packages/streamlit/server/server.py", line 543, in add_preheated_report_session
    session = self._create_or_reuse_report_session(ws=None)
  File "/usr/local/lib/python3.8/site-packages/streamlit/server/server.py", line 577, in _create_or_reuse_report_session
    session = ReportSession(
  File "/usr/local/lib/python3.8/site-packages/streamlit/report_session.py", line 95, in __init__
    self._local_sources_watcher = LocalSourcesWatcher(
  File "/usr/local/lib/python3.8/site-packages/streamlit/watcher/local_sources_watcher.py", line 90, in __init__
    self._register_watcher(
  File "/usr/local/lib/python3.8/site-packages/streamlit/watcher/local_sources_watcher.py", line 130, in _register_watcher
    watcher=FileWatcher(filepath, self.on_file_changed),
  File "/usr/local/lib/python3.8/site-packages/streamlit/watcher/event_based_file_watcher.py", line 79, in __init__
    file_watcher.watch_file(file_path, on_file_changed)
  File "/usr/local/lib/python3.8/site-packages/streamlit/watcher/event_based_file_watcher.py", line 149, in watch_file
    folder_handler.watch = self._observer.schedule(
  File "/usr/local/lib/python3.8/site-packages/watchdog/observers/api.py", line 297, in schedule
    emitter.start()
  File "/usr/local/lib/python3.8/site-packages/watchdog/utils/__init__.py", line 93, in start
    self.on_thread_start()
  File "/usr/local/lib/python3.8/site-packages/watchdog/observers/inotify.py", line 118, in on_thread_start
    self._inotify = InotifyBuffer(path, self.watch.is_recursive)
  File "/usr/local/lib/python3.8/site-packages/watchdog/observers/inotify_buffer.py", line 35, in __init__
    self._inotify = Inotify(path, recursive)
  File "/usr/local/lib/python3.8/site-packages/watchdog/observers/inotify_c.py", line 187, in __init__
    Inotify._raise_error()
  File "/usr/local/lib/python3.8/site-packages/watchdog/observers/inotify_c.py", line 437, in _raise_error
    raise OSError(err, os.strerror(err))
OSError: [Errno 38] Function not implemented

@eoura2
Copy link

eoura2 commented Apr 12, 2022

Were you ever able to resolve this? Do you know if DeepStack could run on Docker for Mac on an M1 Mac?

@robmarkcole
Copy link
Owner Author

Just tested, no longer an issue

@berezerker
Copy link

The issues is still present.

@nschenone
Copy link

Issue is still present. Please see streamlit/streamlit#4842

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants