Closed radlfabs closed 9 months ago
Note: I get the same behaviour for import neptune.integrations.sklearn as npt_utils
.
Hey @radlfabs ,
I am having some trouble reproducing this.
import neptune_sklearn
and import neptune.integrations.sklearn as npt_utils
both work for me, so does import scikitplot
. I am on the same OS and using the same package versions as your environment.
Could you try creating a new environment with a fresh neptune-sklearn
installation and let me know if the issue still occurs there?
Hey @SiddhantSadangi thank you so much for looking into this! I was able to reproduce the problem
Please see my terminal session below:
π Welcome to Codespaces! You are on our default image.
- It includes runtimes and tools for Python, Node.js, Docker, and more. See the full list here: https://aka.ms/ghcs-default-image
- Want to use a custom image instead? Learn more here: https://aka.ms/configure-codespace
π To explore VS Code to its fullest, search using the Command Palette (Cmd/Ctrl + Shift + P or F1).
π Edit away, run your app as usual, and we'll automatically make it available for you to access.
@radlfabs β /workspaces/codespaces-blank $ python -m venv test#24
@radlfabs β /workspaces/codespaces-blank $ source test#24/bin/activate
(test#24) @radlfabs β /workspaces/codespaces-blank $ pip install neptune neptune-sklearn
Collecting neptune
Downloading neptune-1.8.6-py3-none-any.whl (481 kB)
ββββββββββββββββββββββββββββββββββββββββ 481.5/481.5 kB 16.4 MB/s eta 0:00:00
Collecting neptune-sklearn
Downloading neptune_sklearn-2.1.1-py3-none-any.whl (14 kB)
Collecting swagger-spec-validator>=2.7.4
Downloading swagger_spec_validator-3.0.3-py2.py3-none-any.whl (27 kB)
Collecting urllib3
Downloading urllib3-2.1.0-py3-none-any.whl (104 kB)
ββββββββββββββββββββββββββββββββββββββββ 104.6/104.6 kB 4.8 MB/s eta 0:00:00
Collecting six>=1.12.0
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pandas
Downloading pandas-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.0 MB)
ββββββββββββββββββββββββββββββββββββββββ 13.0/13.0 MB 46.4 MB/s eta 0:00:00
Collecting requests-oauthlib>=1.0.0
Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting bravado<12.0.0,>=11.0.0
Downloading bravado-11.0.3-py2.py3-none-any.whl (38 kB)
Collecting future>=0.17.1
Downloading future-0.18.3.tar.gz (840 kB)
ββββββββββββββββββββββββββββββββββββββββ 840.9/840.9 kB 25.1 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting Pillow>=1.1.6
Downloading pillow-10.2.0-cp310-cp310-manylinux_2_28_x86_64.whl (4.5 MB)
ββββββββββββββββββββββββββββββββββββββββ 4.5/4.5 MB 52.5 MB/s eta 0:00:00
Collecting click>=7.0
Downloading click-8.1.7-py3-none-any.whl (97 kB)
ββββββββββββββββββββββββββββββββββββββββ 97.9/97.9 kB 5.0 MB/s eta 0:00:00
Collecting packaging
Downloading packaging-23.2-py3-none-any.whl (53 kB)
ββββββββββββββββββββββββββββββββββββββββ 53.0/53.0 kB 2.7 MB/s eta 0:00:00
Collecting websocket-client!=1.0.0,>=0.35.0
Downloading websocket_client-1.7.0-py3-none-any.whl (58 kB)
ββββββββββββββββββββββββββββββββββββββββ 58.5/58.5 kB 2.8 MB/s eta 0:00:00
Collecting PyJWT
Downloading PyJWT-2.8.0-py3-none-any.whl (22 kB)
Collecting oauthlib>=2.1.0
Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)
ββββββββββββββββββββββββββββββββββββββββ 151.7/151.7 kB 8.3 MB/s eta 0:00:00
Collecting boto3>=1.28.0
Downloading boto3-1.34.25-py3-none-any.whl (139 kB)
ββββββββββββββββββββββββββββββββββββββββ 139.3/139.3 kB 7.8 MB/s eta 0:00:00
Collecting requests>=2.20.0
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
ββββββββββββββββββββββββββββββββββββββββ 62.6/62.6 kB 3.4 MB/s eta 0:00:00
Collecting psutil
Downloading psutil-5.9.8-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (288 kB)
ββββββββββββββββββββββββββββββββββββββββ 288.2/288.2 kB 11.5 MB/s eta 0:00:00
Collecting GitPython>=2.0.8
Downloading GitPython-3.1.41-py3-none-any.whl (196 kB)
ββββββββββββββββββββββββββββββββββββββββ 196.4/196.4 kB 10.0 MB/s eta 0:00:00
Collecting yellowbrick>=1.3
Downloading yellowbrick-1.5-py3-none-any.whl (282 kB)
ββββββββββββββββββββββββββββββββββββββββ 282.6/282.6 kB 14.5 MB/s eta 0:00:00
Collecting scikit-learn>=0.24.1
Downloading scikit_learn-1.4.0-1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB)
ββββββββββββββββββββββββββββββββββββββββ 12.1/12.1 MB 50.2 MB/s eta 0:00:00
Collecting scikit-plot>=0.3.7
Downloading scikit_plot-0.3.7-py3-none-any.whl (33 kB)
Collecting botocore<1.35.0,>=1.34.25
Downloading botocore-1.34.25-py3-none-any.whl (11.9 MB)
ββββββββββββββββββββββββββββββββββββββββ 11.9/11.9 MB 51.6 MB/s eta 0:00:00
Collecting s3transfer<0.11.0,>=0.10.0
Downloading s3transfer-0.10.0-py3-none-any.whl (82 kB)
ββββββββββββββββββββββββββββββββββββββββ 82.1/82.1 kB 4.5 MB/s eta 0:00:00
Collecting jmespath<2.0.0,>=0.7.1
Downloading jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting msgpack
Downloading msgpack-1.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (530 kB)
ββββββββββββββββββββββββββββββββββββββββ 530.8/530.8 kB 20.8 MB/s eta 0:00:00
Collecting monotonic
Downloading monotonic-1.6-py2.py3-none-any.whl (8.2 kB)
Collecting python-dateutil
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
ββββββββββββββββββββββββββββββββββββββββ 247.7/247.7 kB 11.9 MB/s eta 0:00:00
Collecting simplejson
Downloading simplejson-3.19.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (137 kB)
ββββββββββββββββββββββββββββββββββββββββ 137.9/137.9 kB 7.0 MB/s eta 0:00:00
Collecting pyyaml
Downloading PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (705 kB)
ββββββββββββββββββββββββββββββββββββββββ 705.5/705.5 kB 22.4 MB/s eta 0:00:00
Collecting bravado-core>=5.16.1
Downloading bravado-core-6.1.1.tar.gz (63 kB)
ββββββββββββββββββββββββββββββββββββββββ 63.9/63.9 kB 3.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting typing-extensions
Downloading typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Collecting gitdb<5,>=4.0.1
Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)
ββββββββββββββββββββββββββββββββββββββββ 62.7/62.7 kB 3.6 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
ββββββββββββββββββββββββββββββββββββββββ 162.5/162.5 kB 8.3 MB/s eta 0:00:00
Collecting idna<4,>=2.5
Downloading idna-3.6-py3-none-any.whl (61 kB)
ββββββββββββββββββββββββββββββββββββββββ 61.6/61.6 kB 2.0 MB/s eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)
ββββββββββββββββββββββββββββββββββββββββ 142.1/142.1 kB 5.1 MB/s eta 0:00:00
Collecting threadpoolctl>=2.0.0
Downloading threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Collecting numpy<2.0,>=1.19.5
Downloading numpy-1.26.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
ββββββββββββββββββββββββββββββββββββββββ 18.2/18.2 MB 38.1 MB/s eta 0:00:00
Collecting joblib>=1.2.0
Downloading joblib-1.3.2-py3-none-any.whl (302 kB)
ββββββββββββββββββββββββββββββββββββββββ 302.2/302.2 kB 14.8 MB/s eta 0:00:00
Collecting scipy>=1.6.0
Downloading scipy-1.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.4 MB)
ββββββββββββββββββββββββββββββββββββββββ 38.4/38.4 MB 21.3 MB/s eta 0:00:00
Collecting matplotlib>=1.4.0
Downloading matplotlib-3.8.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.6 MB)
ββββββββββββββββββββββββββββββββββββββββ 11.6/11.6 MB 55.9 MB/s eta 0:00:00
Collecting jsonschema
Downloading jsonschema-4.21.1-py3-none-any.whl (85 kB)
ββββββββββββββββββββββββββββββββββββββββ 85.5/85.5 kB 4.4 MB/s eta 0:00:00
Collecting cycler>=0.10.0
Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting tzdata>=2022.7
Downloading tzdata-2023.4-py2.py3-none-any.whl (346 kB)
ββββββββββββββββββββββββββββββββββββββββ 346.6/346.6 kB 15.4 MB/s eta 0:00:00
Collecting pytz>=2020.1
Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
ββββββββββββββββββββββββββββββββββββββββ 502.5/502.5 kB 19.0 MB/s eta 0:00:00
Collecting urllib3
Downloading urllib3-2.0.7-py3-none-any.whl (124 kB)
ββββββββββββββββββββββββββββββββββββββββ 124.2/124.2 kB 6.6 MB/s eta 0:00:00
Collecting jsonref
Downloading jsonref-1.1.0-py3-none-any.whl (9.4 kB)
Collecting smmap<6,>=3.0.1
Downloading smmap-5.0.1-py3-none-any.whl (24 kB)
Collecting kiwisolver>=1.3.1
Downloading kiwisolver-1.4.5-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
ββββββββββββββββββββββββββββββββββββββββ 1.6/1.6 MB 24.9 MB/s eta 0:00:00
Collecting pyparsing>=2.3.1
Downloading pyparsing-3.1.1-py3-none-any.whl (103 kB)
ββββββββββββββββββββββββββββββββββββββββ 103.1/103.1 kB 5.7 MB/s eta 0:00:00
Collecting contourpy>=1.0.1
Downloading contourpy-1.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (310 kB)
ββββββββββββββββββββββββββββββββββββββββ 310.7/310.7 kB 14.8 MB/s eta 0:00:00
Collecting fonttools>=4.22.0
Downloading fonttools-4.47.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB)
ββββββββββββββββββββββββββββββββββββββββ 4.6/4.6 MB 52.6 MB/s eta 0:00:00
Collecting attrs>=22.2.0
Downloading attrs-23.2.0-py3-none-any.whl (60 kB)
ββββββββββββββββββββββββββββββββββββββββ 60.8/60.8 kB 2.8 MB/s eta 0:00:00
Collecting rpds-py>=0.7.1
Downloading rpds_py-0.17.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
ββββββββββββββββββββββββββββββββββββββββ 1.2/1.2 MB 27.3 MB/s eta 0:00:00
Collecting referencing>=0.28.4
Downloading referencing-0.32.1-py3-none-any.whl (26 kB)
Collecting jsonschema-specifications>=2023.03.6
Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)
Collecting isoduration
Downloading isoduration-20.11.0-py3-none-any.whl (11 kB)
Collecting fqdn
Downloading fqdn-1.5.1-py3-none-any.whl (9.1 kB)
Collecting webcolors>=1.11
Downloading webcolors-1.13-py3-none-any.whl (14 kB)
Collecting rfc3339-validator
Downloading rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB)
Collecting rfc3986-validator>0.1.0
Downloading rfc3986_validator-0.1.1-py2.py3-none-any.whl (4.2 kB)
Collecting uri-template
Downloading uri_template-1.3.0-py3-none-any.whl (11 kB)
Collecting jsonpointer>1.13
Downloading jsonpointer-2.4-py2.py3-none-any.whl (7.8 kB)
Collecting arrow>=0.15.0
Downloading arrow-1.3.0-py3-none-any.whl (66 kB)
ββββββββββββββββββββββββββββββββββββββββ 66.4/66.4 kB 3.2 MB/s eta 0:00:00
Collecting types-python-dateutil>=2.8.10
Downloading types_python_dateutil-2.8.19.20240106-py3-none-any.whl (9.7 kB)
Installing collected packages: pytz, monotonic, websocket-client, webcolors, urllib3, uri-template, tzdata, typing-extensions, types-python-dateutil, threadpoolctl, smmap, six, simplejson, rpds-py, rfc3986-validator, pyyaml, pyparsing, PyJWT, psutil, Pillow, packaging, oauthlib, numpy, msgpack, kiwisolver, jsonref, jsonpointer, joblib, jmespath, idna, future, fqdn, fonttools, cycler, click, charset-normalizer, certifi, attrs, scipy, rfc3339-validator, requests, referencing, python-dateutil, gitdb, contourpy, scikit-learn, requests-oauthlib, pandas, matplotlib, jsonschema-specifications, GitPython, botocore, arrow, yellowbrick, scikit-plot, s3transfer, jsonschema, isoduration, swagger-spec-validator, neptune-sklearn, boto3, bravado-core, bravado, neptune
DEPRECATION: future 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
Running setup.py install for future ... done
DEPRECATION: bravado-core 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
Running setup.py install for bravado-core ... done
Successfully installed GitPython-3.1.41 Pillow-10.2.0 PyJWT-2.8.0 arrow-1.3.0 attrs-23.2.0 boto3-1.34.25 botocore-1.34.25 bravado-11.0.3 bravado-core-6.1.1 certifi-2023.11.17 charset-normalizer-3.3.2 click-8.1.7 contourpy-1.2.0 cycler-0.12.1 fonttools-4.47.2 fqdn-1.5.1 future-0.18.3 gitdb-4.0.11 idna-3.6 isoduration-20.11.0 jmespath-1.0.1 joblib-1.3.2 jsonpointer-2.4 jsonref-1.1.0 jsonschema-4.21.1 jsonschema-specifications-2023.12.1 kiwisolver-1.4.5 matplotlib-3.8.2 monotonic-1.6 msgpack-1.0.7 neptune-1.8.6 neptune-sklearn-2.1.1 numpy-1.26.3 oauthlib-3.2.2 packaging-23.2 pandas-2.2.0 psutil-5.9.8 pyparsing-3.1.1 python-dateutil-2.8.2 pytz-2023.3.post1 pyyaml-6.0.1 referencing-0.32.1 requests-2.31.0 requests-oauthlib-1.3.1 rfc3339-validator-0.1.4 rfc3986-validator-0.1.1 rpds-py-0.17.1 s3transfer-0.10.0 scikit-learn-1.4.0 scikit-plot-0.3.7 scipy-1.12.0 simplejson-3.19.2 six-1.16.0 smmap-5.0.1 swagger-spec-validator-3.0.3 threadpoolctl-3.2.0 types-python-dateutil-2.8.19.20240106 typing-extensions-4.9.0 tzdata-2023.4 uri-template-1.3.0 urllib3-2.0.7 webcolors-1.13 websocket-client-1.7.0 yellowbrick-1.5
[notice] A new release of pip is available: 23.0.1 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
(test#24) @radlfabs β /workspaces/codespaces-blank $ python
Python 3.10.13 (main, Jan 10 2024, 19:45:45) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import neptune_sklearn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/neptune_sklearn/__init__.py", line 54, in <module>
from neptune_sklearn.impl import (
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/neptune_sklearn/impl/__init__.py", line 42, in <module>
from scikitplot.estimators import plot_learning_curve
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/scikitplot/__init__.py", line 2, in <module>
from . import metrics, cluster, decomposition, estimators
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/scikitplot/metrics.py", line 27, in <module>
from scipy import interp
ImportError: cannot import name 'interp' from 'scipy' (/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/scipy/__init__.py)
>>> import scikitplot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/scikitplot/__init__.py", line 2, in <module>
from . import metrics, cluster, decomposition, estimators
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/scikitplot/metrics.py", line 27, in <module>
from scipy import interp
ImportError: cannot import name 'interp' from 'scipy' (/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/scipy/__init__.py)
>>> import neptune.integrations.sklearn as npt_utils
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/neptune/integrations/sklearn/__init__.py", line 18, in <module>
from neptune_sklearn.impl import * # noqa: F401,F403
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/neptune_sklearn/__init__.py", line 54, in <module>
from neptune_sklearn.impl import (
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/neptune_sklearn/impl/__init__.py", line 42, in <module>
from scikitplot.estimators import plot_learning_curve
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/scikitplot/__init__.py", line 2, in <module>
from . import metrics, cluster, decomposition, estimators
File "/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/scikitplot/metrics.py", line 27, in <module>
from scipy import interp
ImportError: cannot import name 'interp' from 'scipy' (/workspaces/codespaces-blank/test#24/lib/python3.10/site-packages/scipy/__init__.py)
>>> quit()
(test#24) @radlfabs β /workspaces/codespaces-blank $ pip list
Package Version
------------------------- ---------------
arrow 1.3.0
attrs 23.2.0
boto3 1.34.25
botocore 1.34.25
bravado 11.0.3
bravado-core 6.1.1
certifi 2023.11.17
charset-normalizer 3.3.2
click 8.1.7
contourpy 1.2.0
cycler 0.12.1
fonttools 4.47.2
fqdn 1.5.1
future 0.18.3
gitdb 4.0.11
GitPython 3.1.41
idna 3.6
isoduration 20.11.0
jmespath 1.0.1
joblib 1.3.2
jsonpointer 2.4
jsonref 1.1.0
jsonschema 4.21.1
jsonschema-specifications 2023.12.1
kiwisolver 1.4.5
matplotlib 3.8.2
monotonic 1.6
msgpack 1.0.7
neptune 1.8.6
neptune-sklearn 2.1.1
numpy 1.26.3
oauthlib 3.2.2
packaging 23.2
pandas 2.2.0
pillow 10.2.0
pip 23.0.1
psutil 5.9.8
PyJWT 2.8.0
pyparsing 3.1.1
python-dateutil 2.8.2
pytz 2023.3.post1
PyYAML 6.0.1
referencing 0.32.1
requests 2.31.0
requests-oauthlib 1.3.1
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rpds-py 0.17.1
s3transfer 0.10.0
scikit-learn 1.4.0
scikit-plot 0.3.7
scipy 1.12.0
setuptools 65.5.0
simplejson 3.19.2
six 1.16.0
smmap 5.0.1
swagger-spec-validator 3.0.3
threadpoolctl 3.2.0
types-python-dateutil 2.8.19.20240106
typing_extensions 4.9.0
tzdata 2023.4
uri-template 1.3.0
urllib3 2.0.7
webcolors 1.13
websocket-client 1.7.0
yellowbrick 1.5
[notice] A new release of pip is available: 23.0.1 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
(test#24) @radlfabs β /workspaces/codespaces-blank $
@SiddhantSadangi
There seems to be a constellation, where scipy==1.12 is being installed, which causes the scikit-plot legacy code to fail.
I can run import neptune_sklearn
after pip install --upgrade scipy==1.11.4
:
@radlfabs β /workspaces/codespaces-blank $ pip install neptune
Collecting neptune
Downloading neptune-1.8.6-py3-none-any.whl.metadata (17 kB)
Requirement already satisfied: GitPython>=2.0.8 in /home/codespace/.local/lib/python3.10/site-packages (from neptune) (3.1.41)
Requirement already satisfied: Pillow>=1.1.6 in /home/codespace/.local/lib/python3.10/site-packages (from neptune) (10.2.0)
Collecting PyJWT (from neptune)
Downloading PyJWT-2.8.0-py3-none-any.whl.metadata (4.2 kB)
Collecting boto3>=1.28.0 (from neptune)
Downloading boto3-1.34.25-py3-none-any.whl.metadata (6.6 kB)
Collecting bravado<12.0.0,>=11.0.0 (from neptune)
Downloading bravado-11.0.3-py2.py3-none-any.whl (38 kB)
Collecting click>=7.0 (from neptune)
Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting future>=0.17.1 (from neptune)
Downloading future-0.18.3.tar.gz (840 kB)
ββββββββββββββββββββββββββββββββββββββββ 840.9/840.9 kB 16.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting oauthlib>=2.1.0 (from neptune)
Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)
ββββββββββββββββββββββββββββββββββββββββ 151.7/151.7 kB 4.2 MB/s eta 0:00:00
Requirement already satisfied: packaging in /home/codespace/.local/lib/python3.10/site-packages (from neptune) (23.2)
Requirement already satisfied: pandas in /home/codespace/.local/lib/python3.10/site-packages (from neptune) (2.1.4)
Requirement already satisfied: psutil in /home/codespace/.local/lib/python3.10/site-packages (from neptune) (5.9.7)
Requirement already satisfied: requests>=2.20.0 in /home/codespace/.local/lib/python3.10/site-packages (from neptune) (2.31.0)
Collecting requests-oauthlib>=1.0.0 (from neptune)
Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: six>=1.12.0 in /home/codespace/.local/lib/python3.10/site-packages (from neptune) (1.16.0)
Collecting swagger-spec-validator>=2.7.4 (from neptune)
Downloading swagger_spec_validator-3.0.3-py2.py3-none-any.whl (27 kB)
Requirement already satisfied: urllib3 in /usr/local/python/3.10.13/lib/python3.10/site-packages (from neptune) (2.0.7)
Requirement already satisfied: websocket-client!=1.0.0,>=0.35.0 in /home/codespace/.local/lib/python3.10/site-packages (from neptune) (1.7.0)
Collecting botocore<1.35.0,>=1.34.25 (from boto3>=1.28.0->neptune)
Downloading botocore-1.34.25-py3-none-any.whl.metadata (5.7 kB)
Collecting jmespath<2.0.0,>=0.7.1 (from boto3>=1.28.0->neptune)
Downloading jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting s3transfer<0.11.0,>=0.10.0 (from boto3>=1.28.0->neptune)
Downloading s3transfer-0.10.0-py3-none-any.whl.metadata (1.7 kB)
Collecting bravado-core>=5.16.1 (from bravado<12.0.0,>=11.0.0->neptune)
Downloading bravado-core-6.1.1.tar.gz (63 kB)
ββββββββββββββββββββββββββββββββββββββββ 63.9/63.9 kB 1.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting msgpack (from bravado<12.0.0,>=11.0.0->neptune)
Downloading msgpack-1.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.1 kB)
Requirement already satisfied: python-dateutil in /home/codespace/.local/lib/python3.10/site-packages (from bravado<12.0.0,>=11.0.0->neptune) (2.8.2)
Requirement already satisfied: pyyaml in /home/codespace/.local/lib/python3.10/site-packages (from bravado<12.0.0,>=11.0.0->neptune) (6.0.1)
Collecting simplejson (from bravado<12.0.0,>=11.0.0->neptune)
Downloading simplejson-3.19.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.1 kB)
Collecting monotonic (from bravado<12.0.0,>=11.0.0->neptune)
Downloading monotonic-1.6-py2.py3-none-any.whl (8.2 kB)
Requirement already satisfied: typing-extensions in /home/codespace/.local/lib/python3.10/site-packages (from bravado<12.0.0,>=11.0.0->neptune) (4.9.0)
Requirement already satisfied: gitdb<5,>=4.0.1 in /home/codespace/.local/lib/python3.10/site-packages (from GitPython>=2.0.8->neptune) (4.0.11)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/codespace/.local/lib/python3.10/site-packages (from requests>=2.20.0->neptune) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /home/codespace/.local/lib/python3.10/site-packages (from requests>=2.20.0->neptune) (3.6)
Requirement already satisfied: certifi>=2017.4.17 in /home/codespace/.local/lib/python3.10/site-packages (from requests>=2.20.0->neptune) (2023.11.17)
Requirement already satisfied: jsonschema in /home/codespace/.local/lib/python3.10/site-packages (from swagger-spec-validator>=2.7.4->neptune) (4.20.0)
Requirement already satisfied: numpy<2,>=1.22.4 in /home/codespace/.local/lib/python3.10/site-packages (from pandas->neptune) (1.26.3)
Requirement already satisfied: pytz>=2020.1 in /home/codespace/.local/lib/python3.10/site-packages (from pandas->neptune) (2023.3.post1)
Requirement already satisfied: tzdata>=2022.1 in /home/codespace/.local/lib/python3.10/site-packages (from pandas->neptune) (2023.4)
Collecting jsonref (from bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune)
Downloading jsonref-1.1.0-py3-none-any.whl (9.4 kB)
Requirement already satisfied: smmap<6,>=3.0.1 in /home/codespace/.local/lib/python3.10/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.8->neptune) (5.0.1)
Requirement already satisfied: attrs>=22.2.0 in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema->swagger-spec-validator>=2.7.4->neptune) (23.2.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema->swagger-spec-validator>=2.7.4->neptune) (2023.12.1)
Requirement already satisfied: referencing>=0.28.4 in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema->swagger-spec-validator>=2.7.4->neptune) (0.32.1)
Requirement already satisfied: rpds-py>=0.7.1 in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema->swagger-spec-validator>=2.7.4->neptune) (0.16.2)
Requirement already satisfied: fqdn in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema[format-nongpl]>=2.5.1->bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune) (1.5.1)
Requirement already satisfied: isoduration in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema[format-nongpl]>=2.5.1->bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune) (20.11.0)
Requirement already satisfied: jsonpointer>1.13 in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema[format-nongpl]>=2.5.1->bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune) (2.4)
Requirement already satisfied: rfc3339-validator in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema[format-nongpl]>=2.5.1->bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune) (0.1.4)
Requirement already satisfied: rfc3986-validator>0.1.0 in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema[format-nongpl]>=2.5.1->bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune) (0.1.1)
Requirement already satisfied: uri-template in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema[format-nongpl]>=2.5.1->bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune) (1.3.0)
Requirement already satisfied: webcolors>=1.11 in /home/codespace/.local/lib/python3.10/site-packages (from jsonschema[format-nongpl]>=2.5.1->bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune) (1.13)
Requirement already satisfied: arrow>=0.15.0 in /home/codespace/.local/lib/python3.10/site-packages (from isoduration->jsonschema[format-nongpl]>=2.5.1->bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune) (1.3.0)
Requirement already satisfied: types-python-dateutil>=2.8.10 in /home/codespace/.local/lib/python3.10/site-packages (from arrow>=0.15.0->isoduration->jsonschema[format-nongpl]>=2.5.1->bravado-core>=5.16.1->bravado<12.0.0,>=11.0.0->neptune) (2.8.19.20240106)
Downloading neptune-1.8.6-py3-none-any.whl (481 kB)
ββββββββββββββββββββββββββββββββββββββββ 481.5/481.5 kB 10.2 MB/s eta 0:00:00
Downloading boto3-1.34.25-py3-none-any.whl (139 kB)
ββββββββββββββββββββββββββββββββββββββββ 139.3/139.3 kB 3.7 MB/s eta 0:00:00
Downloading click-8.1.7-py3-none-any.whl (97 kB)
ββββββββββββββββββββββββββββββββββββββββ 97.9/97.9 kB 2.9 MB/s eta 0:00:00
Downloading PyJWT-2.8.0-py3-none-any.whl (22 kB)
Downloading botocore-1.34.25-py3-none-any.whl (11.9 MB)
ββββββββββββββββββββββββββββββββββββββββ 11.9/11.9 MB 45.9 MB/s eta 0:00:00
Downloading msgpack-1.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (530 kB)
ββββββββββββββββββββββββββββββββββββββββ 530.8/530.8 kB 12.3 MB/s eta 0:00:00
Downloading s3transfer-0.10.0-py3-none-any.whl (82 kB)
ββββββββββββββββββββββββββββββββββββββββ 82.1/82.1 kB 2.5 MB/s eta 0:00:00
Downloading simplejson-3.19.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (137 kB)
ββββββββββββββββββββββββββββββββββββββββ 137.9/137.9 kB 4.3 MB/s eta 0:00:00
Building wheels for collected packages: future, bravado-core
Building wheel for future (pyproject.toml) ... done
Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492024 sha256=4d9b3a5378ca8cdd8f484d1235670086434118b695f7ccbdcd0a6038f2e9d19d
Stored in directory: /home/codespace/.cache/pip/wheels/5e/a9/47/f118e66afd12240e4662752cc22cefae5d97275623aa8ef57d
Building wheel for bravado-core (pyproject.toml) ... done
Created wheel for bravado-core: filename=bravado_core-6.1.1-py2.py3-none-any.whl size=67673 sha256=4f511c32b2333c80cd23db83cbad67fde0aef9714bf2d65753b182d295c795a2
Stored in directory: /home/codespace/.cache/pip/wheels/42/35/4a/44ec4c358db21a5d63ed4e40f0f0012a438106f220bce4ccba
Successfully built future bravado-core
Installing collected packages: monotonic, simplejson, PyJWT, oauthlib, msgpack, jsonref, jmespath, future, click, requests-oauthlib, botocore, s3transfer, swagger-spec-validator, boto3, bravado-core, bravado, neptune
Successfully installed PyJWT-2.8.0 boto3-1.34.25 botocore-1.34.25 bravado-11.0.3 bravado-core-6.1.1 click-8.1.7 future-0.18.3 jmespath-1.0.1 jsonref-1.1.0 monotonic-1.6 msgpack-1.0.7 neptune-1.8.6 oauthlib-3.2.2 requests-oauthlib-1.3.1 s3transfer-0.10.0 simplejson-3.19.2 swagger-spec-validator-3.0.3
@radlfabs β /workspaces/codespaces-blank $ pip install neptune-sklearn
Collecting neptune-sklearn
Downloading neptune_sklearn-2.1.1-py3-none-any.whl.metadata (4.7 kB)
Requirement already satisfied: scikit-learn>=0.24.1 in /home/codespace/.local/lib/python3.10/site-packages (from neptune-sklearn) (1.3.2)
Collecting scikit-plot>=0.3.7 (from neptune-sklearn)
Downloading scikit_plot-0.3.7-py3-none-any.whl (33 kB)
Collecting yellowbrick>=1.3 (from neptune-sklearn)
Downloading yellowbrick-1.5-py3-none-any.whl (282 kB)
ββββββββββββββββββββββββββββββββββββββββ 282.6/282.6 kB 7.0 MB/s eta 0:00:00
Requirement already satisfied: numpy<2.0,>=1.17.3 in /home/codespace/.local/lib/python3.10/site-packages (from scikit-learn>=0.24.1->neptune-sklearn) (1.26.3)
Requirement already satisfied: scipy>=1.5.0 in /home/codespace/.local/lib/python3.10/site-packages (from scikit-learn>=0.24.1->neptune-sklearn) (1.11.4)
Requirement already satisfied: joblib>=1.1.1 in /home/codespace/.local/lib/python3.10/site-packages (from scikit-learn>=0.24.1->neptune-sklearn) (1.3.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/codespace/.local/lib/python3.10/site-packages (from scikit-learn>=0.24.1->neptune-sklearn) (3.2.0)
Requirement already satisfied: matplotlib>=1.4.0 in /home/codespace/.local/lib/python3.10/site-packages (from scikit-plot>=0.3.7->neptune-sklearn) (3.8.2)
Requirement already satisfied: cycler>=0.10.0 in /home/codespace/.local/lib/python3.10/site-packages (from yellowbrick>=1.3->neptune-sklearn) (0.12.1)
Requirement already satisfied: contourpy>=1.0.1 in /home/codespace/.local/lib/python3.10/site-packages (from matplotlib>=1.4.0->scikit-plot>=0.3.7->neptune-sklearn) (1.2.0)
Requirement already satisfied: fonttools>=4.22.0 in /home/codespace/.local/lib/python3.10/site-packages (from matplotlib>=1.4.0->scikit-plot>=0.3.7->neptune-sklearn) (4.47.0)
Requirement already satisfied: kiwisolver>=1.3.1 in /home/codespace/.local/lib/python3.10/site-packages (from matplotlib>=1.4.0->scikit-plot>=0.3.7->neptune-sklearn) (1.4.5)
Requirement already satisfied: packaging>=20.0 in /home/codespace/.local/lib/python3.10/site-packages (from matplotlib>=1.4.0->scikit-plot>=0.3.7->neptune-sklearn) (23.2)
Requirement already satisfied: pillow>=8 in /home/codespace/.local/lib/python3.10/site-packages (from matplotlib>=1.4.0->scikit-plot>=0.3.7->neptune-sklearn) (10.2.0)
Requirement already satisfied: pyparsing>=2.3.1 in /home/codespace/.local/lib/python3.10/site-packages (from matplotlib>=1.4.0->scikit-plot>=0.3.7->neptune-sklearn) (3.1.1)
Requirement already satisfied: python-dateutil>=2.7 in /home/codespace/.local/lib/python3.10/site-packages (from matplotlib>=1.4.0->scikit-plot>=0.3.7->neptune-sklearn) (2.8.2)
Requirement already satisfied: six>=1.5 in /home/codespace/.local/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib>=1.4.0->scikit-plot>=0.3.7->neptune-sklearn) (1.16.0)
Downloading neptune_sklearn-2.1.1-py3-none-any.whl (14 kB)
Installing collected packages: yellowbrick, scikit-plot, neptune-sklearn
Successfully installed neptune-sklearn-2.1.1 scikit-plot-0.3.7 yellowbrick-1.5
@radlfabs β /workspaces/codespaces-blank $ pip install --upgrade scipy=1.11.4
ERROR: Invalid requirement: 'scipy=1.11.4'
Hint: = is not a valid operator. Did you mean == ?
@radlfabs β /workspaces/codespaces-blank $ pip install --upgrade scipy==1.11.4
Requirement already satisfied: scipy==1.11.4 in /home/codespace/.local/lib/python3.10/site-packages (1.11.4)
Requirement already satisfied: numpy<1.28.0,>=1.21.6 in /home/codespace/.local/lib/python3.10/site-packages (from scipy==1.11.4) (1.26.3)
# testing old scipy
@radlfabs β /workspaces/codespaces-blank $ python
Python 3.10.13 (main, Jan 10 2024, 19:45:45) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import neptune_sklearn
>>> quit()
# works yayy
# testing scipy==1.12.0
@radlfabs β /workspaces/codespaces-blank $ pip install --upgrade scipy==1.12
Collecting scipy==1.12
Downloading scipy-1.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
ββββββββββββββββββββββββββββββββββββββββ 60.4/60.4 kB 1.4 MB/s eta 0:00:00
Requirement already satisfied: numpy<1.29.0,>=1.22.4 in /home/codespace/.local/lib/python3.10/site-packages (from scipy==1.12) (1.26.3)
Downloading scipy-1.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.4 MB)
ββββββββββββββββββββββββββββββββββββββββ 38.4/38.4 MB 23.8 MB/s eta 0:00:00
Installing collected packages: scipy
Attempting uninstall: scipy
Found existing installation: scipy 1.11.4
Uninstalling scipy-1.11.4:
Successfully uninstalled scipy-1.11.4
Successfully installed scipy-1.12.0
@radlfabs β /workspaces/codespaces-blank $ python
Python 3.10.13 (main, Jan 10 2024, 19:45:45) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import neptune_sklearn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/python/3.10.13/lib/python3.10/site-packages/neptune_sklearn/__init__.py", line 54, in <module>
from neptune_sklearn.impl import (
File "/usr/local/python/3.10.13/lib/python3.10/site-packages/neptune_sklearn/impl/__init__.py", line 42, in <module>
from scikitplot.estimators import plot_learning_curve
File "/usr/local/python/3.10.13/lib/python3.10/site-packages/scikitplot/__init__.py", line 2, in <module>
from . import metrics, cluster, decomposition, estimators
File "/usr/local/python/3.10.13/lib/python3.10/site-packages/scikitplot/metrics.py", line 27, in <module>
from scipy import interp
ImportError: cannot import name 'interp' from 'scipy' (/usr/local/python/3.10.13/lib/python3.10/site-packages/scipy/__init__.py)
>>>
At the moment, I'm not sure, why from scipy import interp
was possible in 2018 π
Digging in the scipy branches, there did not seem to be a scipy.interpolate.interp function in the first place.
Maybe numpy.interp somehow got into the scipy namespace.
Anyhow, I was not yet able to blame a scipy-commit that deprecated this for scipy 1.12.
Thanks a lot for the note on scipy==1.12
. This really helps! π
Since this is mostly an external issue, I will pin scipy
to <1.12
in neptune-sklearn
's base requirements. We can revisit the constraints and exclude the offending versions once a fix is released.
Hey @radlfabs
We just released v2.1.2 that constrains scipy
to <1.12
.
Please let me know if this works for you
Hey @SiddhantSadangi Everything works perfectly as expected now! Thanks π
Hello there! π
Describe the bug
Using neptune-sklearn fails with an ImportError of it's dependency scikit-plot. The issue is now also reported her. Since the repo is not actively maintained, an original solution might be necessary.
Reproduction
Install neptune-sklearn freshly. Then from a REPL
import neptune_sklearn
.Expected behavior
neptune_sklearn
shall be imported regularly.Traceback
Environment
The output of
pip list
:The operating system you're using: Microsoft Windows 11 Home
The output of
python --version
: Python 3.11.7Additional context
Since scikit-plot is not actively maintained at the moment, maybe consider finding another solution without this package.
Best wishes! radlfabs