AnswerDotAI / AnswerDotAI/fastlite
Tests might be broken
- Dominant language
- Jupyter Notebook
- Stars
- 232
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
I noticed that tests are disabled on this repo.
Also, after cloning the repo and running `nbdev_prepere && nbdev_clean` I get the following error:
```
CorruptError in fastlite/nbs/00_core.ipynb:
===========================================================================
While Executing Cell #7:
['Traceback (most recent call last):\n', ' File "venv/lib/python3.12/site-packages/nbdev/test.py", line 52, in test_nb\n k.run_all(nb, exc_stop=True, preproc=_no_eval)\n', ' File "venv/lib/python3.12/site-packages/execnb/shell.py", line 245, in run_all\n if self.exc and exc_stop: raise self.exc from None\n ^^^^^^^^^^^^^^^^^^^^^^^^\n', ' File "venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py", line 3546, in run_code\n exec(code_obj, self.user_global_ns, self.user_ns)\n', ' File "", line 2, in \n db = Database("chinook.sqlite")\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n', ' File "venv/lib/python3.12/site-packages/apswutils/db.py", line 269, in __init__\n self.conn = apsw.Connection(str(filename_or_conn))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', ' File "venv/lib/python3.12/site-packages/apsw/bestpractice.py", line 127, in best_practise_connection_apply\n func(connection)\n', ' File "venv/lib/python3.12/site-packages/apsw/bestpractice.py", line 81, in connection_optimize\n connection.pragma("optimize", 0x10002)\n', ' File "src/cursor.c", line 984, in APSWCursor_execute.sqlite3_prepare_v3\n', 'apsw.CorruptError: database disk image is malformed\n']
nbdev Tests Failed On The Following Notebooks:
==================================================
00_core.ipynb
```
Running it the second time I get:
```
NameError in fastlite/nbs/00_core.ipynb:
===========================================================================
While Executing Cell #50:
['Traceback (most recent call last):\n', ' File "venv/lib/python3.12/site-packages/nbdev/test.py", line 52, in test_nb\n k.run_all(nb, exc_stop=True, preproc=_no_eval)\n', ' File "venv/lib/python3.12/site-packages/execnb/shell.py", line 245, in run_all\n if self.exc and exc_stop: raise self.exc from None\n ^^^^^^^^^^^^^^^^^^^^^^^^\n', ' File "venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py", line 3546, in run_code\n exec(code_obj, self.user_global_ns, self.user_ns)\n', ' File "", line 1, in \n albums(limit=1)\n ^^^^^^\n', "NameError: name 'albums' is not defined\n"]
nbdev Tests Failed On The Following Notebooks:
==================================================
00_core.ipynb
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.