Opened 13 years ago
Closed 13 years ago
#34243 closed defect (fixed)
py27-scikits-statsmodels depends on py27-pandas, but port has no such dependency
Reported by: | stefan.walk@… | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | cdeil (Christoph Deil) | |
Port: | py-scikits-statsmodels |
Description
Leads to an error while upgrading/installing if pandas is not installed, with
:info:build Traceback (most recent call last): :info:build File "setup.py", line 195, in <module> :info:build check_dependency_versions(min_versions) :info:build File "setup.py", line 47, in check_dependency_versions :info:build raise ImportError("statsmodels requires pandas") :info:build ImportError: statsmodels requires pandas
in the log file.
Change History (5)
comment:1 Changed 13 years ago by cdeil (Christoph Deil)
Cc: | Deil.Christoph@… added |
---|
comment:2 Changed 13 years ago by cdeil (Christoph Deil)
For me the upgrade to statsmodels 0.4 also failed because of the missing pandas dependency.
Because statsmodels is a dependency of pandas, I can't install pandas at all, because Macports wants to install statsmodels first:
$ port installed '*pandas*' None of the specified ports are installed. $ sudo port install py27-pandas ---> Computing dependencies for py27-scikits-statsmodels ---> Building py27-scikits-statsmodels Error: Target org.macports.build returned: shell command failed (see log for details) Log for py27-scikits-statsmodels is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-scikits-statsmodels/py27-scikits-statsmodels/main.log Error: Unable to upgrade port: 1 Error: Unable to execute port: upgrade py27-scikits-statsmodels failed
I guess the right way to resolve this circular dependency is to make pandas a required dependency of statsmodels, but statsmodels an optional dependency (a variant) for pandas?
comment:3 Changed 13 years ago by cdeil (Christoph Deil)
Please note ticket #34258 for pandas, where I mention the circular dependency problem and ask if python 3 versions could be added.
It would be very nice if python 3 versions could also be added for statsmodels. The statsmodels 0.4 release notes mention "full python 3 support":
https://github.com/statsmodels/statsmodels/blob/master/CHANGES.txt#L19
comment:4 Changed 13 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to stromnov@… |
---|---|
Port: | py-scikits-statsmodels added; py27-scikits-statsmodels removed |
comment:5 Changed 13 years ago by stromnov (Andrey Stromnov)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks!
Committed in r92562.
Cc Me!