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

install error using Napari GUI #169

Closed
JoeBeton opened this issue May 16, 2024 · 7 comments
Closed

install error using Napari GUI #169

JoeBeton opened this issue May 16, 2024 · 7 comments

Comments

@JoeBeton
Copy link

JoeBeton commented May 16, 2024

I have been having some problems installing the latest version of blik using both the napari point&click installer and pip.

To reproduce (for me):

$ python -m pip install --upgrade blik 
$ npe2 validate blik 
🅇 Invalid! 1 validation error for PackageMetadata
metadata_version
  unexpected value; permitted: '1.0', '1.1', '1.2', '2.0', '2.1', '2.2' (type=value_error.const; given=2.3; permitted=('1.0', '1.1', '1.2', '2.0', '2.1', '2.2'))

I get an almost identical error if I use the napari point and click installer within the GUI.

I managed to get around this by installing blik version 0.6.1, i.e.:

$ python -m pip install "blik==0.6.2" 
$ npe2 validate blik 
✔ Manifest for 'blik' valid!

System info:

  • Installed napari within conda environment
  • Python version: Python 3.10.13
  • pip version: pip 24.0
  • napari version: 0.4.19.post1
  • conda version: 24.1.1
  • OS: Ubuntu 20.04

Let me know if there's any more info that can be helpful and thanks for the great plugin!

@brisvag
Copy link
Owner

brisvag commented May 16, 2024

Hi @JoeBeton! Can you post the output of napari --info? I tried installing napari and blik in a new env without anything special and it works for me, so there must be something else afoot :P

@JoeBeton
Copy link
Author

Sure, here's the output:

napari: 0.4.19.post1
Platform: Linux-5.15.0-94-generic-x86_64-with-glibc2.31
System: Ubuntu 20.04.6 LTS
Python: 3.10.13 | packaged by conda-forge | (main, Dec 23 2023, 15:36:39) [GCC 12.3.0]
Qt: 5.15.8
PyQt5: 5.15.9
NumPy: 1.26.4
SciPy: 1.12.0
Dask: 2024.2.0
VisPy: 0.14.1
magicgui: 0.8.1
superqt: 0.6.1
in-n-out: 0.1.9
app-model: 0.2.4
npe2: 0.7.4

OpenGL:
  - GL version:  4.6.0 NVIDIA 545.23.08
  - MAX_TEXTURE_SIZE: 32768

Screens:
  - screen 1: resolution 5120x1440, scale 1.0

Settings path:
  - /home/joebeton/.config/napari/napari_f02e8cdf66ce27f2ce4e4fbf7748c21e76475c57/settings.yaml
Plugins:
  - blik: 0.6.1 (30 contributions)
  - napari: 0.4.19.post1 (77 contributions)
  - napari-console: 0.0.9 (0 contributions)
  - napari-label-interpolator: 0.1.1 (2 contributions)
  - napari-mrcfile-handler: 0.0.6 (8 contributions)
  - napari-properties-plotter: 0.2.2 (2 contributions)
  - napari-properties-viewer: 0.0.2 (2 contributions)
  - napari-svg: 0.1.10 (2 contributions)

@JoeBeton
Copy link
Author

oh and probably more interesting here's the output with blik==0.6.13 installed:

napari: 0.4.19.post1
Platform: Linux-5.15.0-94-generic-x86_64-with-glibc2.31
System: Ubuntu 20.04.6 LTS
Python: 3.10.13 | packaged by conda-forge | (main, Dec 23 2023, 15:36:39) [GCC 12.3.0]
Qt: 5.15.8
PyQt5: 5.15.9
NumPy: 1.26.4
SciPy: 1.12.0
Dask: 2024.2.0
VisPy: 0.14.1
magicgui: 0.8.1
superqt: 0.6.1
in-n-out: 0.1.9
app-model: 0.2.4
npe2: 0.7.4

OpenGL:
  - GL version:  4.6.0 NVIDIA 545.23.08
  - MAX_TEXTURE_SIZE: 32768

Screens:
  - screen 1: resolution 5120x1440, scale 1.0

Settings path:
  - /home/joebeton/.config/napari/napari_f02e8cdf66ce27f2ce4e4fbf7748c21e76475c57/settings.yaml
Plugins:
  - napari: 0.4.19.post1 (77 contributions)
  - napari-console: 0.0.9 (0 contributions)
  - napari-label-interpolator: 0.1.1 (2 contributions)
  - napari-mrcfile-handler: 0.0.6 (8 contributions)
  - napari-properties-plotter: 0.2.2 (2 contributions)
  - napari-properties-viewer: 0.0.2 (2 contributions)
  - napari-svg: 0.1.10 (2 contributions)

WARNING:npe2.manifest.schema:Invalid schema for package 'blik', please run 'npe2 validate blik' to check for manifest errors.


@brisvag
Copy link
Owner

brisvag commented May 16, 2024

If I downgrade to npe2==0.7.4 like you have, I also get the same error. I'm not sure why you ended up with a mismatch here, but pip install npe2 -U should hopefully fix your issue!

@brisvag
Copy link
Owner

brisvag commented May 16, 2024

@Czaki is this something we might need to fix on npe2/napari side?

@Czaki
Copy link

Czaki commented May 16, 2024

I think that all responses are in this PR napari/npe2#344

@JoeBeton
Copy link
Author

If I downgrade to npe2==0.7.4 like you have, I also get the same error. I'm not sure why you ended up with a mismatch here, but pip install npe2 -U should hopefully fix your issue!

Okay great I'll try that, thanks!

@brisvag brisvag closed this as completed Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants