ModuleNotFoundError: No module named 'anvil.server'; 'anvil' is not a package

can you search for a file called anvil.py and see if you have one that just happens to print something and has variables x, y and data… it’s likely to be in the same directory that you’re working in…


edit:
we worked it out

>>> import anvil
>>> anvil.__file__
/users/..../anvil.py

delete/rename the conflicting file(s) and it worked

3 Likes