yeatmanlab / AFQ-Insight

Statistical learning for AFQ results
http://yeatmanlab.github.io/AFQ-Insight/
BSD 3-Clause "New" or "Revised" License
10 stars 10 forks source link

Installation issue - sklearn dependency #143

Closed pierre-nedelec closed 8 months ago

pierre-nedelec commented 8 months ago

Hi! I'm getting an error when trying to install this package, via pip install afqinsight. Looking at the setup.cfg, it doesn't seem to come from this repo but the groupyr dependency though, is that right?

Collecting sklearn (from copt==0.8.4->groupyr>=0.2.7->afqinsight)
  Using cached sklearn-0.0.post12.tar.gz (2.6 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]
      The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
      rather than 'sklearn' for pip commands.

      Here is how to fix this error in the main use cases:
      - use 'pip install scikit-learn' rather than 'pip install sklearn'
      - replace 'sklearn' by 'scikit-learn' in your pip requirements files
        (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
      - if the 'sklearn' package is used by one of your dependencies,
        it would be great if you take some time to track which package uses
        'sklearn' instead of 'scikit-learn' and report it to their issue tracker
      - as a last resort, set the environment variable
        SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error

      More information is available at
      https://github.com/scikit-learn/sklearn-pypi-package
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
arokem commented 8 months ago

That's right. It's already fixed on the main branch on groupyr, but we need to make a new release of groupyr for this to take effect downstream (here).

For the time being, you can install groupyr from the main branch and then install AFQ-Insight from its main branch and I think that you should be fine.

On Thu, Feb 8, 2024 at 11:35 AM Pierre @.***> wrote:

Hi! I'm getting an error when trying to install this package, via pip install afqinsight. Looking at the setup.cfg, it doesn't seem to come from this repo but the groupyr dependency though, is that right?

Collecting sklearn (from copt==0.8.4->groupyr>=0.2.7->afqinsight) Using cached sklearn-0.0.post12.tar.gz (2.6 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] The 'sklearn' PyPI package is deprecated, use 'scikit-learn' rather than 'sklearn' for pip commands.

  Here is how to fix this error in the main use cases:
  - use 'pip install scikit-learn' rather than 'pip install sklearn'
  - replace 'sklearn' by 'scikit-learn' in your pip requirements files
    (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
  - if the 'sklearn' package is used by one of your dependencies,
    it would be great if you take some time to track which package uses
    'sklearn' instead of 'scikit-learn' and report it to their issue tracker
  - as a last resort, set the environment variable
    SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error

  More information is available at
  https://github.com/scikit-learn/sklearn-pypi-package
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

— Reply to this email directly, view it on GitHub https://github.com/yeatmanlab/AFQ-Insight/issues/143, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA46NR2DFUI3D4RCVJ7NPTYSUSHBAVCNFSM6AAAAABDAJ7JRGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZDKOJTGI4DGMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

pierre-nedelec commented 8 months ago
pip install git+https://github.com/richford/groupyr.git
pip install git+https://github.com/yeatmanlab/AFQ-Insight.git

that worked, thanks.