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

Unable to mkserve meshplot example with current latest anaconda version #46

Open
MikeLemo1 opened this issue Jun 27, 2023 · 0 comments
Open

Comments

@MikeLemo1
Copy link

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 run jupyter --paths.
The use of platformdirs will be the default in jupyter_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, in
from 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\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Anaconda3\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Anaconda3\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Anaconda3\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Anaconda3\lib\site-packages\click\core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "C:\Anaconda3\lib\site-packages\mkdocs_main
.py", line 234, in serve_command
serve.serve(dev_addr=dev_addr, livereload=livereload, watch=watch, **kwargs)
File "C:\Anaconda3\lib\site-packages\mkdocs\commands\serve.py", line 83, in serve
builder(config)
File "C:\Anaconda3\lib\site-packages\mkdocs\commands\serve.py", line 76, in builder
build(config, live_server=live_server, dirty=dirty)
File "C:\Anaconda3\lib\site-packages\mkdocs\commands\build.py", line 320, in build
_build_theme_template(template, env, files, config, nav)
File "C:\Anaconda3\lib\site-packages\mkdocs\commands\build.py", line 118, in _build_theme_template
output = _build_template(template_name, template, files, config, nav)
File "C:\Anaconda3\lib\site-packages\mkdocs\commands\build.py", line 97, in build_template
output = template.render(context)
File "C:\Anaconda3\lib\site-packages\jinja2\environment.py", line 1301, in render
self.environment.handle_exception()
File "C:\Anaconda3\lib\site-packages\jinja2\environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "C:\Anaconda3\lib\site-packages\material\404.html", line 4, in top-level template code
{% extends "main.html" %}
File "C:\Anaconda3\lib\site-packages\material\main.html", line 4, in top-level template code
{% extends "base.html" %}
File "C:\Anaconda3\lib\site-packages\material\base.html", line 134, in top-level template code
{% block header %}
File "C:\Anaconda3\lib\site-packages\material\base.html", line 135, in block 'header'
{% include "partials/header.html" %}
File "C:\Anaconda3\lib\site-packages\material\partials\header.html", line 13, in top-level template code
{% include "partials/logo.html" %}
File "C:\Anaconda3\lib\site-packages\material\partials\logo.html", line 5, in top-level template code
logo
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant