YttriLab / A-SOID

An active learning platform for expert-guided, data efficient discovery of behavior.
Other
53 stars 8 forks source link

streamlit fails to run #54

Closed mauricev closed 8 months ago

mauricev commented 10 months ago

On Windows 11, we installed a-soid. The installation proceeded uneventfully, unlike the Silicon Mac with Sonoma. However, when we run it, we get this error

Error: StreamLit requires raw Python (.py) files, but the provided file has no extension.
JensBlack commented 9 months ago

Hi Mauricev,

thanks for reporting this installation issue. This might be a path issue of the asoid app command.

  1. Can you give me more information on the steps you took before calling the app?

Here is an example how to do this normally:

(base) C:\Users\JSchw>activate asoid

(asoid) C:\Users\JSchw>asoid app

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8501
  Network URL: http://172.26.33.62:8501
  1. Can you move to the installation folder and run asoid by calling streamlit run asoid/app,py

This is the alternative directly with streamlit:

  1. Go to your local git clone of asoid
    (base) C:\Users\JSchw\PycharmProjects\A-SOID>activate asoid
  2. Run asoid with:
    (asoid) C:\Users\JSchw\PycharmProjects\A-SOID> streamlit run asoid/app.py

Let me know if this helps!

JensBlack commented 8 months ago

closing as stale. feel free to open again

arjunsur12 commented 2 months ago

Had the same issue, the alternative to run with streamlit (steps 1 and 2 at the bottom) worked. Thank you!