What I’m trying to do:
Hi, I’m trying to set up Uplink following the Quickstart tutorial using the latest python 3.10. When trying to import anvil.server
, I get the following error:
/Users/clauslang/PycharmProjects/Kodex/venv/bin/python /Users/clauslang/PycharmProjects/Kodex/hello.py
Traceback (most recent call last):
File "/Users/clauslang/PycharmProjects/Kodex/hello.py", line 1, in <module>
import anvil.server
File "/Users/clauslang/PycharmProjects/Kodex/venv/lib/python3.10/site-packages/anvil/__init__.py", line 161, in <module>
from ._components import *
File "/Users/clauslang/PycharmProjects/Kodex/venv/lib/python3.10/site-packages/anvil/_components.py", line 3, in <module>
from . import server, _server
File "/Users/clauslang/PycharmProjects/Kodex/venv/lib/python3.10/site-packages/anvil/server.py", line 80, in <module>
class TaskState(threading.local, collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping' ```
I suspect this has to do with the python version and that I should try 3.6 since that’s the latest version I can choose for the server modules in the online editor? Would like to confirm first since at the moment, it is a bit of a difficult process to install older python versions on the new Macbook M1 I’m using. Also, python 3.6 is reaching end of life soon, so would like to use a more recent version ideally.