albahnsen / pycircular

pycircular is a Python module for circular data analysis
BSD 3-Clause "New" or "Revised" License
93 stars 6 forks source link

pip install does not include necessary dependencies #14

Open MitchellAcoustics opened 1 year ago

MitchellAcoustics commented 1 year ago

When using pip install, there are several apparently necessary dependencies which do not get installed. To reproduce:

pip install pycircular
python
import pycircular

results in:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\mitch\AppData\Roaming\pypoetry\venv\lib\site-packages\pycircular\__init__.py", line 28, in <module>
    from pycircular import stats, plots, circular, utils
  File "C:\Users\mitch\AppData\Roaming\pypoetry\venv\lib\site-packages\pycircular\stats.py", line 5, in <module>
    from statsmodels.distributions.empirical_distribution import ECDF
ModuleNotFoundError: No module named 'statsmodels'

So far it appears the missing dependencies include statsmodels, matplotlib, and seaborn. After separating installing these, pycircular imports just fine!

On a related note, the pip install also gives a deprecation warning that installing via setup.py will not be supported as of pip 23.1. DEPRECATION: pycircular is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559