doccaz / scc-tools

A set of simple tools to interact with SUSE Customer Center (SCC)
MIT License
13 stars 1 forks source link

Please document the usage of vercheck-cache.py and fix "ModuleNotFoundError: No module named 'platformdirs'" #25

Closed roseswe closed 2 years ago

roseswe commented 2 years ago

$ ./vercheck-cache.py Traceback (most recent call last): File "./vercheck-cache.py", line 6, in from platformdirs import user_cache_dir ModuleNotFoundError: No module named 'platformdirs'

doccaz commented 2 years ago

This looks suspiciously like VS Code trying to "fix" things automatically. I removed the import, and it's still working fine. I really do not need the "platformdirs" module, I just happened to have a variable named "user_cache_dir". Coincidentally the systems where we tested it must have had it installed previously, so I didn't notice it earlier.

doccaz commented 2 years ago

There you go, please try it again.