Skip to content

Jupyter Notebook changed flags + numpy.bool error #34

@ArendJan

Description

@ArendJan

Jupyter complains about the configuration and that they are moved to other components:

[W 2022-03-07 16:40:45.229 LabApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2022-03-07 16:40:45.230 LabApp] 'token' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2022-03-07 16:40:45.231 LabApp] 'password' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2022-03-07 16:40:45.232 LabApp] 'base_url' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2022-03-07 16:40:45.232 LabApp] 'base_url' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.

It also gives an error on numpy has no attribute bool:

/usr/lib/python3/dist-packages/pandas/util/testing.py:28: FutureWarning: In the future `np.bool` will be defined as the corresponding NumPy scalar.
  import pandas._libs.testing as _testing
[W 16:40:43.765 NotebookApp] Error loading server extension jupyros
    Traceback (most recent call last):
      File "/home/mirte/jupyter/lib/python3.8/site-packages/notebook/notebookapp.py", line 2026, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
      File "<frozen importlib._bootstrap>", line 991, in _find_and_load
      File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 848, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/mirte/jupyter/lib/python3.8/site-packages/jupyros/__init__.py", line 33, in <module>
        from .ros1.ipy import *
      File "/home/mirte/jupyter/lib/python3.8/site-packages/jupyros/ros1/__init__.py", line 13, in <module>
        from .ros_widgets import *
      File "/home/mirte/jupyter/lib/python3.8/site-packages/jupyros/ros1/ros_widgets.py", line 14, in <module>
        import bqplot as bq
      File "/home/mirte/jupyter/lib/python3.8/site-packages/bqplot/__init__.py", line 64, in <module>
        from .figure import *
      File "/home/mirte/jupyter/lib/python3.8/site-packages/bqplot/figure.py", line 35, in <module>
        from .scales import Scale, LinearScale
      File "/home/mirte/jupyter/lib/python3.8/site-packages/bqplot/scales.py", line 45, in <module>
        from .traits import Date
      File "/home/mirte/jupyter/lib/python3.8/site-packages/bqplot/traits.py", line 32, in <module>
        import pandas as pd
      File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 182, in <module>
        import pandas.testing
      File "/usr/lib/python3/dist-packages/pandas/testing.py", line 7, in <module>
        from pandas.util.testing import (
      File "/usr/lib/python3/dist-packages/pandas/util/testing.py", line 28, in <module>
        import pandas._libs.testing as _testing
      File "pandas/_libs/testing.pyx", line 10, in init pandas._libs.testing
      File "/home/mirte/jupyter/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
        raise AttributeError(__former_attrs__[attr])
    AttributeError: module 'numpy' has no attribute 'bool'.
    `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.
    The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
        https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions