astetik icon indicating copy to clipboard operation
astetik copied to clipboard

pip install astetik is failing due to sklearn in requirements.txt instead of scikit-learn

Open mathav95raj opened this issue 1 year ago • 0 comments

pip install astetik is failing because it is unable to install the deprecated sklearn dependency. In the pypi page of sklearn, there is a notice to start using scikit-learn instead of sklearn . Request to change this in the requirements.txt and setup.py

Error message of pip installation in a fresh python environment

pip install astetik
Collecting astetik
  Using cached astetik-1.13-py3-none-any.whl (5.4 MB)
Collecting wrangle
  Using cached wrangle-0.7.2-py3-none-any.whl (52 kB)
Collecting pandas
  Using cached pandas-2.0.0-cp310-cp310-win_amd64.whl (11.2 MB)
Collecting geonamescache
  Using cached geonamescache-1.5.0-py3-none-any.whl (26.4 MB)
Collecting seaborn
  Using cached seaborn-0.12.2-py3-none-any.whl (293 kB)
Collecting statsmodels
  Using cached statsmodels-0.13.5-cp310-cp310-win_amd64.whl (9.1 MB)
Collecting sklearn
  Using cached sklearn-0.0.post4.tar.gz (3.6 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\mathavraj.j\AppData\Local\Temp\pip-install-bz3pwm5u\sklearn_08f62083d18c41bc8e66d870ee553b3f\setup.py", line 10, in <module>
          LONG_DESCRIPTION = f.read()
        File "C:\Users\mathavraj.j\AppData\Local\Programs\HCLTech\AION\2.7.0.3\python\lib\encodings\cp1252.py", line 23, in decode
          return codecs.charmap_decode(input,self.errors,decoding_table)[0]
      UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 7: character maps to <undefined>
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.```

mathav95raj avatar Apr 18 '23 10:04 mathav95raj