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

aydin fails to install on Windows #303

Open
nztao opened this issue Feb 13, 2024 · 3 comments
Open

aydin fails to install on Windows #303

nztao opened this issue Feb 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@nztao
Copy link

nztao commented Feb 13, 2024

Describe the bug
Installing aydin via conda or pip on a Windows installation fails because of an incompatibility error with napari and pydantic.

To Reproduce
Steps to reproduce the behavior:

  1. Run conda installation instructions from (https://github.com/royerlab/aydin).
  2. Run aydin in the bash.

Expected behavior
A clear and concise description of what you expected to happen.
Expect aydin GUI, but instead the following error appears:

> [...]
>     raise AttributeError(f'module {module!r} has no attribute {name!r}')                                                                                                                                                                                                                                                                                  AttributeError: module 'pydantic.main' has no attribute 'ModelMetaclass'

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • Windows 10 Education Version 10.0.19045 Build 19045
  • GPU: NVIDIA GeForce RTX 2080 Super - Cuda compilation tools, release 11.4, V11.4.100 Build cuda_11.4.r11.4/compiler.30188945_0

Additional context
Add any other context about the problem here.

Running pip install napari --upgrade resolves the issue.

@nztao nztao added the bug Something isn't working label Feb 13, 2024
@pmascalchi
Copy link

pmascalchi commented Jun 24, 2024

Having the same issue trying to run Aydin as standalone (in similar environment).
Any other possible fix found by anyone?
Thanks,

@IanWardell
Copy link

Similar problem on my end:
Desktop (please complete the following information):
Windows 11 Education Version
GPU: NVIDIA GeForce RTX 3090
powershell, conda, pip

Additional context
Ill start by saying the windows install exe works fine,its the CLI that wasn't working.

fixed with
pip install napari --upgrade

error:

(aydin_env) PS T:\Cam-Denoise> aydin info .\Images-To-Denoise\00001-capture.jpg Traceback (most recent call last): File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\Scripts\aydin.exe\__main__.py", line 4, in <module> File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\site-packages\aydin\__init__.py", line 1, in <module> from aydin.restoration.denoise.noise2selffgr import noise2self_fgr # noqa: F401 File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\site-packages\aydin\restoration\denoise\noise2selffgr.py", line 8, in <module> from aydin.features.standard_features import StandardFeatureGenerator File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\site-packages\aydin\features\standard_features.py", line 5, in <module> from aydin.features.groups.lowpass import LowPassFeatures File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\site-packages\aydin\features\groups\lowpass.py", line 5, in <module> from aydin.it.classic_denoisers.butterworth import denoise_butterworth File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\site-packages\aydin\it\classic_denoisers\butterworth.py", line 13, in <module> from aydin.util.j_invariance.j_invariance import calibrate_denoiser File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\site-packages\aydin\util\j_invariance\j_invariance.py", line 7, in <module> from aydin.util.j_invariance.losses import mean_squared_error, mean_absolute_error File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\site-packages\aydin\util\j_invariance\losses.py", line 3, in <module> from skimage.metrics import structural_similarity File "C:\Users\GOOD-USER\anaconda3\envs\aydin_env\lib\site-packages\skimage\__init__.py", line 121, in <module> from ._shared import geometry File "skimage\_shared\geometry.pyx", line 1, in init skimage._shared.geometry ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

@manerotoni
Copy link

I can confirm to have issues when installing on Windows10.

Traceback (most recent call last):
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\Scripts\aydin.exe\__main__.py", line 4, in <module>
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\site-packages\aydin\__init__.py", line 1, in <module>
    from aydin.restoration.denoise.noise2selffgr import noise2self_fgr  # noqa: F401
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\site-packages\aydin\restoration\denoise\noise2selffgr.py", line 8, in <module>
    from aydin.features.standard_features import StandardFeatureGenerator
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\site-packages\aydin\features\standard_features.py", line 5, in <module>
    from aydin.features.groups.lowpass import LowPassFeatures
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\site-packages\aydin\features\groups\lowpass.py", line 5, in <module>
    from aydin.it.classic_denoisers.butterworth import denoise_butterworth
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\site-packages\aydin\it\classic_denoisers\butterworth.py", line 13, in <module>
    from aydin.util.j_invariance.j_invariance import calibrate_denoiser
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\site-packages\aydin\util\j_invariance\j_invariance.py", line 7, in <module>
    from aydin.util.j_invariance.losses import mean_squared_error, mean_absolute_error
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\site-packages\aydin\util\j_invariance\losses.py", line 3, in <module>
    from skimage.metrics import structural_similarity
  File "C:\Users\apoliti\Miniconda3\envs\aydin_env\lib\site-packages\skimage\__init__.py", line 121, in <module>
    from ._shared import geometry
  File "skimage\_shared\geometry.pyx", line 1, in init skimage._shared.geometry
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

The command pip install napari --upgrade fixes the problem (why??) although the install mention compatibilities issues

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
aydin 0.1.15 requires imageio==2.21.1, but you have imageio 2.35.1 which is incompatible.
aydin 0.1.15 requires napari==0.4.15, but you have napari 0.5.2 which is incompatible.
aydin 0.1.15 requires scikit-image==0.18.3, but you have scikit-image 0.24.0 which is incompatible.

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

4 participants