Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Cant run it #59

Open
BestChessPlayerintheRoom opened this issue Jul 6, 2023 · 3 comments
Open

Cant run it #59

BestChessPlayerintheRoom opened this issue Jul 6, 2023 · 3 comments

Comments

@BestChessPlayerintheRoom

File "C:\Users\Arthas\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
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
Copy link
Owner

hayabhay commented Jul 6, 2023

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

@akmzero
Copy link

akmzero commented Jul 11, 2023

@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
Copy link
Owner

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

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

No branches or pull requests

3 participants