sean
June 26, 2024, 9:13am
1
Hi team,
I tried to install it on Databricks using $pip install pymc-marketing
but it only gives me pymc-marketing-0.1.1, not the version 0.6.0. And then, I tried to reproduce the analysis on your web but got the error module 'pymc_marketing.clv.utils' has no attribute 'rfm_summary'
. I guess it is because of the version is too old? Any help will be greatly appreciated!
Hey @sean ,
You’re correct in that the version is too old. Do you have a CLI trace from the attempted pip install? If so we might be able to identify the pinned dependency that’s causing the issue.
sean
June 26, 2024, 3:51pm
3
Hi @ColtAllen ,
Thank you for your attention! Below is the log:
Python interpreter will be restarted.
Collecting pymc-marketing
Downloading pymc_marketing-0.1.1-py3-none-any.whl (45 kB)
Collecting scikit-learn>=1.1.1
Downloading scikit_learn-1.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.1 MB)
Requirement already satisfied: numpy>=1.17 in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from pymc-marketing) (1.24.4)
Collecting matplotlib>=3.5.1
Downloading matplotlib-3.7.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB)
Requirement already satisfied: xarray in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from pymc-marketing) (2023.1.0)
Requirement already satisfied: pandas in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from pymc-marketing) (2.0.3)
Requirement already satisfied: arviz>=0.13.0 in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from pymc-marketing) (0.15.1)
Collecting seaborn>=0.12.2
Downloading seaborn-0.13.2-py3-none-any.whl (294 kB)
Collecting pymc>=5.3.0
Downloading pymc-5.6.1-py3-none-any.whl (450 kB)
Requirement already satisfied: setuptools>=60.0.0 in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from arviz>=0.13.0->pymc-marketing) (70.1.1)
Requirement already satisfied: typing-extensions>=4.1.0 in /databricks/python3/lib/python3.8/site-packages (from arviz>=0.13.0->pymc-marketing) (4.12.2)
Requirement already satisfied: scipy>=1.8.0 in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from arviz>=0.13.0->pymc-marketing) (1.10.1)
Requirement already satisfied: packaging in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from arviz>=0.13.0->pymc-marketing) (24.1)
Requirement already satisfied: h5netcdf>=1.0.2 in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from arviz>=0.13.0->pymc-marketing) (1.1.0)
Requirement already satisfied: xarray-einstats>=0.3 in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from arviz>=0.13.0->pymc-marketing) (0.5.1)
Requirement already satisfied: h5py in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from h5netcdf>=1.0.2->arviz>=0.13.0->pymc-marketing) (3.11.0)
Collecting contourpy>=1.0.1
Downloading contourpy-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (301 kB)
Requirement already satisfied: pillow>=6.2.0 in /databricks/python3/lib/python3.8/site-packages (from matplotlib>=3.5.1->pymc-marketing) (8.2.0)
Requirement already satisfied: python-dateutil>=2.7 in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from matplotlib>=3.5.1->pymc-marketing) (2.9.0.post0)
Requirement already satisfied: pyparsing>=2.3.1 in /databricks/python3/lib/python3.8/site-packages (from matplotlib>=3.5.1->pymc-marketing) (2.4.7)
Requirement already satisfied: importlib-resources>=3.2.0 in /databricks/python3/lib/python3.8/site-packages (from matplotlib>=3.5.1->pymc-marketing) (6.4.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /databricks/python3/lib/python3.8/site-packages (from matplotlib>=3.5.1->pymc-marketing) (1.3.1)
Collecting fonttools>=4.22.0
Downloading fonttools-4.53.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB)
Requirement already satisfied: cycler>=0.10 in /databricks/python3/lib/python3.8/site-packages (from matplotlib>=3.5.1->pymc-marketing) (0.10.0)
Requirement already satisfied: six in /databricks/python3/lib/python3.8/site-packages (from cycler>=0.10->matplotlib>=3.5.1->pymc-marketing) (1.15.0)
Requirement already satisfied: zipp>=3.1.0 in /databricks/python3/lib/python3.8/site-packages (from importlib-resources>=3.2.0->matplotlib>=3.5.1->pymc-marketing) (3.19.2)
Requirement already satisfied: pytz>=2020.1 in /databricks/python3/lib/python3.8/site-packages (from pandas->pymc-marketing) (2020.5)
Requirement already satisfied: tzdata>=2022.1 in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from pandas->pymc-marketing) (2024.1)
Collecting cachetools>=4.2.1
Downloading cachetools-5.3.3-py3-none-any.whl (9.3 kB)
Collecting pytensor<2.13,>=2.12.0
Downloading pytensor-2.12.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB)
Requirement already satisfied: cloudpickle in /databricks/python3/lib/python3.8/site-packages (from pymc>=5.3.0->pymc-marketing) (2.2.1)
Requirement already satisfied: fastprogress>=0.2.0 in /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55/lib/python3.8/site-packages (from pymc>=5.3.0->pymc-marketing) (1.0.3)
Collecting miniKanren
Downloading miniKanren-1.0.3.tar.gz (41 kB)
Collecting logical-unification
Downloading logical-unification-0.4.6.tar.gz (31 kB)
Collecting etuples
Downloading etuples-0.3.9.tar.gz (30 kB)
Requirement already satisfied: filelock in /usr/local/lib/python3.8/dist-packages (from pytensor<2.13,>=2.12.0->pymc>=5.3.0->pymc-marketing) (3.6.0)
Collecting cons
Downloading cons-0.4.6.tar.gz (26 kB)
Requirement already satisfied: threadpoolctl>=2.0.0 in /databricks/python3/lib/python3.8/site-packages (from scikit-learn>=1.1.1->pymc-marketing) (2.1.0)
Collecting joblib>=1.1.1
Downloading joblib-1.4.2-py3-none-any.whl (301 kB)
Collecting toolz
Downloading toolz-0.12.1-py3-none-any.whl (56 kB)
Collecting multipledispatch
Downloading multipledispatch-1.0.0-py3-none-any.whl (12 kB)
Building wheels for collected packages: cons, logical-unification, etuples, miniKanren
Building wheel for cons (setup.py): started
Building wheel for cons (setup.py): finished with status 'done'
Created wheel for cons: filename=cons-0.4.6-py3-none-any.whl size=9098 sha256=e6d758ca33e98f972595e855e36b5936d65edb81622f7c25607a1dc12b1083de
Stored in directory: /home/spark-6fe4c297-558e-457d-bef9-cb/.cache/pip/wheels/99/1e/25/8aaf260ff04079f9ae88ddc7dff1c344049f092fc87ef61a3b
Building wheel for logical-unification (setup.py): started
Building wheel for logical-unification (setup.py): finished with status 'done'
Created wheel for logical-unification: filename=logical_unification-0.4.6-py3-none-any.whl size=13911 sha256=51f906ad4407cd126e504ba5d4ac449f4dad5fa93374bfda495f3b2f65ae44d9
Stored in directory: /home/spark-6fe4c297-558e-457d-bef9-cb/.cache/pip/wheels/3a/ba/c0/41870a2550bb5c7f7d584882da204a2f570f3da7f939921b8a
Building wheel for etuples (setup.py): started
Building wheel for etuples (setup.py): finished with status 'done'
Created wheel for etuples: filename=etuples-0.3.9-py3-none-any.whl size=12617 sha256=9d527a15cfcb16d06d808b43147998005fd59b517e81b484025d796cb3497330
Stored in directory: /home/spark-6fe4c297-558e-457d-bef9-cb/.cache/pip/wheels/8f/31/a4/d168fd2653f35b4977d06a7607985b941daae136a3eda13042
Building wheel for miniKanren (setup.py): started
Building wheel for miniKanren (setup.py): finished with status 'done'
Created wheel for miniKanren: filename=miniKanren-1.0.3-py3-none-any.whl size=23907 sha256=fbadfce189ce5eb303d78fa178d38ccfb02503860eaa6bd896c968b7b4ad110a
Stored in directory: /home/spark-6fe4c297-558e-457d-bef9-cb/.cache/pip/wheels/06/83/f0/bf4f50c0e6bfab8ae0860cb6e4a029a8a5346e3c1c38d926e6
Successfully built cons logical-unification etuples miniKanren
Installing collected packages: toolz, multipledispatch, logical-unification, cons, fonttools, etuples, contourpy, miniKanren, matplotlib, pytensor, joblib, cachetools, seaborn, scikit-learn, pymc, pymc-marketing
Attempting uninstall: matplotlib
Found existing installation: matplotlib 3.4.2
Not uninstalling matplotlib at /databricks/python3/lib/python3.8/site-packages, outside environment /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55
Can't uninstall 'matplotlib'. No files were found to uninstall.
Attempting uninstall: joblib
Found existing installation: joblib 1.0.1
Not uninstalling joblib at /databricks/python3/lib/python3.8/site-packages, outside environment /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55
Can't uninstall 'joblib'. No files were found to uninstall.
Attempting uninstall: seaborn
Found existing installation: seaborn 0.11.1
Not uninstalling seaborn at /databricks/python3/lib/python3.8/site-packages, outside environment /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55
Can't uninstall 'seaborn'. No files were found to uninstall.
Attempting uninstall: scikit-learn
Found existing installation: scikit-learn 0.24.1
Not uninstalling scikit-learn at /databricks/python3/lib/python3.8/site-packages, outside environment /local_disk0/.ephemeral_nfs/envs/pythonEnv-6fe4c297-558e-457d-bef9-cb27ee04ca55
Can't uninstall 'scikit-learn'. No files were found to uninstall.
Successfully installed cachetools-5.3.3 cons-0.4.6 contourpy-1.1.1 etuples-0.3.9 fonttools-4.53.0 joblib-1.4.2 logical-unification-0.4.6 matplotlib-3.7.5 miniKanren-1.0.3 multipledispatch-1.0.0 pymc-5.6.1 pymc-marketing-0.1.1 pytensor-2.12.3 scikit-learn-1.3.2 seaborn-0.13.2 toolz-0.12.1
Python interpreter will be restarted.
Looks like you’re using python 3.8, which is no longer supported. Are you able to use 3.10 or higher?