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

[CI-fails]: ModuleNotFoundError: No module named 'ipython_genutils' #941

Closed
jh-RLI opened this issue Mar 30, 2022 · 1 comment · Fixed by #946
Closed

[CI-fails]: ModuleNotFoundError: No module named 'ipython_genutils' #941

jh-RLI opened this issue Mar 30, 2022 · 1 comment · Fixed by #946

Comments

@jh-RLI
Copy link
Contributor

jh-RLI commented Mar 30, 2022

Currently we expreince a issue with the automated testing. After the deprecation waring at the beginning (this should already be fixed by e666e3b) the report suggests that there is the module python_genutils missing. This module is called by the module nbconvert wich is part of the tutorials django-app. I will try to manually install the pip package python_genutils and/or update nbconvert to the latest version.

Bugreports: https://github.com/OpenEnergyPlatform/oeplatform/actions

Run cp oeplatform/securitysettings.py.default oeplatform/securitysettings.py
/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/rdflib_jsonld/__init__.py:12: DeprecationWarning: The rdflib-jsonld package has been integrated into rdflib as of rdflib==6.0.1.  Please remove rdflib-jsonld from your project's dependencies.
  DeprecationWarning,
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/core/management/__init__.py", line 4[19](https://github.com/OpenEnergyPlatform/oeplatform/runs/5752933823?check_suite_focus=true#step:8:19), in execute_from_command_line
    utility.execute()
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/core/management/base.py", line 393, in execute
    self.check()
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/core/management/base.py", line 423, in check
    databases=databases,
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/core/checks/registry.py", line 76, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/core/checks/urls.py", line 13, in check_url_config
    return check_resolver(resolver)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver
    return check_method()
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/urls/resolvers.py", line 416, in check
    for pattern in self.url_patterns:
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/urls/resolvers.py", line 602, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/urls/resolvers.py", line 595, in urlconf_module
    return import_module(self.urlconf_name)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line [21](https://github.com/OpenEnergyPlatform/oeplatform/runs/5752933823?check_suite_focus=true#step:8:21)9, in _call_with_frames_removed
  File "/home/runner/work/oeplatform/oeplatform/oeplatform/urls.py", line 34, in <module>
    url(r"^tutorials/", include("tutorials.urls")),
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/django/urls/conf.py", line 34, in include
    urlconf_module = import_module(urlconf_module)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/importlib/__init__.py", line 1[27](https://github.com/OpenEnergyPlatform/oeplatform/runs/5752933823?check_suite_focus=true#step:8:27), in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 7[28](https://github.com/OpenEnergyPlatform/oeplatform/runs/5752933823?check_suite_focus=true#step:8:28), in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/runner/work/oeplatform/oeplatform/tutorials/urls.py", line 3, in <module>
    from tutorials import views
  File "/home/runner/work/oeplatform/oeplatform/tutorials/views.py", line 13, in <module>
    import nbconvert
  File "/opt/hostedtoolcache/Python/3.7.12/x[64](https://github.com/OpenEnergyPlatform/oeplatform/runs/5752933823?check_suite_focus=true#step:8:64)/lib/python3.7/site-packages/nbconvert/__init__.py", line 4, in <module>
    from .exporters import *
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/nbconvert/exporters/__init__.py", line 1, in <module>
    from .base import (export, get_exporter, 
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/nbconvert/exporters/base.py", line 14, in <module>
    from ipython_genutils.py3compat import string_types
ModuleNotFoundError: No module named 'ipython_genutils'
Error: Process completed with exit code 1.
@jh-RLI
Copy link
Contributor Author

jh-RLI commented Mar 30, 2022

Seems like this issue is known and fixed already.
jupyter/nbconvert#1725

@jh-RLI jh-RLI mentioned this issue Apr 8, 2022
@jh-RLI jh-RLI moved this from In progress to Review in progress in v0.10.1- Patch: OEMetadata v1.5.1, Tags, and Factsheets Apr 8, 2022
v0.10.1- Patch: OEMetadata v1.5.1, Tags, and Factsheets automation moved this from Review in progress to Done Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants