hayabhay / frogbase

Transform audio-visual content into navigable knowledge.
https://frogbase.dev
MIT License
781 stars 95 forks source link

Cant run it #59

Open BestChessPlayerintheRoom opened 1 year ago

BestChessPlayerintheRoom commented 1 year ago

File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _runscript exec(code, module.dict) File "C:\Users\Arthas\Downloads\frogbase-main\ui\01🏠_Home.py", line 12, in init_session(st.session_state) File "C:\Users\Arthas\Downloads\frogbase-main\ui\config.py", line 65, in init_session session_state.fb = FrogBase(datadir=DATADIR, library=library, verbose=VERBOSE, dev=DEV, persist=True) File "C:\Users\Arthas\Downloads\frogbase-main\frogbase\core.py", line 109, in init self.library = self._default_library File "C:\Users\Arthas\Downloads\frogbase-main\frogbase\core.py", line 139, in library self._initdb() File "C:\Users\Arthas\Downloads\frogbase-main\frogbase\core.py", line 188, in _initdb db_meta = self._db.get(Query().type == "meta") if self._db else None File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\site-packages\tinydb\database.py", line 268, in len return len(self.table(self.default_table_name)) File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\site-packages\tinydb\table.py", line 645, in len return len(self._read_table()) File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\site-packages\tinydb\table.py", line 704, in _read_table tables = self._storage.read() File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\site-packages\tinydb\storages.py", line 136, in read return json.load(self._handle) File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\json__init.py", line 293, in load return loads(fp.read(), File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\json\init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx)

hayabhay commented 1 year ago

Thanks for the flag. Just pushed a temporary patch. Please let me know if it fixes things.

akmzero commented 1 year ago

@BestChessPlayerintheRoom might be worth trying to install in WSL.

Running in a Ubuntu VM I did these steps to get it started.

sudo apt-get install ffmpeg python3 python3-pip python3.10-venv python3-dotenv -y mkdir ~/Desktop/frogbase cd ~/Desktop/frogbase wget https://github.com/hayabhay/frogbase/archive/refs/heads/main.zip unzip main.zip pip install frogbase streamlit python3 -m venv .venv source .venv/bin/activate streamlit run frogbase-main/ui/01_🏠_Home.py

hayabhay commented 1 year ago

Thanks for the additional steps! I will also be putting out a Dockererized version this weekend that should help with some of this.