Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SomeoneSerge/e5a58050f7fb999c3dac5cb744b5b585 to your computer and use it in GitHub Desktop.
Save SomeoneSerge/e5a58050f7fb999c3dac5cb744b5b585 to your computer and use it in GitHub Desktop.
nix log /nix/store/gx4m3rgs6wp1gq62n242nxhrgcnrc4sm-python3.10-skorch-0.12.1.drv
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Sourcing pytest-check-hook
Using pytestCheckPhase
Removing setuptoolsCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/qzm3wrr7306j75ybf9746f4sd4577y3d-skorch-0.12.1.tar.gz
source root is skorch-0.12.1
setting SOURCE_DATE_EPOCH to timestamp 1668774684 of file skorch-0.12.1/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing setuptoolsBuildPhase
/nix/store/8zx4h7r5mn1b913hgi8rwjfynwg1wgdi-python3.10-setuptools-67.4.0/lib/python3.10/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/skorch
copying skorch/classifier.py -> build/lib/skorch
copying skorch/flycheck_utils.py -> build/lib/skorch
copying skorch/history.py -> build/lib/skorch
copying skorch/__init__.py -> build/lib/skorch
copying skorch/setter.py -> build/lib/skorch
copying skorch/_version.py -> build/lib/skorch
copying skorch/probabilistic.py -> build/lib/skorch
copying skorch/toy.py -> build/lib/skorch
copying skorch/cli.py -> build/lib/skorch
copying skorch/exceptions.py -> build/lib/skorch
copying skorch/scoring.py -> build/lib/skorch
copying skorch/helper.py -> build/lib/skorch
copying skorch/hf.py -> build/lib/skorch
copying skorch/regressor.py -> build/lib/skorch
copying skorch/utils.py -> build/lib/skorch
copying skorch/dataset.py -> build/lib/skorch
copying skorch/net.py -> build/lib/skorch
creating build/lib/skorch/callbacks
copying skorch/callbacks/__init__.py -> build/lib/skorch/callbacks
copying skorch/callbacks/regularization.py -> build/lib/skorch/callbacks
copying skorch/callbacks/base.py -> build/lib/skorch/callbacks
copying skorch/callbacks/training.py -> build/lib/skorch/callbacks
copying skorch/callbacks/logging.py -> build/lib/skorch/callbacks
copying skorch/callbacks/lr_scheduler.py -> build/lib/skorch/callbacks
copying skorch/callbacks/scoring.py -> build/lib/skorch/callbacks
creating build/lib/skorch/tests
copying skorch/tests/test_utils.py -> build/lib/skorch/tests
copying skorch/tests/test_dataset.py -> build/lib/skorch/tests
copying skorch/tests/test_regressor.py -> build/lib/skorch/tests
copying skorch/tests/__init__.py -> build/lib/skorch/tests
copying skorch/tests/test_setter.py -> build/lib/skorch/tests
copying skorch/tests/test_net.py -> build/lib/skorch/tests
copying skorch/tests/test_scoring.py -> build/lib/skorch/tests
copying skorch/tests/test_helper.py -> build/lib/skorch/tests
copying skorch/tests/test_probabilistic.py -> build/lib/skorch/tests
copying skorch/tests/test_history.py -> build/lib/skorch/tests
copying skorch/tests/test_classifier.py -> build/lib/skorch/tests
copying skorch/tests/test_cli.py -> build/lib/skorch/tests
copying skorch/tests/test_hf.py -> build/lib/skorch/tests
copying skorch/tests/conftest.py -> build/lib/skorch/tests
copying skorch/tests/test_toy.py -> build/lib/skorch/tests
running egg_info
writing skorch.egg-info/PKG-INFO
writing dependency_links to skorch.egg-info/dependency_links.txt
writing requirements to skorch.egg-info/requires.txt
writing top-level names to skorch.egg-info/top_level.txt
reading manifest file 'skorch.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'skorch.egg-info/SOURCES.txt'
/nix/store/8zx4h7r5mn1b913hgi8rwjfynwg1wgdi-python3.10-setuptools-67.4.0/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/classifier.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/flycheck_utils.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/history.py -> build/bdist.linux-x86_64/wheel/skorch
creating build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/__init__.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/regularization.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/base.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/training.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/logging.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/lr_scheduler.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/scoring.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/__init__.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/setter.py -> build/bdist.linux-x86_64/wheel/skorch
creating build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_utils.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_dataset.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_regressor.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/__init__.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_setter.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_net.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_scoring.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_helper.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_probabilistic.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_history.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_classifier.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_cli.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_hf.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/conftest.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_toy.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/_version.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/probabilistic.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/toy.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/cli.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/exceptions.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/scoring.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/helper.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/hf.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/regressor.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/utils.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/dataset.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/net.py -> build/bdist.linux-x86_64/wheel/skorch
running install_egg_info
Copying skorch.egg-info to build/bdist.linux-x86_64/wheel/skorch-0.12.1-py3.10.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/skorch-0.12.1.dist-info/WHEEL
creating 'dist/skorch-0.12.1-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'skorch/__init__.py'
adding 'skorch/_version.py'
adding 'skorch/classifier.py'
adding 'skorch/cli.py'
adding 'skorch/dataset.py'
adding 'skorch/exceptions.py'
adding 'skorch/flycheck_utils.py'
adding 'skorch/helper.py'
adding 'skorch/hf.py'
adding 'skorch/history.py'
adding 'skorch/net.py'
adding 'skorch/probabilistic.py'
adding 'skorch/regressor.py'
adding 'skorch/scoring.py'
adding 'skorch/setter.py'
adding 'skorch/toy.py'
adding 'skorch/utils.py'
adding 'skorch/callbacks/__init__.py'
adding 'skorch/callbacks/base.py'
adding 'skorch/callbacks/logging.py'
adding 'skorch/callbacks/lr_scheduler.py'
adding 'skorch/callbacks/regularization.py'
adding 'skorch/callbacks/scoring.py'
adding 'skorch/callbacks/training.py'
adding 'skorch/tests/__init__.py'
adding 'skorch/tests/conftest.py'
adding 'skorch/tests/test_classifier.py'
adding 'skorch/tests/test_cli.py'
adding 'skorch/tests/test_dataset.py'
adding 'skorch/tests/test_helper.py'
adding 'skorch/tests/test_hf.py'
adding 'skorch/tests/test_history.py'
adding 'skorch/tests/test_net.py'
adding 'skorch/tests/test_probabilistic.py'
adding 'skorch/tests/test_regressor.py'
adding 'skorch/tests/test_scoring.py'
adding 'skorch/tests/test_setter.py'
adding 'skorch/tests/test_toy.py'
adding 'skorch/tests/test_utils.py'
adding 'skorch-0.12.1.dist-info/LICENSE'
adding 'skorch-0.12.1.dist-info/METADATA'
adding 'skorch-0.12.1.dist-info/WHEEL'
adding 'skorch-0.12.1.dist-info/top_level.txt'
adding 'skorch-0.12.1.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pipInstallPhase
/build/skorch-0.12.1/dist /build/skorch-0.12.1
Processing ./skorch-0.12.1-py3-none-any.whl
Requirement already satisfied: scikit-learn>=0.22.0 in /nix/store/h24gg4y8x877xcgjvl1dv09nnwcgdhz3-python3.10-scikit-learn-1.2.1/lib/python3.10/site-packages (from skorch==0.12.1) (1.2.1)
Requirement already satisfied: tqdm>=4.14.0 in /nix/store/vnklvsi24gf5cm4386wrn32ldxd08k0r-python3.10-tqdm-4.64.1/lib/python3.10/site-packages (from skorch==0.12.1) (4.64.1)
Requirement already satisfied: tabulate>=0.7.7 in /nix/store/2x652qwrc7pdzqbzpfpxyj9gjsj9hpb4-python3.10-tabulate-0.9.0/lib/python3.10/site-packages (from skorch==0.12.1) (0.9.0)
Requirement already satisfied: scipy>=1.1.0 in /nix/store/hvs05k932v31cfckv49nx1pin0qjd20v-python3.10-scipy-1.10.1/lib/python3.10/site-packages (from skorch==0.12.1) (1.10.1)
Requirement already satisfied: numpy>=1.13.3 in /nix/store/0xhlg0vi0y8m5lxsm8khcqqma8rmy2jr-python3.10-numpy-1.24.2/lib/python3.10/site-packages (from skorch==0.12.1) (1.24.2)
Requirement already satisfied: joblib>=1.1.1 in /nix/store/7f4ycvj80s7mvxwn1fxaqyp0dw211025-python3.10-joblib-1.2.0/lib/python3.10/site-packages (from scikit-learn>=0.22.0->skorch==0.12.1) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /nix/store/wd74hzlxdqpadpna9q8dx04c2p8kay3b-python3.10-threadpoolctl-3.1.0/lib/python3.10/site-packages (from scikit-learn>=0.22.0->skorch==0.12.1) (3.1.0)
Installing collected packages: skorch
Successfully installed skorch-0.12.1
/build/skorch-0.12.1
Finished executing pipInstallPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/faqrwkgw0y7xisijf3mkx7b69bs5ypvr-python3.10-skorch-0.12.1
checking for references to /build/ in /nix/store/faqrwkgw0y7xisijf3mkx7b69bs5ypvr-python3.10-skorch-0.12.1...
patching script interpreter paths in /nix/store/faqrwkgw0y7xisijf3mkx7b69bs5ypvr-python3.10-skorch-0.12.1
stripping (with command strip and flags -S) in /nix/store/faqrwkgw0y7xisijf3mkx7b69bs5ypvr-python3.10-skorch-0.12.1/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/ch233b5xm6kk0j17b5p09v4gaj2kc3hd-python3.10-skorch-0.12.1-dist
checking for references to /build/ in /nix/store/ch233b5xm6kk0j17b5p09v4gaj2kc3hd-python3.10-skorch-0.12.1-dist...
patching script interpreter paths in /nix/store/ch233b5xm6kk0j17b5p09v4gaj2kc3hd-python3.10-skorch-0.12.1-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
no Makefile or custom installCheckPhase, doing nothing
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: skorch
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.10.10, pytest-7.2.1, pluggy-1.0.0
rootdir: /build/skorch-0.12.1, configfile: setup.cfg
plugins: flaky-3.7.0
collecting ...  collecting 82 items  collecting 106 items  collecting 183 items / 1 error  collecting 457 items / 1 error  collecting 474 items / 1 error / 1 skipped  collecting 521 items / 1 error / 1 skipped  collecting 534 items / 1 error / 1 skipped  collected 638 items / 1 error / 3 deselected / 1 skipped / 635 selected 
==================================== ERRORS ====================================
_________________ ERROR collecting skorch/tests/test_helper.py _________________
skorch/tests/test_helper.py:276: in <module>
class TestSliceDataset:
skorch/tests/test_helper.py:337: in TestSliceDataset
np.ones(100, dtype=np.bool),
/nix/store/0xhlg0vi0y8m5lxsm8khcqqma8rmy2jr-python3.10-numpy-1.24.2/lib/python3.10/site-packages/numpy/__init__.py:305: in __getattr__
raise AttributeError(__former_attrs__[attr])
E AttributeError: module 'numpy' has no attribute 'bool'.
E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'bool_'?
=============================== warnings summary ===============================
skorch/dataset.py:109
/build/skorch-0.12.1/skorch/dataset.py:109: DeprecationWarning: invalid escape sequence '\s'
"""General dataset wrapper that can be used in conjunction with
skorch/dataset.py:172
/build/skorch-0.12.1/skorch/dataset.py:172: DeprecationWarning: invalid escape sequence '\s'
"""Additional transformations on ``X`` and ``y``.
skorch/tests/test_helper.py:337
/build/skorch-0.12.1/skorch/tests/test_helper.py:337: FutureWarning: In the future `np.bool` will be defined as the corresponding NumPy scalar.
np.ones(100, dtype=np.bool),
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR skorch/tests/test_helper.py - AttributeError: module 'numpy' has no attribute 'bool'.
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
============ 1 skipped, 3 deselected, 3 warnings, 1 error in 15.13s ============
/nix/store/pw17yc3mwmsci4jygwalj8ppg0drz31v-stdenv-linux/setup: line 1593: pop_var_context: head of shell_variables not a function context
@samuela
Copy link

samuela commented Mar 23, 2023

�[31mERROR�[0m skorch/tests/test_helper.py - AttributeError: module 'numpy' has no attribute 'bool'.

not pytorch related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment