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

When exporting cell we get: UnboundLocalError: local variable 'module_mapping' referenced before assignment #278

Closed
skoulouzis opened this issue Jul 10, 2022 · 0 comments · Fixed by #279
Assignees
Labels
bug Something isn't working

Comments

@skoulouzis
Copy link
Member

[E 2022-07-10 18:41:29.496 SingleUserNotebookApp web:1789] Uncaught exception POST /n-a-a-vre/user//vre/containerizer/addcell?1657478488516 (10.32.0.1)
    HTTPServerRequest(protocol='https', host='', method='POST', uri='/n-a-a-vre/user//vre/containerizer/addcell?1657478488516', version='HTTP/1.1', remote_ip='10.32.0.1')
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.9/site-packages/tornado/web.py", line 1704, in _execute
        result = await result
      File "/opt/conda/lib/python3.9/site-packages/jupyterlab_vre/component_containerizer/handlers.py", line 200, in post
        build_templates(cell=current_cell, files_info=files_info)
      File "/opt/conda/lib/python3.9/site-packages/jupyterlab_vre/component_containerizer/handlers.py", line 331, in build_templates
        module_name_mapping = load_module_names_mapping()
      File "/opt/conda/lib/python3.9/site-packages/jupyterlab_vre/component_containerizer/handlers.py", line 325, in load_module_names_mapping
        loaded_module_name_mapping.update(module_mapping)
    UnboundLocalError: local variable 'module_mapping' referenced before assignment
@skoulouzis skoulouzis added the bug Something isn't working label Jul 10, 2022
skoulouzis added a commit that referenced this issue Jul 10, 2022
@skoulouzis skoulouzis linked a pull request Jul 10, 2022 that will close this issue
skoulouzis added a commit that referenced this issue Jul 10, 2022
…oundlocalerror-local-variable-module_mapping-referenced-before-assignment

fixes #278
skoulouzis added a commit that referenced this issue Oct 11, 2022
This reverts commit fac2106.
@skoulouzis skoulouzis self-assigned this May 29, 2023
KoenGreuell added a commit that referenced this issue Jan 23, 2025
KoenGreuell added a commit that referenced this issue Jan 23, 2025
KoenGreuell added a commit that referenced this issue Jan 23, 2025
KoenGreuell added a commit that referenced this issue Jan 24, 2025
KoenGreuell added a commit that referenced this issue Jan 24, 2025
KoenGreuell added a commit that referenced this issue Jan 24, 2025
KoenGreuell added a commit that referenced this issue Jan 24, 2025
KoenGreuell added a commit that referenced this issue Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant