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

streamlit is not running correctly #489

Closed
bwang482 opened this issue Oct 3, 2021 · 3 comments
Closed

streamlit is not running correctly #489

bwang482 opened this issue Oct 3, 2021 · 3 comments

Comments

@bwang482
Copy link
Contributor

bwang482 commented Oct 3, 2021

MacOS Big Sur 11.6
Python 3.7.11
Streamlit, version 0.88.0

I have forked and cloned the repo and installed all required libs. Now when I streamlit run promptsource/promptsource.py my browser gets http://localhost:8501/ but the interface stays on the high level metrics page no matter which mode I choose. It does not seem to respond to anything. Meanwhile I get a long list of the same lines on my command line:

Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
... ...
... ...

Not only that, I am unable to use ctrl+C to quit the app:

  Stopping...
  Stopping...
  Stopping...
  Stopping...
  Stopping...
  Stopping...
  Stopping...
  Stopping...
  Stopping...
  Stopping...
  Stopping...
  Stopping...

This is what I get and it never quits (permanently stopping...). Baffling! I have used the Dataset streamlit app for adding dataset not so long ago and had no issue.

@stephenbach
Copy link
Member

Possibly related to #411?

@bwang482
Copy link
Contributor Author

bwang482 commented Oct 3, 2021

Thanks @stephenbach ! That seems to have resolved the issue.

Now I get this error below while downloading:

FileNotFoundError: Couldn't find a directory or a dataset named 'story_cloze'. It doesn't exist locally at /Users/bowang/Code/promptsource/story_cloze or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.12.1/datasets/story_cloze/story_cloze.py
Traceback:
File "/Users/bowang/opt/anaconda3/envs/hug/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
    exec(code, module.__dict__)
File "/Users/bowang/Code/promptsource/promptsource/promptsource.py", line 120, in <module>
    infos = get_dataset_infos(dataset_name)
File "/Users/bowang/opt/anaconda3/envs/hug/lib/python3.7/site-packages/datasets/inspect.py", line 113, in get_dataset_infos
    module_path, _ = prepare_module(path)
File "/Users/bowang/opt/anaconda3/envs/hug/lib/python3.7/site-packages/datasets/load.py", line 528, in prepare_module
    f"Couldn't find a directory or a {resource_type} named '{path}'. "

Happy to open a new issue! Thanks in advance!

@bwang482
Copy link
Contributor Author

bwang482 commented Oct 3, 2021

Opened a new issue #492

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

No branches or pull requests

2 participants