The package anvil is not produced by Anvil, which is a bit confusing. But, someone got there first: https://pypi.org/project/anvil
I would try to pip uninstall it first. And try running your script again but only with import anvil.server statement. It is possible that the anvil package is masking the anvil module from anvil-uplink.
Iām in the same boat as you. Did you get yours working @juliab?
I installed " pip install anvil-uplink" as you said but still I keep getting that message. Any help would be appreciated @stucork
I made it working by downgrading to Python 3.7 from 3.8. Also, make sure you either did not install package called anvil or un-istall it as it is a completely different app.
Iām getting the same error. I tried different versions of Python (3.6, 3.7 & 3.8) without success. Itād be great if anyone can suggest something to try here.
If you want to see exactly what I did, I recorded two short videos.
The essence is the same. I was able to install anvil-uplink, but Iām unable to import anvil.server in Python. I get the error: āNo module named āanvil.serverā; āanvilā is not a packageā as per the title of this forum thread.
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ā¦
Probably worth to mention that once anvil.py and anvil.pyc were deleted, installing anvil.uplink using pip3 was also very useful as my default was Python2.
Hi,
I had the same issue as luis.satch (with Mac OS), and following this forum it seems I was able to get the virtual environment to work in Terminal. But I want to be working in jupyter notebook, how do I do this in the notebook?
You should be able to launch jupyter inside your vitual environment.
If you do a google search for ārunning jupyter inside a virtual envā or similar - you should get some hits.
Donāt mean to necro this, but I was dumb and set the name of the file I was using to anvil.py so when I went to import something it was trying to import the file I was currently working in and got this same error.
So if you come here in the future and canāt get it to work after the above suggestions make sure you didnt name the file anvil.py.