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

No plugin found capable of reading '/path/to/Shapes.svg' #3342

Open
npielawski opened this issue Sep 6, 2021 · 2 comments
Open

No plugin found capable of reading '/path/to/Shapes.svg' #3342

npielawski opened this issue Sep 6, 2021 · 2 comments
Labels
bug Something isn't working as expected feature New feature or request priority:high High priority issue severity:medium Impairs users from using napari to do what they need but napari is not crashing or segfaulti

Comments

@npielawski
Copy link

🐛 Bug

I am a beginner so perhaps the solution is obvious, but it seems that when saving a shapes layer, the default extension is svg (maybe there are other suitable formats?) and it is not possible to load the said svg later on.

To Reproduce

Steps to reproduce the behavior:

  1. Create some shapes
  2. Save the shapes as an svg file
  3. Load the svg file

The error is:
ValueError: No plugin found capable of reading '/Path/to/result/Shapes.svg'.

Expected behavior

The shapes should be loaded and plotted on the canvas.

Environment

  • Please copy and paste the information at napari info option in help menubar here:
    napari: 0.4.11
    Platform: macOS-11.5.2-x86_64-i386-64bit
    System: MacOS 11.5.2
    Python: 3.9.6 | packaged by conda-forge | (default, Jul 11 2021, 03:36:15) [Clang 11.1.0 ]
    Qt: 5.15.2
    PyQt5: 5.15.4
    NumPy: 1.21.2
    SciPy: 1.7.1
    Dask: 2021.08.1
    VisPy: 0.8.1

OpenGL:

  • GL version: 2.1 Metal - 71.7.1
  • MAX_TEXTURE_SIZE: 16384

Screens:

  • screen 1: resolution 1280x800, scale 2.0

Plugins:

  • console: 0.0.4

  • napari-tissuumaps: 0.0.3

  • scikit-image: 0.4.11

  • svg: 0.1.5

  • Any other relevant information:

Additional context

I could create a script to procedurally add points, and that worked. Saving the svg does not produce any error. I don't know if the feature is not implemented (feature request?) or if it is a bug.

@npielawski npielawski added the bug Something isn't working as expected label Sep 6, 2021
@sofroniewn
Copy link
Contributor

Hi @npielawski I think right now reading from svg has not been implemented, see napari/napari-svg#4, but we really should do that. I think there might be a way to save shapes as a csv with our builtin readers. Maybe @DragaDoncila can take a look at this too

@sofroniewn sofroniewn added feature New feature or request priority:medium severity:medium Impairs users from using napari to do what they need but napari is not crashing or segfaulti labels Sep 8, 2021
@psobolewskiPhD psobolewskiPhD added priority:high High priority issue and removed priority:medium labels Jun 28, 2023
@psobolewskiPhD
Copy link
Member

Just in case anyone comes across this: the default saving of a shapes layer is now csv and Shapes do roundtrip: you can save a Shapes layer to .csv and then drag-and-drop to get your Shapes layer back--alas without colors.
SVG still cannot be read by napari out-of-the-box. I've made a PR to update the info on napari-svg so it doesn't suggest we can read svg: napari/napari-svg#37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected feature New feature or request priority:high High priority issue severity:medium Impairs users from using napari to do what they need but napari is not crashing or segfaulti
Projects
None yet
Development

No branches or pull requests

3 participants