Closed woodenzen closed 3 years ago
Resolved with @pryley's suggestion I use a simpler class for the archive_path.py.
Python 2 which comes with macOS includes the Foundation module. If you are using Homebrew to install Python 3, you may have needed to pip install pyobjc
(Not the foundation@0.1.0a0.dev1
module).
Anyway, it's no longer needed now.
My embarrassment is in full bloom. The script work great last night. This morning I wake to a pull request and implement it no problem. Then I go and give both zkdashboard.py and standalone archive_path..py a try and lo-and-behold I get the message
ModuleNotFoundError: No module named 'Foundation'
.For the life of me, I can't remember anything I might have done. It worked great yesterday and last night.
All the tips on the internet on how to resolve this are just
pip install Foundations
. I've uninstalled and reinstalled and checked the directory to be sure it is there. I use virtual environments and it too is set up with foundations. I get this same behavior when I run them outside the virtual environment I've been using all along. I checked withpip freeze
.Any tips on how I might resolve this? It must have been something stupid this beginner did. Having things working then suddenly not and being frustrated by the help on the internet is doubly frustrating. Having to admit it triples the pain.