Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter Notebook changed flags + numpy.bool error #34

Open
ArendJan opened this issue Nov 1, 2023 · 1 comment
Open

Jupyter Notebook changed flags + numpy.bool error #34

ArendJan opened this issue Nov 1, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@ArendJan
Copy link
Contributor

ArendJan commented Nov 1, 2023

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
@ArendJan ArendJan added the enhancement New feature or request label Nov 1, 2023
@ArendJan ArendJan added this to backlog Nov 1, 2023
@ArendJan ArendJan added this to the 0.2 milestone Nov 1, 2023
@ArendJan
Copy link
Contributor Author

ArendJan commented Nov 2, 2023

Numpy issue was because of updated numpy, which should not happen. First problem still exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant