Skip to content

MeowMotion Logo

📦 Installation Guide

Welcome to MeowMotion, a Python package for detecting trips and transport modes from GPS data, built with ❤️ and structured using Poetry.


📌 Prerequisites

  • Python 3.11 is recommended for best compatibility.
  • Poetry (optional, for source installs):
pip install poetry

The easiest way to get started is to install directly from PyPI:

poetry new project_name
cd project_name
poetry add meowmotion

🚀 Install from Source

If you prefer to run the latest code or contribute:

git clone https://github.com/faraz-m-awan/meowmotion.git
cd meowmotion
poetry install

⚠️ Facing Issues with Other Python Versions?

If you're not using Python 3.11 and encounter errors while installing dependencies (especially related to compiled packages or lock file constraints): 1. Delete the existing lock file:

rm poetry.lock
2. Install dependencies using uv (a fast alternative to pip):
uv pip install -r pyproject.toml
This can help resolve compatibility issues with newer or older Python versions.

🛠️ Troubleshooting Build Errors (e.g., GDAL, igraph, C extensions)

Some dependencies in the geospatial stack require native libraries. If you hit errors related to GDAL, PROJ, or other C extensions, follow the platform-specific steps below.

🪟 For Windows:

  1. Install GDAL (if not already installed by QGIS/OSGeo4W):
    choco install gdal -y
    refreshenv
    
  2. Install CMake and build tools:
  3. CMake (via cmake.org or Chocolatey):
    choco install cmake -y
    
  4. Microsoft C++ Build Tools:
  5. Download from: https://visualstudio.microsoft.com/visual-cpp-build-tools/
  6. Include C++ build tools in setup

This ensures packages like python-igraph, fiona, or rasterio can compile or find pre-built wheels.

🐧 For Linux:

Install system dependencies before installing Python packages:

   sudo apt update
   sudo apt install build-essential cmake gdal-bin libgdal-dev libxml2-dev libglpk-dev libigraph-dev

✅ You're Ready!

You're all set to use MeowMotion! 🎉 You can now import MeowMotion and dive into the Quick Start Guide or explore the modules in the meowmotion/ directory. Happy analyzing! 🐾