Skip to content

Commit

Permalink
python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
aspicer committed Oct 2, 2024
1 parent d760efd commit fcebd85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docker/clickhouse/docker-entrypoint-initdb.d/init-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
set -e

apt-get update
apt-get -y install python3
# Necessary because clickhouse runs on Ubuntu 20, which has an old glibc and an old python default
# Can remove when we upgrade clickhouse, as the new images run on Ubuntu 22
apt-get -y install python3.9
ln -s /usr/bin/python3.9 /usr/bin/python3
wget http://launchpadlibrarian.net/588931980/libc6_2.35-0ubuntu3_amd64.deb
dpkg --auto-deconfigure -i libc6_2.35-0ubuntu3_amd64.deb
cp -r /idl/* /var/lib/clickhouse/format_schemas/
4 changes: 2 additions & 2 deletions posthog/user_scripts/aggregate_funnel_trends.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dataclasses import dataclass, replace
from typing import Any, Union
import typing
from collections.abc import Sequence
import json


Expand Down Expand Up @@ -40,7 +40,7 @@ def calculate_funnel_trends_from_user_events(
breakdown_attribution_type: str,
funnel_order_type: str,
prop_vals: list[Any],
events: typing.Sequence[tuple[float, int, Union[list[str], int, str], list[int]]],
events: Sequence[tuple[float, int, Union[list[str], int, str], list[int]]],
):
default_entered_timestamp = EnteredTimestamp(0, [])
# If the attribution mode is a breakdown step, set this to the integer that represents that step
Expand Down

0 comments on commit fcebd85

Please sign in to comment.