Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests might be broken #61

Open
ozpau opened this issue Mar 9, 2025 · 0 comments
Open

Tests might be broken #61

ozpau opened this issue Mar 9, 2025 · 0 comments

Comments

@ozpau
Copy link

ozpau commented Mar 9, 2025

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 "<ipython-input-1-726141b30b3b>", line 2, in <module>\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 "<ipython-input-1-35497c109647>", line 1, in <module>\n    albums(limit=1)\n    ^^^^^^\n', "NameError: name 'albums' is not defined\n"]


nbdev Tests Failed On The Following Notebooks:
==================================================
  00_core.ipynb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant