SETUP GUIDE

Shelf Counting Database

Install Python and the required libraries to run the shelf counting tool on your laptop.

INTERNAL USE

Protected Content

This setup guide is restricted. Please log in to view the instructions.

Log In to Continue

1. Install Python

Download Python 3.11 or newer from the official site:

python.org/downloads

  • Windows: Check the box that says “Add Python to PATH” during installation.
  • Mac: Use the official installer (or Homebrew if you prefer).

Open a terminal and confirm it works:

python --version

or

python3 --version

2. Download the Files

Download both files and put them in the same folder on your computer (example: Documents/ShelfCounter).

Download requirements.txt Download ShelfCounter10.28.py

If the .py file opens as text in the browser
Right-click the download button and choose Save link as… (or Save target as…), then save the file as ShelfCounter10.28.py.

3. Install Dependencies

Open a terminal and navigate to the folder that contains requirements.txt, or copy the full path to the file.

Then run:

pip install -r requirements.txt

If you are not in the same folder, use the full path instead:

pip install -r "C:\Users\YourName\Documents\ShelfCounter\requirements.txt"

Replace the path above with the actual location of your file. You can right-click the file in File Explorer and choose “Copy as path” on Windows.

If pip is not found, use:

python -m pip install -r requirements.txt

This installs openpyxl (Excel support) and colorama (colored terminal output).

4. Run the Program

From the same folder, start the tool:

python ShelfCounter10.28.py

or

python3 ShelfCounter10.28.py

A menu will appear. You can process an Excel gondola file, enter data manually, or compare two files.

Tips

  • Excel files must be .xlsx format.
  • Gondola labels are read from row 2 (example: 1A, 2B).
  • Descriptions that include footage (example: Cereal - 8') are detected automatically.
  • Unrecognized descriptions will prompt you to pick a match or skip.

Troubleshooting

pip: command not found
Use python -m pip or python3 -m pip instead.

externally-managed-environment error
Create a virtual environment first:

python3 -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # Windows
pip install -r requirements.txt

Tkinter errors on Mac
Install Python from python.org instead of the system version.

Need Help?

If you run into issues, contact the team lead with a screenshot of the error.

← Back to Shelf Counting Project