From dfe68b22cd3ddade1048dab7b08ade37f0c9cef3 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 8 Jun 2023 02:14:14 +0200 Subject: [PATCH] Update page '6 7 Sync Notes' --- 6 7 Sync Notes.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 6 7 Sync Notes.md diff --git a/6 7 Sync Notes.md b/6 7 Sync Notes.md new file mode 100644 index 0000000..448fead --- /dev/null +++ b/6 7 Sync Notes.md @@ -0,0 +1,53 @@ +1400h Administrative issues, CA HR laws, 40 hour per week requirement, they'd like a slower pace to get to less than 40 hours a week of combined research + mandatory assignment time. + +1445h Commit review + +* Sloetjes received some warnings in her terminal for both hers and Karens +* Karen can't use git still + +1450h Troubleshoot that +* Karen sees an error message saying that git isn't in the PATH of the container. +* find . -name *git* +* find . -name git +* apt list --installed +* dpkg -l +* apt is separate from dpkg because of 1) security and 2) apt supports other package formats + + +1520h You have to enable clipboard sharing on a MacOS Zoom host + + +1530h There doesn't seem to be an easy way to query the apt database for a search term in the descriptions of the installed packages. + +TODO: @sloetjes please update these with the mac versions + +1545h Went over multiple selection in VSC: +* alt+shift+right arrow = smart selection expand +* ctrl+d = add additional occurances of the selected text, enable multi-cursor mode +* shift+esc = cancel multiple cursor mode +* ctrl+shift+k = delete current line + +1600h Sloetjes reports that doing pip install -r requirements.txt gave an unrelated error + + +1610h apt search setuptools + +``` +TASK [Install Python requirements] ****************************************************************************************************************************************************************************************************************************************************************************************** +An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'pkg_resources' +fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (setuptools) on c8763b6a8098's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"} +``` + +* Explained that debian uses `python` to mean `python3`, but that's not guaranteed for older systems where it means `python2`, so always specify the python major version when referring to packages. + +* Playbooks contain plays, which contain tasks + +* yaml sequences = python arrays, mappings = python dicts +* follow the dashes up and down to see which other elements are part of your sequence/array +* sequences end when you go draw a line down the list of dashes and it hits something +* Used `apt show` to search for setuptools +* Noted that Ansible really had two errors, one where it said no module named pkg_resources, another one saying it couldn't import setuptools +* Used `apt-cache showpkg` to verify that pkg-resources was in the setuptools package +* Updated playbook to install those packages +* amd64 = intel 64 bit processors in a Linux context +* Packages can also be investigated on the Ubuntu website: https://packages.ubuntu.com/