meshplot
meshplot copied to clipboard
Unable to mkserve meshplot example with current latest anaconda version
I'm trying to run this example to view a 3D model in a webpage and I'm getting this error:
(base) C:\MyFolder\Documentation\3D_WebViewer_DOC\meshplot>mkdocs serve INFO - DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable
JUPYTER_PLATFORM_DIRS=1
and then runjupyter --paths
. The use of platformdirs will be the default injupyter_core
v6 File "C:\Anaconda3\lib\site-packages\jupyter_core\utils_init_.py", line 89, in deprecation warnings.warn(message, DeprecationWarning, stacklevel=stacklevel + 1) File "C:\Anaconda3\lib\site-packages\jupyter_client\connect.py", line 27, in from jupyter_core.paths import jupyter_data_dir INFO - DeprecationWarning: Support for bleach <5 will be removed in a future version of nbconvert File "C:\Anaconda3\lib\site-packages\nbconvert\filters\strings.py", line 23, infrom nbconvert.preprocessors.sanitize import _get_default_css_sanitizer File "C:\Anaconda3\lib\site-packages\nbconvert\preprocessors\sanitize.py", line 30, in warnings.warn( INFO - Building documentation... INFO - DeprecationWarning: 5.x style template file passed 'C:\Anaconda3\lib\site-packages\mknotebooks\templates\custom_markdown.tpl'. Use --template-name for the template directory with a index. .j2 file and/or --template-file to denote a different template. File "C:\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 1560, in _notify_observers c(event) File "C:\Anaconda3\lib\site-packages\nbconvert\exporters\templateexporter.py", line 239, in _template_file_changed warnings.warn( INFO - DeprecationWarning: Passing unrecognized arguments to super(HTMLExporter).init(template_path=['C:\Anaconda3\lib\site-packages\mknotebooks\templates', 'C:\Users\mikes\AppData\Roaming\jupyter\nbconvert\templates\base', 'C:\Users\mikes\AppData\Roaming\Python\share\jupyter\nbconvert\templates\base', 'C:\Anaconda3\share\jupyter\nbconvert\templates\base', 'C:\ProgramData\jupyter\nbconvert\templates\base']). object.init() takes exactly one argument (the instance to initialize) This is deprecated in traitlets 4.2.This error will be raised in a future release of traitlets. File "C:\Anaconda3\lib\site-packages\traitlets\config\configurable.py", line 86, in init super().init(**kwargs) File "C:\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 1373, in init warn( INFO - Cleaning site directory INFO - DeprecationWarning: relax_add_props
kwargs of validate has been deprecated for security reasons, and will be removed soon.
Please explicitly use the `n_changes, new_notebook = nbformat.validator.normalize(old_notebook, ...)` if you wish to
normalise your notebook. `normalize` is available since nbformat 5.5.0
File "C:\Anaconda3\lib\site-packages\nbformat\validator.py", line 381, in _dep_warn
warnings.warn(
File "C:\Anaconda3\lib\site-packages\nbconvert\exporters\exporter.py", line 321, in
nbformat.validate(nbc, relax_add_props=True)
INFO - DeprecationWarning: There is no current event loop
File "C:\Anaconda3\lib\site-packages\nbclient\util.py", line 47, in just_run
loop = asyncio.get_event_loop()
File "C:\Anaconda3\lib\asyncio\events.py", line 666, in get_event_loop
warnings.warn('There is no current event loop',
INFO - RuntimeWarning: Proactor event loop does not implement add_reader family of methods required for zmq. Registering an
additional selector thread for add_reader support via tornado. Use
asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy())
to avoid this warning.
File "C:\Anaconda3\lib\site-packages\zmq\asyncio.py", line 58, in _get_selector_windows
warnings.warn(
File "C:\Anaconda3\lib\site-packages\zmq_future.py", line 679, in
self._get_loop()
INFO - DeprecationWarning: relax_add_props
kwargs of validate has been deprecated for security
reasons, and will be removed soon.
Please explicitly use the `n_changes, new_notebook = nbformat.validator.normalize(old_notebook, ...)` if you wish to
normalise your notebook. `normalize` is available since nbformat 5.5.0
File "C:\Anaconda3\lib\site-packages\nbformat\validator.py", line 381, in _dep_warn
warnings.warn(
File "C:\Anaconda3\lib\site-packages\nbconvert\exporters\exporter.py", line 321, in
nbformat.validate(nbc, relax_add_props=True)
WARNING - Path 'css\ansi-colours.css' uses OS-specific separator ''. That will be unsupported in a future release. Please change it to
'/'.
WARNING - Path 'css\jupyter-cells.css' uses OS-specific separator ''. That will be unsupported in a future release. Please change it to
'/'.
WARNING - Path 'css\pandas-dataframe.css' uses OS-specific separator ''. That will be unsupported in a future release. Please change it
to '/'.
Traceback (most recent call last):
File "C:\Anaconda3\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Anaconda3\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Anaconda3\Scripts\mkdocs.exe_main.py", line 7, in
File "C:\Anaconda3\lib\site-packages\mkdocs\utils\filters.py", line 14, in url_filter
return normalize_url(value, page=context['page'], base=context['base_url'])
File "C:\Anaconda3\lib\site-packages\mkdocs\utils_init.py", line 300, in normalize_url
path, is_abs = _get_norm_url(path)
TypeError: unhashable type: 'dict'
Are the libraries set of this example still relevant?