brisvag / blik

Python tool for visualising and interacting with cryo-ET and subtomogram averaging data.
https://brisvag.github.io/blik/
GNU General Public License v3.0
23 stars 8 forks source link

install error using Napari GUI #169

Closed JoeBeton closed 1 week ago

JoeBeton commented 2 months ago

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:

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

brisvag commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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

Czaki commented 2 months ago

I think that all responses are in this PR https://github.com/napari/npe2/pull/344

JoeBeton commented 2 months ago

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!