Im trying to run appinventor offline on linux.
I had installed all of the things required and atlast i ran java dev app server command.
kumaraswamy@kumaraswamy7:~$ sudo su
[sudo] password for kumaraswamy:
root@kumaraswamy7:/home/kumaraswamy# /home/kumaraswamy/google-cloud-sdk-318.0.0-linux-x86_64/google-cloud-sdk/bin/java_dev_appserver.sh --address=0.0.0.0 --port=8888 appengine/build/war/
Traceback (most recent call last):
File "/home/kumaraswamy/google-cloud-sdk-318.0.0-linux-x86_64/google-cloud-sdk/bin/bootstrapping/java_dev_appserver.py", line 10, in <module>
import bootstrapping
File "/home/kumaraswamy/google-cloud-sdk-318.0.0-linux-x86_64/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 46, in <module>
from googlecloudsdk.core.updater import update_manager
File "/home/kumaraswamy/google-cloud-sdk-318.0.0-linux-x86_64/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 39, in <module>
from googlecloudsdk.core.console import progress_tracker
File "/home/kumaraswamy/google-cloud-sdk-318.0.0-linux-x86_64/google-cloud-sdk/lib/googlecloudsdk/core/console/progress_tracker.py", line 631, in <module>
class _BaseStagedProgressTracker(collections.Mapping):
AttributeError: module 'collections' has no attribute 'Mapping'
But unfortunately it dosent work, i thought it was a issue of python version i upgraded it from (3.1 -> 3.9). But still that dosent fix the error.
I installed python by terminal, so i dont know where its located, by default there was py3.1, i downloaded the py3.9, i assume the script is still using the older version.
Yes, you have to type python3 for python 3.x. This shows you have no python 2 on board. I am not sure if this is an issue, just that I know that python 2 has worked for me in the past.