Open tonilopezortiz78 opened 1 year ago
Same here. Python 3.10.8 I did:
conda create --name streamlit
conda activate streamlit
pip install git+https://github.com/GauriSP10/streamlit_login_auth_ui
conda install -c conda-forge streamlit
conda install -c conda-forge ipython
After
ipython
I entered:
In [1]: import streamlit as st
In [2]: import streamlit_simple_auth as ssa
---------------------------------------------------------------------------
StreamlitAPIException Traceback (most recent call last)
Cell In[2], line 1
----> 1 import streamlit_simple_auth as ssa
File ~\OneDrive - Novartis Pharma AG\gitprojects\streamlit_simple_auth\streamlit_simple_auth\__init__.py:3
1 __version__ = '0.1.0'
----> 3 from .widgets import __login__
File ~\OneDrive - Novartis Pharma AG\gitprojects\streamlit_simple_auth\streamlit_simple_auth\widgets.py:7
5 from streamlit_lottie import st_lottie
6 from streamlit_option_menu import option_menu
----> 7 from streamlit_cookies_manager import EncryptedCookieManager
8 from .utils import PassHandler
10 '''
11 from .utils import load_lottieurl
12 from .utils import check_valid_name self.ph.is_valid_name
(...)
21 from .utils import check_current_passwd self.ph.is_pass
22 '''
File ~\scoop\apps\miniconda3\current\envs\python385\lib\site-packages\streamlit_cookies_manager\__init__.py:1
----> 1 from .cookie_manager import CookieManager
2 from .encrypted_cookie_manager import EncryptedCookieManager
4 __all__ = ['CookieManager', 'EncryptedCookieManager']
File ~\scoop\apps\miniconda3\current\envs\python385\lib\site-packages\streamlit_cookies_manager\cookie_manager.py:10 7 from streamlit.components.v1 import components
9 build_path = Path(__file__).parent / 'build'
---> 10 _component_func = components.declare_component("CookieManager.sync_cookies", path=str(build_path))
13 class CookieManager(MutableMapping[str, str]):
14 def __init__(self, *, path: str = None, prefix=""):
File ~\AppData\Roaming\Python\Python38\site-packages\streamlit\components\v1\components.py:301, in declare_component(name, path, url)
299 # Create our component object, and register it.
300 component = CustomComponent(name=component_name, path=path, url=url)
--> 301 ComponentRegistry.instance().register_component(component)
303 return component
File ~\AppData\Roaming\Python\Python38\site-packages\streamlit\components\v1\components.py:341, in ComponentRegistry.register_component(self, component)
339 abspath = component.abspath
340 if abspath is not None and not os.path.isdir(abspath):
--> 341 raise StreamlitAPIException(f"No such component directory: '{abspath}'")
343 with self._lock:
344 existing = self._components.get(component.name)
StreamlitAPIException: No such component directory: 'C:\Users\kimgw1\scoop\apps\miniconda3\current\envs\python385\lib\site-packages\streamlit_cookies_manager\build'
ERROR: Package 'streamlit-login-auth-ui' requires a different Python: 3.9.2 not in '>=3.9.12'
with: pip install streamlit-login-auth-ui or python3 -m pip install streamlit-login-auth-ui
ERROR: Could not find a version that satisfies the requirement streamlit-login-auth-ui (from versions: none) ERROR: No matching distribution found for streamlit-login-auth-ui
seems streamlit-cookies-manager requiries 3.8.10 ERROR: Package 'streamlit-cookies-manager' requires a different Python: 3.8.10 not in '<4.0,>=3.9'
still with : (venv) MS-7C51:~/software/streamlit/streamlit_login_auth_ui/streamlit_login_auth_ui$ python -V Python 3.8.10
~/software/streamlit/streamlit_login_auth_ui/streamlit_login_auth_ui$ pip3 install streamlit-cookies-manager /home/tony/.local/lib/python3.8/site-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release warnings.warn( /home/tony/.local/lib/python3.8/site-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release warnings.warn( ERROR: Could not find a version that satisfies the requirement streamlit-cookies-manager (from versions: none) ERROR: No matching distribution found for streamlit-cookies-manager