Closed csamuel11 closed 3 years ago
In [1]: from flika import *
In [2]: start_flika()
Starting flika
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-185c705d21af> in <module>
----> 1 start_flika()
c:\users\username\appdata\local\programs\python\python39\lib\site-packages\flika\flika.py in start_flika(files)
113 logger.debug("Started 'flika.start_flika()'")
114 print('Starting flika')
--> 115 fa = FlikaApplication()
116 load_files(files)
117 fa.start()
c:\users\username\appdata\local\programs\python\python39\lib\site-packages\flika\app\application.py in __init__(self)
151 def __init__(self):
152 logger.debug("Started 'creating app.application.FlikaApplication'")
--> 153 from ..process.file_ import open_file, open_file_from_gui, open_image_sequence_from_gui, open_points, save_file, save_movie_gui, save_points, save_rois
154 from ..process import setup_menus
155 logger.debug("Started 'creating app.application.FlikaApplication.app'")
c:\users\username\appdata\local\programs\python\python39\lib\site-packages\flika\process\__init__.py in <module>
5 from .stacks import *
6 from .math_ import *
----> 7 from .filters import *
8 from .binary import *
9 from .roi import *
c:\users\username\appdata\local\programs\python\python39\lib\site-packages\flika\process\filters.py in <module>
2 import numpy as np
3 import skimage
----> 4 import skimage.filters
5 from qtpy import QtWidgets, QtGui, QtCore
6 import time
c:\users\username\appdata\local\programs\python\python39\lib\site-packages\skimage\filters\__init__.py in <module>
2 from ._gaussian import (gaussian, _guess_spatial_dimensions,
3 difference_of_gaussians)
----> 4 from .edges import (sobel, sobel_h, sobel_v,
5 scharr, scharr_h, scharr_v,
6 prewitt, prewitt_h, prewitt_v,
c:\users\username\appdata\local\programs\python\python39\lib\site-packages\skimage\filters\edges.py in <module>
16 from scipy.ndimage import convolve, binary_erosion
17
---> 18 from ..restoration.uft import laplacian
19
20 # n-dimensional filter weights
c:\users\username\appdata\local\programs\python\python39\lib\site-packages\skimage\restoration\__init__.py in <module>
11 from .inpaint import inpaint_biharmonic
12 from .j_invariant import calibrate_denoiser
---> 13 from .rolling_ball import rolling_ball, ball_kernel, ellipsoid_kernel
14
15
c:\users\username\appdata\local\programs\python\python39\lib\site-packages\skimage\restoration\rolling_ball.py in <module>
1 import numpy as np
2
----> 3 from ._rolling_ball_cy import apply_kernel, apply_kernel_nan
4
5
ImportError: DLL load failed while importing _rolling_ball_cy: The specified module could not be found.
I've just pasted your error above. In the future, you can paste code directly into github by surrounding the text with `` tics. This seems to be an error with your
skimage` version. I just tested launching flika using python 3.9 on MacOS Big Sur. Unfortunately I don't have access to a Windows computer so I can't recreate your error. Can you open an ipython terminal and check the skimage version the following commands:
import skimage
print(skimage.__version__)
I'm using version 0.18.1 (the latest on https://pypi.org/project/scikit-image/), but according to this you might need a different version. If your version is different, try running in the terminal:
pip install scikit-image==0.18.0rc0
pip install flika==0.2.35
and see if that fixes the problem.
Thanks for letting me know. I will surround my code with the ``` tics in the future.
Thanks for your suggestion. I checked, and my windows computer is also running skimage version 0.18.1 and python 3.9.
I will continue troubleshooting and see if I can fix it. Let me know if you figure out something.
Changing the scikit-image version should fix it.
I ran the following code that you suggested in the terminal, and now flika works. Thanks!
pip install scikit-image==0.18.0rc0
pip install flika==0.2.35
I receive the error in the title when trying to open flika. Please let me know how I can fix this. I got this error while working on a windows computer but do not get it while working on a mac. I have also attached the full error output in a word document 2021-05-20-Flika-error-2.docx . Thank you.