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

Kernel crashes when using with latest release of robotframework (6.1.0) #143

Closed
sanderploegsma opened this issue Jul 13, 2023 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@sanderploegsma
Copy link

sanderploegsma commented Jul 13, 2023

Can be reproduced by launching a Binder with the following environment configuration:

name: robotkernel-repro

channels:
  - conda-forge

dependencies:
  - jupyterlab>=3,<4
  - jupyterlab_robotmode
  - numpy
  - pip
  - pip:
      - robotframework==6.1.0
      - robotkernel==1.6
  - python>=3.9,<3.11

When attempting to start the kernel it crashes due to an import error:

[I 2023-07-13 06:45:03.807 SingleUserLabApp restarter:72] AsyncIOLoopKernelRestarter: restarting kernel (5/5), new random ports
Traceback (most recent call last):
  File "/srv/conda/envs/notebook/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/srv/conda/envs/notebook/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/robotkernel/kernel.py", line 10, in <module>
    from robotkernel.executors import execute_python
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/robotkernel/executors.py", line 9, in <module>
    from robotkernel.builders import build_suite
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/robotkernel/builders.py", line 6, in <module>
    from robotkernel.builders_32 import build_suite
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/robotkernel/builders_32.py", line 5, in <module>
    from robot.running.builder.parsers import ErrorReporter
ImportError: cannot import name 'ErrorReporter' from 'robot.running.builder.parsers' (/srv/conda/envs/notebook/lib/python3.10/site-packages/robot/running/builder/parsers.py)
@JFoederer
Copy link
Contributor

the ErrorReporter class has been removed from Robot Framework with this commit:
robotframework/robotframework@19a8f7b#diff-62ecb8a491822441896f065a247b7fa24bd0f07d87787fe9af499a694a056c7e

@datakurre
Copy link
Collaborator

@sanderploegsma Thanks for the report!

@datakurre datakurre added the bug Something isn't working label Jul 13, 2023
@datakurre
Copy link
Collaborator

Been working on this at #144

Branch https://github.com/robots-from-jupyter/robotkernel/tree/rf61 probably works now, but I still have a few CI issues to fix before merge, manual acceptance testing and release. (Jupyter Lite build to Read The Docs is broken, and binder build is broken due to some un-pinned build changes.)

@datakurre
Copy link
Collaborator

Keyword buttons seem to be broken with the latest JupyterLab and Jupyter Widgets. I'll create a new issue and will delay next release until that is fixed.

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

No branches or pull requests

3 participants