Giter Site home page Giter Site logo

Comments (4)

kyleellefsen avatar kyleellefsen commented on July 16, 2024
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.

from flika.

csamuel11 avatar csamuel11 commented on July 16, 2024

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.

from flika.

kyleellefsen avatar kyleellefsen commented on July 16, 2024

Changing the scikit-image version should fix it.

from flika.

csamuel11 avatar csamuel11 commented on July 16, 2024

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

from flika.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.