You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python -m pix2tex.api.run encountered an import error due to a naming conflict between pix2tex/api/streamlit.py and streamlit package.
Traceback (most recent call last):
File "D:\Software\Miniconda3\envs\cam\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\Software\Miniconda3\envs\cam\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\Software\Miniconda3\envs\cam\Scripts\streamlit.exe\__main__.py", line 4, in<module>
File "D:\Software\Miniconda3_envs\cam\Lib\site-packages\pix2tex\api\streamlit.py", line 4, in<module>
from st_img_pastebutton import paste
File "D:\Software\Miniconda3\envs\cam\lib\site-packages\st_img_pastebutton\__init__.py", line 2, in<module>
import streamlit.components.v1 as components
ModuleNotFoundError: No module named 'streamlit.components';'streamlit' is not a package
Question
python -m pix2tex.api.run
encountered an import error due to a naming conflict betweenpix2tex/api/streamlit.py
andstreamlit
package.Solution
pix2tex/api/streamlit.py
tostreamlit_.py
pix2tex/api/run.py:11
:subprocess.call(['streamlit', 'run', 'streamlit_.py'], cwd=path)
The text was updated successfully, but these errors were encountered: