tetra-framework / tetra

Tetra - A full stack component framework for Django using Alpine.js
https://www.tetraframework.com
MIT License
540 stars 14 forks source link

_dbm error #11

Closed pablococeres closed 2 years ago

pablococeres commented 2 years ago

Hi, when I run the server or tetrabuild in python3.10.4 in windows 10 show me this error. File "~\AppData\Local\Programs\Python\Python310\lib\dbm\ndbm.py", line 3, in from _dbm import * ModuleNotFoundError: No module named '_dbm'

Is not a problem of python, I uninstalled tetra an the server runs normally

pablococeres commented 2 years ago

When I install again Tetra it works...

pablococeres commented 2 years ago

Sorry, When I modify settings and urls the error start again. Any idea?

samwillis commented 2 years ago

Thanks for the report, I'm currently not near a Windows machine. Could you post the full stack trace?

Tetra doesn't use dbm directly and so not sure what's triggering the error.

samwillis commented 2 years ago

Actually just spotted the error (VS Code had inserted a "auto" import for dbm, despite Tetra not using it). Will have a patched version released later.

samwillis commented 2 years ago

I have just uploaded a fixed version (v0.0.4) to PyPI. Let me know how you get on, Windows is less well tested than Linux and macOS.

pablococeres commented 2 years ago

It works!!! thanks a lot Sam.