Thanks and good job for porting the package to Python :D
I am having troubles installing the package using uv:
❯ uv pip install git+https://github.com/d2cml-ai/DRDID
Updating https://github.com/d2cml-ai/DRDID (HEAD) error: Git operation failed
Caused by: process didn't exit successfully: `git submodule update --recursive --init` (exit status: 128)
--- stderr
fatal: No url found for submodule path 'drdid_r/DRDID' in .gitmodules
It does work if I install pip and then install the package:
❯ uv pip install pip
Resolved 1 package in 68ms
Installed 1 package in 26ms
+ pip==24.2
❯ python -m pip install git+https://github.com/d2cml-ai/DRDID
Collecting git+https://github.com/d2cml-ai/DRDID
Cloning https://github.com/d2cml-ai/DRDID to /tmp/pip-req-build-wdku9up1
Running command git clone --filter=blob:none --quiet https://github.com/d2cml-ai/DRDID /tmp/pip-req-build-wdku9up1
Resolved https://github.com/d2cml-ai/DRDID to commit 90776e21b5778cd95228e3fd31ca8d2d257d2608
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pandas (from drdid==1.1.5)
Using cached pandas-2.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (89 kB)
Collecting numpy<=1.24.3 (from drdid==1.1.5)
Using cached numpy-1.24.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)
Collecting statsmodels (from drdid==1.1.5)
Using cached statsmodels-0.14.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.2 kB)
Collecting python-dateutil>=2.8.2 (from pandas->drdid==1.1.5)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas->drdid==1.1.5)
Using cached pytz-2024.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas->drdid==1.1.5)
Using cached tzdata-2024.2-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting scipy!=1.9.2,>=1.8 (from statsmodels->drdid==1.1.5)
Using cached scipy-1.14.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
Collecting patsy>=0.5.6 (from statsmodels->drdid==1.1.5)
Using cached patsy-0.5.6-py2.py3-none-any.whl.metadata (3.5 kB)
Collecting packaging>=21.3 (from statsmodels->drdid==1.1.5)
Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting six (from patsy>=0.5.6->statsmodels->drdid==1.1.5)
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached numpy-1.24.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Using cached pandas-2.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.1 MB)
Using cached statsmodels-0.14.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB)
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Using cached patsy-0.5.6-py2.py3-none-any.whl (233 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached pytz-2024.2-py2.py3-none-any.whl (508 kB)
Using cached scipy-1.14.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (41.2 MB)
Using cached tzdata-2024.2-py2.py3-none-any.whl (346 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: drdid
Building wheel for drdid (pyproject.toml) ... done
Created wheel for drdid: filename=drdid-1.1.5-py3-none-any.whl size=9530 sha256=393fe75f5229b2dbaea2960d8b0e56d135cd38eac84ec2011443b37143e1a929
Stored in directory: /tmp/pip-ephem-wheel-cache-htka2bk5/wheels/bd/21/1a/b47917442e9a4973a8f55ba05fff84a33641f5ae20fede75db
Successfully built drdid
Installing collected packages: pytz, tzdata, six, packaging, numpy, scipy, python-dateutil, patsy, pandas, statsmodels, drdid
Successfully installed drdid-1.1.5 numpy-1.24.3 packaging-24.1 pandas-2.2.3 patsy-0.5.6 python-dateutil-2.9.0.post0 pytz-2024.2 scipy-1.14.1 six-1.16.0 statsmodels-0.14.4 tzdata-2024.2
I am wondering if there is a specific reason for having the original R package as a submodule?
Thanks again!
Thanks and good job for porting the package to Python :D
I am having troubles installing the package using
uv:It does work if I install pip and then install the package:
I am wondering if there is a specific reason for having the original R package as a submodule?
Thanks again!