Coder Social home page Coder Social logo

Comments (3)

luispedro avatar luispedro commented on June 3, 2024

Sorry, this seems strange: if mahotas imports OK when you run it on the shell, it seems that it should also work on from cellprofiler

Can you run:

import mahotas
mahotas.test()

? This may require pytest to be available, so it may fail for that reason.

from mahotas.

bethac07 avatar bethac07 commented on June 3, 2024

I definitely agree that it's weird! A second 20.04 user has confirmed it though, so whatever the error is, it's reproducible across machines.

Thanks so much for taking a look at all!

From the shell:

ubuntu@ip-XXXXXXXXX:~$ python3
Python 3.8.2 (default, Jul 16 2020, 14:00:26) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mahotas
>>> mahotas.test()
================================================================================================== test session starts ==================================================================================================
platform linux -- Python 3.8.2, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/ubuntu
collected 307 items                                                                                                                                                                                                     

.local/lib/python3.8/site-packages/mahotas/tests/test_bbox.py .......                                                                                                                                             [  2%]
.local/lib/python3.8/site-packages/mahotas/tests/test_bwperim.py .                                                                                                                                                [  2%]
.local/lib/python3.8/site-packages/mahotas/tests/test_center_of_mass.py .....                                                                                                                                     [  4%]
.local/lib/python3.8/site-packages/mahotas/tests/test_citation.py .                                                                                                                                               [  4%]
.local/lib/python3.8/site-packages/mahotas/tests/test_close_holes.py .                                                                                                                                            [  4%]
.local/lib/python3.8/site-packages/mahotas/tests/test_colors.py ...                                                                                                                                               [  5%]
.local/lib/python3.8/site-packages/mahotas/tests/test_convolve.py .........................                                                                                                                       [ 14%]
.local/lib/python3.8/site-packages/mahotas/tests/test_demos.py .                                                                                                                                                  [ 14%]
.local/lib/python3.8/site-packages/mahotas/tests/test_dilate_erode.py ...........                                                                                                                                 [ 17%]
.local/lib/python3.8/site-packages/mahotas/tests/test_distance.py ...                                                                                                                                             [ 18%]
.local/lib/python3.8/site-packages/mahotas/tests/test_edge.py .......                                                                                                                                             [ 21%]
.local/lib/python3.8/site-packages/mahotas/tests/test_euler.py ...                                                                                                                                                [ 22%]
.local/lib/python3.8/site-packages/mahotas/tests/test_features_shape.py ....                                                                                                                                      [ 23%]
.local/lib/python3.8/site-packages/mahotas/tests/test_filters.py ...                                                                                                                                              [ 24%]
.local/lib/python3.8/site-packages/mahotas/tests/test_find.py ..                                                                                                                                                  [ 25%]
.local/lib/python3.8/site-packages/mahotas/tests/test_freeimage.py ssssssss                                                                                                                                       [ 27%]
.local/lib/python3.8/site-packages/mahotas/tests/test_gvoronoi.py ..                                                                                                                                              [ 28%]
.local/lib/python3.8/site-packages/mahotas/tests/test_histogram.py .....                                                                                                                                          [ 29%]
.local/lib/python3.8/site-packages/mahotas/tests/test_hitmiss.py ...                                                                                                                                              [ 30%]
.local/lib/python3.8/site-packages/mahotas/tests/test_imresize.py ...                                                                                                                                             [ 31%]
.local/lib/python3.8/site-packages/mahotas/tests/test_internal.py .............................                                                                                                                   [ 41%]
.local/lib/python3.8/site-packages/mahotas/tests/test_interpolate.py .............                                                                                                                                [ 45%]
.local/lib/python3.8/site-packages/mahotas/tests/test_io.py ....                                                                                                                                                  [ 46%]
.local/lib/python3.8/site-packages/mahotas/tests/test_label.py ...                                                                                                                                                [ 47%]
.local/lib/python3.8/site-packages/mahotas/tests/test_labeled.py ...................                                                                                                                              [ 54%]
.local/lib/python3.8/site-packages/mahotas/tests/test_lbp.py ..........                                                                                                                                           [ 57%]
.local/lib/python3.8/site-packages/mahotas/tests/test_mahotas.py .                                                                                                                                                [ 57%]
.local/lib/python3.8/site-packages/mahotas/tests/test_majority.py ......                                                                                                                                          [ 59%]
.local/lib/python3.8/site-packages/mahotas/tests/test_mean_filter.py .                                                                                                                                            [ 59%]
.local/lib/python3.8/site-packages/mahotas/tests/test_median_filter.py ....                                                                                                                                       [ 61%]
.local/lib/python3.8/site-packages/mahotas/tests/test_moments.py .........                                                                                                                                        [ 64%]
.local/lib/python3.8/site-packages/mahotas/tests/test_morph.py .............                                                                                                                                      [ 68%]
.local/lib/python3.8/site-packages/mahotas/tests/test_polygon.py .........                                                                                                                                        [ 71%]
.local/lib/python3.8/site-packages/mahotas/tests/test_segmentation.py .                                                                                                                                           [ 71%]
.local/lib/python3.8/site-packages/mahotas/tests/test_stretch.py .........                                                                                                                                        [ 74%]
.local/lib/python3.8/site-packages/mahotas/tests/test_surf.py ..............                                                                                                                                      [ 79%]
.local/lib/python3.8/site-packages/mahotas/tests/test_surf_regression.py ..                                                                                                                                       [ 79%]
.local/lib/python3.8/site-packages/mahotas/tests/test_tas.py .....                                                                                                                                                [ 81%]
.local/lib/python3.8/site-packages/mahotas/tests/test_template_match.py .                                                                                                                                         [ 81%]
.local/lib/python3.8/site-packages/mahotas/tests/test_texture.py ....................                                                                                                                             [ 88%]
.local/lib/python3.8/site-packages/mahotas/tests/test_thin.py .....                                                                                                                                               [ 89%]
.local/lib/python3.8/site-packages/mahotas/tests/test_thresholding.py ..........                                                                                                                                  [ 93%]
.local/lib/python3.8/site-packages/mahotas/tests/test_watershed.py ..................                                                                                                                             [ 99%]
.local/lib/python3.8/site-packages/mahotas/tests/test_zernike.py ...                                                                                                                                              [100%]

=================================================================================================== warnings summary ====================================================================================================
.local/lib/python3.8/site-packages/mahotas/tests/test_convolve.py::test_center_decenter
.local/lib/python3.8/site-packages/mahotas/tests/test_convolve.py::test_center_border
.local/lib/python3.8/site-packages/mahotas/tests/test_convolve.py::test_center_wavelet_iwavelet_decenter
  /home/ubuntu/.local/lib/python3.8/site-packages/mahotas/convolve.py:479: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
    nimage[position] = f

.local/lib/python3.8/site-packages/mahotas/tests/test_convolve.py::test_center_decenter
.local/lib/python3.8/site-packages/mahotas/tests/test_convolve.py::test_center_wavelet_iwavelet_decenter
  /home/ubuntu/.local/lib/python3.8/site-packages/mahotas/convolve.py:510: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
    return w[position]

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================================== 299 passed, 8 skipped, 5 warnings in 14.20s ======================================================================================
<ExitCode.OK: 0>

from mahotas.

luispedro avatar luispedro commented on June 3, 2024

Thanks for the test outputs. I think from mahotas' POV, everything is working so I am closing here

from mahotas.

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.