Skip to content

VScode - Can't find Jupyter #10

Description

@lsd87

Gone through the OCP Cad viewer install a number of times but always get the same error

gflabel --vscode "Fred" -o basicV.step

Log below, the viewer is running and Jupyter is installed, vscode log shows a connection (pic)
This is on Linux Mint 21.03 machine (Ubuntu 22.04)

Using port 3939 taken from config file
Jupyter kernel not running
Rendering line 1 ("Fred")
Using {'font_style': <FontStyle.REGULAR>, 'font_path': '/home/lsd/.local/lib/python3.10/site-packages/gflabel/resources/OpenSans-Regular'}
Got scale: 1
Entry "Fred" calculated width = 19.0 (max 31.9)
Traceback (most recent call last):
File "/home/lsd/.local/lib/python3.10/site-packages/ocp_vscode/config.py", line 411, in status
return dict(sorted(response.get("text", {}).items()))
AttributeError: 'str' object has no attribute 'get'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/lsd/.local/lib/python3.10/site-packages/ocp_vscode/config.py", line 460, in combined_config
wspace_status = status(port)
File "/home/lsd/.local/lib/python3.10/site-packages/ocp_vscode/config.py", line 414, in status
raise RuntimeError(
RuntimeError: Cannot access viewer status. Is the viewer running?
("'str' object has no attribute 'get'",)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/lsd/.local/bin/gflabel", line 8, in
sys.exit(run())
File "/home/lsd/.local/lib/python3.10/site-packages/gflabel/cli.py", line 401, in run
show(
File "/home/lsd/.local/lib/python3.10/site-packages/ocp_vscode/show.py", line 551, in show
t, mapping = _convert(
File "/home/lsd/.local/lib/python3.10/site-packages/ocp_vscode/show.py", line 251, in _convert
instances, shapes, config, count_shapes, mapping = _tessellate(
File "/home/lsd/.local/lib/python3.10/site-packages/ocp_vscode/show.py", line 87, in _tessellate
conf = combined_config(use_status=False)
File "/home/lsd/.local/lib/python3.10/site-packages/ocp_vscode/config.py", line 463, in combined_config
raise RuntimeError(
RuntimeError: Cannot access viewer config. Is the viewer running?
('Cannot access viewer status. Is the viewer running?\n("'str' object has no attribute 'get'",)',)

Screenshot_2024-10-13_18-39-56

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions