Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after deployment on ubuntu the Streamlit page always shows "Please Wait" #21

Closed
Presiton opened this issue May 8, 2022 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@Presiton
Copy link

Presiton commented May 8, 2022

I use ubuntu virtual machine 18.04 to deploy your program.

I use following steps to finish this.

  1. sudo apt install docker.io
  2. sudo apt install docker-compose
  3. systemctl start docker
  4. git clone the project code and enter the directory
  5. sudo docker-compose build
  6. sudo docker-compose up

then the streamlit page always display "Please Wait", when I refresh the page, the terminal logs a problem I search for a long time but I can not resolve. Thanks for your work and waiting for your reply.

streamlit    | Exception in thread ScriptRunner.scriptThread:
streamlit    | Traceback (most recent call last):
streamlit    |   File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
streamlit    |     self.run()
streamlit    |   File "/usr/local/lib/python3.7/threading.py", line 870, in run
streamlit    |     self._target(*self._args, **self._kwargs)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 172, in _process_request_queue
streamlit    |     self._run_script(data)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 272, in _run_script
streamlit    |     self.on_event.send(ScriptRunnerEvent.SCRIPT_STARTED)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/blinker/base.py", line 267, in send
streamlit    |     for receiver in self.receivers_for(sender)]
streamlit    |   File "/usr/local/lib/python3.7/site-packages/blinker/base.py", line 267, in <listcomp>
streamlit    |     for receiver in self.receivers_for(sender)]
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 285, in _on_scriptrunner_event
streamlit    |     self._enqueue_new_report_message()
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 383, in _enqueue_new_report_message
streamlit    |     _populate_user_info_msg(imsg.user_info)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 706, in _populate_user_info_msg
streamlit    |     msg.installation_id = Installation.instance().installation_id
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 129, in instance
streamlit    |     cls._instance = Installation()
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 133, in __init__
streamlit    |     self.installation_id_v1 = str(uuid.uuid5(uuid.NAMESPACE_DNS, _get_machine_id()))
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 49, in _get_machine_id
streamlit    |     subprocess.run(["sudo", "dbus-uuidgen", "--ensure"])
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
streamlit    |     with Popen(*popenargs, **kwargs) as process:
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
streamlit    |     restore_signals, start_new_session)
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
streamlit    |     raise child_exception_type(errno_num, err_msg, err_filename)
streamlit    | FileNotFoundError: [Errno 2] No such file or directory: 'sudo': 'sudo'
streamlit    | 
streamlit    | Exception in thread ScriptRunner.scriptThread:
streamlit    | Traceback (most recent call last):
streamlit    |   File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
streamlit    |     self.run()
streamlit    |   File "/usr/local/lib/python3.7/threading.py", line 870, in run
streamlit    |     self._target(*self._args, **self._kwargs)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 172, in _process_request_queue
streamlit    |     self._run_script(data)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 272, in _run_script
streamlit    |     self.on_event.send(ScriptRunnerEvent.SCRIPT_STARTED)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/blinker/base.py", line 267, in send
streamlit    |     for receiver in self.receivers_for(sender)]
streamlit    |   File "/usr/local/lib/python3.7/site-packages/blinker/base.py", line 267, in <listcomp>
streamlit    |     for receiver in self.receivers_for(sender)]
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 285, in _on_scriptrunner_event
streamlit    |     self._enqueue_new_report_message()
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 383, in _enqueue_new_report_message
streamlit    |     _populate_user_info_msg(imsg.user_info)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 706, in _populate_user_info_msg
streamlit    |     msg.installation_id = Installation.instance().installation_id
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 129, in instance
streamlit    |     cls._instance = Installation()
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 133, in __init__
streamlit    |     self.installation_id_v1 = str(uuid.uuid5(uuid.NAMESPACE_DNS, _get_machine_id()))
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 49, in _get_machine_id
streamlit    |     subprocess.run(["sudo", "dbus-uuidgen", "--ensure"])
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
streamlit    |     with Popen(*popenargs, **kwargs) as process:
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
streamlit    |     restore_signals, start_new_session)
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
streamlit    |     raise child_exception_type(errno_num, err_msg, err_filename)
streamlit    | FileNotFoundError: [Errno 2] No such file or directory: 'sudo': 'sudo'
streamlit    | 
streamlit    | Exception in thread ScriptRunner.scriptThread:
streamlit    | Traceback (most recent call last):
streamlit    |   File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
streamlit    |     self.run()
streamlit    |   File "/usr/local/lib/python3.7/threading.py", line 870, in run
streamlit    |     self._target(*self._args, **self._kwargs)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 172, in _process_request_queue
streamlit    |     self._run_script(data)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 272, in _run_script
streamlit    |     self.on_event.send(ScriptRunnerEvent.SCRIPT_STARTED)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/blinker/base.py", line 267, in send
streamlit    |     for receiver in self.receivers_for(sender)]
streamlit    |   File "/usr/local/lib/python3.7/site-packages/blinker/base.py", line 267, in <listcomp>
streamlit    |     for receiver in self.receivers_for(sender)]
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 285, in _on_scriptrunner_event
streamlit    |     self._enqueue_new_report_message()
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 383, in _enqueue_new_report_message
streamlit    |     _populate_user_info_msg(imsg.user_info)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 706, in _populate_user_info_msg
streamlit    |     msg.installation_id = Installation.instance().installation_id
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 129, in instance
streamlit    |     cls._instance = Installation()
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 133, in __init__
streamlit    |     self.installation_id_v1 = str(uuid.uuid5(uuid.NAMESPACE_DNS, _get_machine_id()))
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 49, in _get_machine_id
streamlit    |     subprocess.run(["sudo", "dbus-uuidgen", "--ensure"])
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
streamlit    |     with Popen(*popenargs, **kwargs) as process:
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
streamlit    |     restore_signals, start_new_session)
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
streamlit    |     raise child_exception_type(errno_num, err_msg, err_filename)
streamlit    | FileNotFoundError: [Errno 2] No such file or directory: 'sudo': 'sudo'
streamlit    | 
streamlit    | Exception in thread ScriptRunner.scriptThread:
streamlit    | Traceback (most recent call last):
streamlit    |   File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
streamlit    |     self.run()
streamlit    |   File "/usr/local/lib/python3.7/threading.py", line 870, in run
streamlit    |     self._target(*self._args, **self._kwargs)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 172, in _process_request_queue
streamlit    |     self._run_script(data)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 272, in _run_script
streamlit    |     self.on_event.send(ScriptRunnerEvent.SCRIPT_STARTED)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/blinker/base.py", line 267, in send
streamlit    |     for receiver in self.receivers_for(sender)]
streamlit    |   File "/usr/local/lib/python3.7/site-packages/blinker/base.py", line 267, in <listcomp>
streamlit    |     for receiver in self.receivers_for(sender)]
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 285, in _on_scriptrunner_event
streamlit    |     self._enqueue_new_report_message()
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 383, in _enqueue_new_report_message
streamlit    |     _populate_user_info_msg(imsg.user_info)
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/report_session.py", line 706, in _populate_user_info_msg
streamlit    |     msg.installation_id = Installation.instance().installation_id
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 129, in instance
streamlit    |     cls._instance = Installation()
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 133, in __init__
streamlit    |     self.installation_id_v1 = str(uuid.uuid5(uuid.NAMESPACE_DNS, _get_machine_id()))
streamlit    |   File "/usr/local/lib/python3.7/site-packages/streamlit/metrics_util.py", line 49, in _get_machine_id
streamlit    |     subprocess.run(["sudo", "dbus-uuidgen", "--ensure"])
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
streamlit    |     with Popen(*popenargs, **kwargs) as process:
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
streamlit    |     restore_signals, start_new_session)
streamlit    |   File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
streamlit    |     raise child_exception_type(errno_num, err_msg, err_filename)
streamlit    | FileNotFoundError: [Errno 2] No such file or directory: 'sudo': 'sudo'

@Presiton
Copy link
Author

Presiton commented May 8, 2022

image

@Presiton Presiton changed the title something wrong with Streamlit after deployment on ubuntu the Streamlit page always shows "Please Wait" May 8, 2022
@Presiton
Copy link
Author

Presiton commented May 8, 2022

image

@davidefiocco davidefiocco added the bug Something isn't working label May 9, 2022
@davidefiocco
Copy link
Owner

davidefiocco commented May 9, 2022

Hi @Presiton! Thanks for trying out the repo and reporting this! It seems that we're hit by this issue https://stackoverflow.com/questions/61871050/filenotfounderror-errno-2-no-such-file-or-directory-sudo-sudo
By using a newer version of streamlit (#22) the problem seems solved. Let me know if the new version on master fixes this for you so that we can close this!

Repository owner deleted a comment from Presiton May 9, 2022
@Presiton
Copy link
Author

Presiton commented May 9, 2022

The problem solved. Thank you very much!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants